8 #ifndef META_OCEAN_CV_DETECTOR_FEATURE_DETECTOR_H
9 #define META_OCEAN_CV_DETECTOR_FEATURE_DETECTOR_H
63 inline int intensity()
const;
98 static Vectors2 filterStrongHarrisPoints(
const uint8_t* yFrame,
const unsigned int width,
const unsigned int height,
const unsigned int yFramePaddingElements,
const Vectors2& positions,
const unsigned int maximalPoints,
const Scalar minSqrDistance,
const int harrisThreshold = 0,
Worker* worker =
nullptr);
111 static inline Vectors2 determineHarrisPoints(
const Frame& yFrame,
const SubRegion& subRegion =
SubRegion(),
const unsigned int horizontalBins = 0u,
const unsigned int verticalBins = 0u,
const unsigned int strength = 30u,
Worker* worker =
nullptr, std::vector<int>* strengths =
nullptr);
127 static Vectors2 determineHarrisPoints(
const uint8_t* yFrame,
const unsigned int width,
const unsigned int height,
const unsigned int yFramePaddingElements,
const SubRegion& subRegion,
const unsigned int horizontalBins = 0u,
const unsigned int verticalBins = 0u,
const unsigned int strength = 30u,
Worker* worker =
nullptr, std::vector<int>* strengths =
nullptr);
132 vectorIntensity(
NumericT<int>::minValue())
139 vectorIntensity(intensity)
146 return vectorIntensity;
151 return vectorIntensity >
object.vectorIntensity;
158 ocean_assert(
false &&
"Invalid pixel format!");
This class implements a vector extension holding an additional intensity parameter.
Definition: FeatureDetector.h:42
int vectorIntensity
Intensity value.
Definition: FeatureDetector.h:75
bool operator<(const IntensityVector2 &object) const
Compares two intensity objects.
Definition: FeatureDetector.h:149
IntensityVector2()
Creates a new intensity vector object with undefined vector elements.
Definition: FeatureDetector.h:130
int intensity() const
Returns the intensity value of this object.
Definition: FeatureDetector.h:144
This class provides an abstraction for visual features and strong feature points.
Definition: FeatureDetector.h:35
static Vectors2 determineHarrisPoints(const uint8_t *yFrame, const unsigned int width, const unsigned int height, const unsigned int yFramePaddingElements, const SubRegion &subRegion, const unsigned int horizontalBins=0u, const unsigned int verticalBins=0u, const unsigned int strength=30u, Worker *worker=nullptr, std::vector< int > *strengths=nullptr)
Determines strong feature points in a given image, optional a sub-region can be specified in that the...
static Vectors2 filterStrongHarrisPoints(const uint8_t *yFrame, const unsigned int width, const unsigned int height, const unsigned int yFramePaddingElements, const Vectors2 &positions, const unsigned int maximalPoints, const Scalar minSqrDistance, const int harrisThreshold=0, Worker *worker=nullptr)
Determines the points in an 8bit grayscale image with highest Harris corner response votes.
std::vector< IntensityVector2 > IntensityVectors2
Definition of a vector holding intensity vector objects.
Definition: FeatureDetector.h:81
static Vectors2 determineHarrisPoints(const Frame &yFrame, const SubRegion &subRegion=SubRegion(), const unsigned int horizontalBins=0u, const unsigned int verticalBins=0u, const unsigned int strength=30u, Worker *worker=nullptr, std::vector< int > *strengths=nullptr)
Determines strong feature points in a given image, optional a sub-region can be specified in that the...
Definition: FeatureDetector.h:154
This class implement a sub-region either defined by 2D triangles or defined by a binary mask.
Definition: SubRegion.h:32
This class implements Ocean's image class.
Definition: Frame.h:1760
const T * constdata(const unsigned int planeIndex=0u) const
Returns a pointer to the read-only pixel data of a specific plane.
Definition: Frame.h:4136
unsigned int paddingElements(const unsigned int planeIndex=0u) const
Returns the optional number of padding elements at the end of each row for a specific plane.
Definition: Frame.h:4010
@ FORMAT_Y8
Pixel format for grayscale images with byte order Y and 8 bits per pixel.
Definition: Frame.h:594
unsigned int width() const
Returns the width of the frame format in pixel.
Definition: Frame.h:3111
unsigned int height() const
Returns the height of the frame in pixel.
Definition: Frame.h:3116
bool isPixelFormatCompatible(const PixelFormat pixelFormat) const
Returns whether the pixel format of this frame type is compatible with a given pixel format.
Definition: Frame.h:3166
This class provides basic numeric functionalities.
Definition: Numeric.h:57
This class implements a worker able to distribute function calls over different threads.
Definition: Worker.h:33
float Scalar
Definition of a scalar type.
Definition: Math.h:128
std::vector< Vector2 > Vectors2
Definition of a vector holding Vector2 objects.
Definition: Vector2.h:64
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15