8 #ifndef META_OCEAN_CV_DETECTOR_ORB_DESCRIPTOR_H
9 #define META_OCEAN_CV_DETECTOR_ORB_DESCRIPTOR_H
75 inline size_t count()
const;
96 inline bool operator[](
const size_t index)
const;
103 inline DescriptorBitset::reference
operator[](
const size_t index);
133 const unsigned long long* valueLeft = (
unsigned long long*)&
descriptor;
134 const unsigned long long* valueRight = (
unsigned long long*)&rightDescriptor.
descriptor;
136 return valueLeft[0] < valueRight[0]
137 || (valueLeft[0] == valueRight[0] && (valueLeft[1] < valueRight[1]
138 || (valueLeft[1] == valueRight[1] && (valueLeft[2] < valueRight[2]
139 || (valueLeft[2] == valueRight[2] && valueLeft[3] < valueRight[3])))));
This class implement the descriptor for ORB features.
Definition: ORBDescriptor.h:41
const DescriptorBitset & bitset() const
Returns the bitset of the descriptor.
Definition: ORBDescriptor.h:121
bool operator[](const size_t index) const
Returns whether the bit of the bitset at a given index is set.
Definition: ORBDescriptor.h:147
ORBDescriptor operator^(const ORBDescriptor &rightDescriptor) const
Returns the descriptor holds a bitset that is the result of the XOR operation of the bitsets of two d...
Definition: ORBDescriptor.h:142
std::bitset< descriptorLengthInBits > DescriptorBitset
Definition of a bitset with 256 bits.
Definition: ORBDescriptor.h:50
DescriptorBitset descriptor
Definition: ORBDescriptor.h:108
static constexpr size_t descriptorLengthInBits
The length of this descriptor in bits.
Definition: ORBDescriptor.h:45
size_t count() const
Returns the number of bits in the bitset of the descriptor that are set.
Definition: ORBDescriptor.h:126
ORBDescriptor()
Creates a new descriptor object holds zeros on every position.
Definition: ORBDescriptor.h:111
bool operator<(const ORBDescriptor &rightDescriptor) const
Compares two descriptors and returns whether the left descriptor represents a smaller value than the ...
Definition: ORBDescriptor.h:131
StaticVector< ORBDescriptor, 3 > ORBDescriptors
Definition of a static vector holding up to three ORB descriptors.
Definition: ORBDescriptor.h:27
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15