5 #include "../lib/args.h" 6 #include "../lib/misc.h" 7 #include "../lib/json.h" 8 #include "../lib/dataset.h" 9 #include "../lib/opencv.h" 10 #include "../lib/intrinsics.h" 15 int main(
int argc,
const char* argv[]) {
16 get_args(argc, argv,
"feature_points.json intrinsics.json rotation.json out_predicted_slopes.json");
24 std::cout <<
"saving predicted slopes" << std::endl;
26 for(
const auto& kv : fslopes.
points) {
27 const std::string& feature_name = kv.first;
json encode_feature_slopes(const feature_slopes &fslopes)
real model_vertical_slope(const vec2 &undistorted_point, const mat33 &K, const mat33 &R)
real model_horizontal_slope(const vec2 &undistorted_point, const mat33 &K, const mat33 &R)
Points of different features, on one view.
std::map< std::string, feature_point > points
cv::Mat_< real > decode_mat(const json &j)
intrinsics intrinsics_arg()
cv::Matx< real, 3, 3 > mat33
void export_json_file(const json &j, const std::string &filename, bool compact)
feature_points undistort(const feature_points &dist_fpoints, const intrinsics &intr)
int main(int argc, const char *argv[])
std::string out_filename_arg()
std::map< std::string, feature_slope > slopes
feature_points feature_points_arg()
void get_args(int argc, const char *argv[], const std::string &usage)