8 #ifndef META_OCEAN_CV_SEGMENTATION_CONTOUR_TRACKER_H
9 #define META_OCEAN_CV_SEGMENTATION_CONTOUR_TRACKER_H
29 namespace Segmentation
56 inline const Vectors2& denseContourSubPixel()
const;
117 bool usePlanarTracking_ =
false;
This class implements a frame pyramid.
Definition: FramePyramid.h:37
This class implements a contour tracker able to detect an object and to track the object's contour wi...
Definition: ContourTracker.h:38
Vectors2 previousDenseContourSubPixel_
The contour belonging to the most recent (previous) frame with sub-pixel accuracy.
Definition: ContourTracker.h:105
FramePyramid currentFramePyramid_
The frame pyramid of the current frame.
Definition: ContourTracker.h:99
PixelContour previousDenseContour_
The contour belonging to the most recent (previous) frame.
Definition: ContourTracker.h:102
const PixelContour & denseContour() const
Returns the dense contour of the most recent detection or tracking interaction.
Definition: ContourTracker.h:120
Frame intermediateRoughMask_
An intermediate rough mask frame.
Definition: ContourTracker.h:114
bool detectObject(const Frame &frame, const PixelContour &roughContour, RandomGenerator &randomGenerator, const unsigned int extraContourOffset, Worker *worker=nullptr, const Frame &yFrame=Frame())
Re-detects an object (the object's contour respectively) in a given frame within a region enclosed by...
const Vectors2 & denseContourSubPixel() const
Returns the dense contour of the most recent detection or tracking interaction with sub-pixel accurac...
Definition: ContourTracker.h:125
void clear()
Clears all resources and resets the tracker.
const SquareMatrix3 & homography() const
Returns the most dominant homography which has been determined during the most recent tracking iterat...
Definition: ContourTracker.h:130
FramePyramid previousFramePyramid_
The frame pyramid of the previous frame.
Definition: ContourTracker.h:96
Vectors2 previousContourStrongest_
The strongest (feature) points of the contour of the previous frame.
Definition: ContourTracker.h:108
bool trackObject(const Frame &frame, RandomGenerator &randomGenerator, const unsigned int extraContourOffset, Worker *worker=nullptr, const Frame &yFrame=Frame())
Tracks an already detected contour (around an object) from the previous frame to the current frame.
SquareMatrix3 previousHomography_
The homography which has been determine during the previous tracking iteration.
Definition: ContourTracker.h:111
ContourTracker()=default
Creates a new tracker object.
This class implements Ocean's image class.
Definition: Frame.h:1792
This class implements a generator for random numbers.
Definition: RandomGenerator.h:42
This class implements a worker able to distribute function calls over different threads.
Definition: Worker.h:33
SquareMatrixT3< Scalar > SquareMatrix3
Definition of the SquareMatrix3 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION either with ...
Definition: SquareMatrix3.h:35
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