SIFT
interestpoint.hpp
Go to the documentation of this file.
1 #ifndef INTERESTPOINT_HPP
2 #define INTERESTPOINT_HPP
3 
4 #include <set>
5 
6 #include "types.hpp"
7 #include "point.hpp"
8 
9 namespace sift {
13  class InterestPoint {
14  public:
19 
24 
30 
34  bool filtered = false;
35 
40 
45 
46  std::vector<f32_t> descriptors;
47 
48  InterestPoint() = default;
49  explicit InterestPoint(Point<u16_t, u16_t> loc, f32_t scale, u16_t octave, u16_t index)
50  : scale(scale), octave(octave), index(index), loc(loc) {
51  }
52 
57  static bool cmpByFilter(const InterestPoint &a, const InterestPoint &b) {
58  if (!a.filtered && b.filtered) {
59  return true;
60  }
61  return false;
62  }
63  };
64 
65 }
66 #endif //INTERESTPOINT_HPP
Point< u16_t, u16_t > loc
Definition: interestpoint.hpp:39
InterestPoint()=default
float f32_t
Definition: types.hpp:13
unsigned short int u16_t
Definition: types.hpp:6
u16_t index
Definition: interestpoint.hpp:29
InterestPoint(Point< u16_t, u16_t > loc, f32_t scale, u16_t octave, u16_t index)
Definition: interestpoint.hpp:49
static bool cmpByFilter(const InterestPoint &a, const InterestPoint &b)
Definition: interestpoint.hpp:57
bool filtered
Definition: interestpoint.hpp:34
f32_t scale
Definition: interestpoint.hpp:18
f32_t orientation
Definition: interestpoint.hpp:44
Definition: interestpoint.hpp:13
Definition: algorithms.cpp:8
std::vector< f32_t > descriptors
Definition: interestpoint.hpp:46
u16_t octave
Definition: interestpoint.hpp:23