8 #ifndef META_OCEAN_TRACKING_PLANE_FINDER_H
9 #define META_OCEAN_TRACKING_PLANE_FINDER_H
46 inline size_t size()
const;
52 inline size_t imagePoints()
const;
59 const Vectors2& firstImagePoints()
const;
66 inline const Vectors2& lastImagePoints()
const;
106 inline bool reduce(
const Indices32& validIndices);
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.
size_t elements() const
Returns the number of corresponding elements.
Definition: CorrespondenceSet.h:251
bool reduce(const Indices32 &validIndices)
Reduces the elements within each set of corresponding elements.
Definition: CorrespondenceSet.h:500
std::vector< Elements > ElementsVector
This class defines a vector storing vectors of elements.
Definition: CorrespondenceSet.h:46
size_t size() const
Returns the number of correspondences.
Definition: CorrespondenceSet.h:244
const ElementsVector & correspondences() const
Returns the set of stored correspondences.
Definition: CorrespondenceSet.h:258
This class implements a 3D plane finder without any previous knowledge about the plane or the camera ...
Definition: PlaneFinder.h:32
virtual ~PlaneFinder()=default
Destructs this object.
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
CorrespondenceSet< Vector2 > ImagePointCorrespondenceSet
Definition of a correspondence set object with handling 2D vectors.
Definition: PlaneFinder.h:38
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
unsigned int sqrDistance(const char first, const char second)
Returns the square distance between two values.
Definition: base/Utilities.h:1089
std::vector< Index32 > Indices32
Definition of a vector holding 32 bit index values.
Definition: Base.h:96
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