8 #ifndef META_OCEAN_CV_DETECTOR_FEATURE_DETECTOR_H
9 #define META_OCEAN_CV_DETECTOR_FEATURE_DETECTOR_H
88 inline int intensity()
const;
123 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);
136 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);
152 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);
157 intensity_(intensity)
169 return intensity_ >
object.intensity_;
174 ocean_assert(yFrame.
isValid());
The following comfort class provides comfortable functions simplifying prototyping applications but a...
Definition: FeatureDetector.h:44
static Vectors2 determineHarrisPoints(const Frame &frame, 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...
This class implements a vector extension holding an additional intensity parameter.
Definition: FeatureDetector.h:67
bool operator<(const IntensityVector2 &object) const
Compares two intensity objects.
Definition: FeatureDetector.h:167
int intensity() const
Returns the intensity value of this object.
Definition: FeatureDetector.h:162
IntensityVector2()=default
Creates a new intensity vector object with undefined vector elements.
This class provides an abstraction for visual features and strong feature points.
Definition: FeatureDetector.h:35
std::vector< IntensityVector2 > IntensityVectors2
Definition of a vector holding intensity vector objects.
Definition: FeatureDetector.h:106
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.
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:172
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:1792
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:4168
bool isValid() const
Returns whether this frame is valid.
Definition: Frame.h:4448
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:4042
@ 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:3143
unsigned int height() const
Returns the height of the frame in pixel.
Definition: Frame.h:3148
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:3198
static constexpr T minValue()
Returns the min scalar value.
Definition: Numeric.h:3250
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