1 #ifndef LICORNEA_FEATURE_POINTS_H_ 2 #define LICORNEA_FEATURE_POINTS_H_ 4 #include "../../lib/json.h" 5 #include "../../lib/intrinsics.h" 6 #include "../../lib/dataset.h" 7 #include "../../lib/args.h" 8 #include "../../lib/border.h" 15 struct image_correspondences;
19 std::map<std::string, feature_point>
points;
24 {
return (points.find(feature_name) != points.end()); }
26 std::size_t
count()
const {
return points.size(); }
std::vector< vec2 > positions(const feature_points &fpoints)
feature_points undistorted_feature_points_for_view(const image_correspondences &cors, view_index idx, const intrinsics &intr)
Set of features, each on set of views.
Points of different features, on one view.
std::map< std::string, feature_point > points
bool has_feature(const std::string &feature_name) const
feature_points feature_points_for_view(const image_correspondences &cors, view_index idx, bool is_distorted)
json encode_feature_points(const feature_points &fpoints)
feature_points decode_feature_points(const json &j_fpoints)
feature_points undistort(const feature_points &dist_fpoints, const intrinsics &intr)
cv::Mat_< cv::Vec3b > visualize_feature_points(const feature_points &fpoints, const cv::Mat_< cv::Vec3b > &back_img, const border &bord)
feature_points feature_points_arg()
std::size_t count() const