licornea_tools
feature_point.h
Go to the documentation of this file.
1 #ifndef LICORNEA_FEATURE_POINT_H_
2 #define LICORNEA_FEATURE_POINT_H_
3 
4 #include "../../lib/common.h"
5 #include "../../lib/json.h"
6 
7 namespace tlz {
8 
9 struct feature_point {
11  real depth = 0.0;
12  real weight = 1.0;
13 
14  bool operator==(const feature_point& other) const {
15  return (position == other.position) && (depth == other.depth) && (weight == other.weight);
16  }
17 };
18 
21 
22 }
23 
24 #endif
bool operator==(const feature_point &other) const
Definition: feature_point.h:14
feature_point decode_feature_point(const json &j_pt)
Definition: feature_point.cc:5
cv::Vec< real, 2 > vec2
Definition: common.h:22
json encode_feature_point(const feature_point &pt)
double real
Definition: common.h:16
nlohmann::json json
Definition: json.h:11