8 #ifndef META_OCEAN_CV_DETECTOR_ORB_SAMPLING_PATTERN_H
9 #define META_OCEAN_CV_DETECTOR_ORB_SAMPLING_PATTERN_H
56 inline const Vector2& point0()
const;
62 inline const Vector2& point1()
const;
71 inline void setPositions(
const Vector2& point0,
const Vector2& point1);
127 static constexpr
unsigned int angleIncrements_ = 72u;
152 ocean_assert(point0_ != point1_);
This class holds 2D coordinates of two points which are used for a binary test during the ORB descrip...
Definition: ORBSamplingPattern.h:42
const Vector2 & point1() const
Returns the second lookup point.
Definition: ORBSamplingPattern.h:142
Vector2 point0_
The first point.
Definition: ORBSamplingPattern.h:76
const Vector2 & point0() const
Returns the first lookup point.
Definition: ORBSamplingPattern.h:137
Vector2 point1_
The second point.
Definition: ORBSamplingPattern.h:79
void setPositions(const Vector2 &point0, const Vector2 &point1)
Set the coordinates of the two points.
Definition: ORBSamplingPattern.h:147
LookupPosition()=default
Default constructor.
This singleton holds several lookup tables for the determination of ORB descriptors.
Definition: ORBSamplingPattern.h:32
const LookupTables & samplingPatterns() const
Returns a vector of sampling pattern lookup tables for all angle increments.
Definition: ORBSamplingPattern.h:155
std::vector< LookupTable > LookupTables
Definition of a vector holding lookup tables.
Definition: ORBSamplingPattern.h:92
const LookupTables lookupTables_
Definition: ORBSamplingPattern.h:133
std::vector< LookupPosition > LookupTable
Definition of a vector holding LookupPosition objects.
Definition: ORBSamplingPattern.h:85
static constexpr Scalar anglePerIncrementFactor_
Definition: ORBSamplingPattern.h:130
static constexpr unsigned int angleIncrements_
Definition: ORBSamplingPattern.h:127
static LookupTables createLookupTables(const unsigned int angleIncrements)
Creates the sampling pattern lookup tables for the ORB feature descriptor calculation tests.
const LookupTable & samplingPatternForAngle(const Scalar angle) const
Returns the lookup table of a sampling pattern for a given angle.
Definition: ORBSamplingPattern.h:160
ORBSamplingPattern()
Creates a new ORBSamplingPattern object.
static constexpr T pi2()
Returns 2*PI which is equivalent to 360 degree.
Definition: Numeric.h:932
This template class is the base class for all singleton objects.
Definition: Singleton.h:71
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15