licornea_tools
feature_points.h
Go to the documentation of this file.
1 #ifndef LICORNEA_FEATURE_POINTS_H_
2 #define LICORNEA_FEATURE_POINTS_H_
3 
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"
9 #include "feature_point.h"
10 #include <map>
11 #include <string>
12 
13 namespace tlz {
14 
15 struct image_correspondences;
16 
19  std::map<std::string, feature_point> points;
21  bool is_distorted = false;
22 
23  bool has_feature(const std::string& feature_name) const
24  { return (points.find(feature_name) != points.end()); }
25 
26  std::size_t count() const { return points.size(); }
27 
28  void normalize_weights();
29 };
30 
33 
35 
38 
39 std::vector<vec2> positions(const feature_points&);
40 
41 cv::Mat_<cv::Vec3b> visualize_feature_points(const feature_points&, const cv::Mat_<cv::Vec3b>& back_img, const border& = border());
42 
44 
45 }
46 
47 #endif
std::vector< vec2 > positions(const feature_points &fpoints)
const int border
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()
nlohmann::json json
Definition: json.h:11
std::size_t count() const