8#ifndef META_OCEAN_TRACKING_PLANE_FINDER_H
9#define META_OCEAN_TRACKING_PLANE_FINDER_H
46 inline size_t size()
const;
157 if (correspondences.size() <= 1)
static Scalar determineAverageError(const Vectors2 &firstPoints, const Vectors2 &secondPoints, Vector2 *errors=nullptr, Scalar *sqrErrors=nullptr)
Returns the average square error between two sets of 2D positions.
This class manages a set of element correspondences.
Definition CorrespondenceSet.h:30
std::vector< Elements > ElementsVector
Definition CorrespondenceSet.h:46
virtual ~PlaneFinder()=default
Destructs this object.
CorrespondenceSet< Vector2 > ImagePointCorrespondenceSet
Definition of a correspondence set object with handling 2D vectors.
Definition PlaneFinder.h:38
Scalar sqrDistance() const
Calculates the summed square distance between the first image points and the corresponding image poin...
Definition PlaneFinder.h:153
PlaneFinder()
Creates a new plane finder object.
Definition PlaneFinder.h:126
const Vectors2 & firstImagePoints() const
Returns the first set of image points.
Definition PlaneFinder.h:141
virtual bool addImagePoint(const Vectors2 &imagePoints, const Indices32 &validIndices)
Adds a new subset of image points that corresponds to a subset of the stored sets of image points.
virtual bool addImagePoint(Vectors2 &&imagePoints)
Adds new image points as new set of correspondences.
size_t size() const
Returns the number of stored correspondence sets.
Definition PlaneFinder.h:131
bool reduce(const Indices32 &validIndices)
Reduces the image points within each set of corresponding image points.
Definition PlaneFinder.h:163
virtual bool addImagePoint(const Vectors2 &imagePoints)
Adds new image points as new set of correspondences.
ImagePointCorrespondenceSet imagePointCorrespondences
The set of image point correspondences.
Definition PlaneFinder.h:123
const Vectors2 & lastImagePoints() const
Returns the last set of image points.
Definition PlaneFinder.h:147
size_t imagePoints() const
Returns the number of image points within each individual correspondence set.
Definition PlaneFinder.h:136
std::vector< Index32 > Indices32
Definition of a vector holding 32 bit index values.
Definition Base.h:96
std::vector< Vector2 > Vectors2
Definition of a vector holding Vector2 objects.
Definition Vector2.h:64
float Scalar
Definition of a scalar type.
Definition Math.h:129
Namespace of the Tracker library.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15