Ocean
|
This class implements a 3D plane finder without any previous knowledge about the plane or the camera poses. More...
Public Member Functions | |
size_t | size () const |
Returns the number of stored correspondence sets. More... | |
size_t | imagePoints () const |
Returns the number of image points within each individual correspondence set. More... | |
const Vectors2 & | firstImagePoints () const |
Returns the first set of image points. More... | |
const Vectors2 & | lastImagePoints () const |
Returns the last set of image points. More... | |
Scalar | sqrDistance () const |
Calculates the summed square distance between the first image points and the corresponding image points in the most recent set of image points. More... | |
virtual bool | addImagePoint (const Vectors2 &imagePoints) |
Adds new image points as new set of correspondences. More... | |
virtual bool | addImagePoint (Vectors2 &&imagePoints) |
Adds new image points as new set of correspondences. More... | |
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. More... | |
bool | reduce (const Indices32 &validIndices) |
Reduces the image points within each set of corresponding image points. More... | |
Protected Types | |
typedef CorrespondenceSet< Vector2 > | ImagePointCorrespondenceSet |
Definition of a correspondence set object with handling 2D vectors. More... | |
Protected Member Functions | |
PlaneFinder () | |
Creates a new plane finder object. More... | |
virtual | ~PlaneFinder ()=default |
Destructs this object. More... | |
Protected Attributes | |
ImagePointCorrespondenceSet | imagePointCorrespondences |
The set of image point correspondences. More... | |
This class implements a 3D plane finder without any previous knowledge about the plane or the camera poses.
The class takes several correspondences of image points that capture corresponding 3D object points lying on the same 3D plane.
|
protected |
Definition of a correspondence set object with handling 2D vectors.
|
inlineprotected |
Creates a new plane finder object.
|
protectedvirtualdefault |
Destructs this object.
|
virtual |
Adds new image points as new set of correspondences.
Beware: The number of provided image points must match with the number of already stored image points within each individual set of correspondences.
imagePoints | Image points to be added |
Reimplemented in Ocean::Tracking::HomographyPlaneFinder.
|
virtual |
Adds a new subset of image points that corresponds to a subset of the stored sets of image points.
This function takes a set of indices which define the valid subset of the given image points.
Only valid image points will be added while also the already stored sets of image points will be reduced so that only valid elements are stored finally.
imagePoints | Large set of image points to be added |
validIndices | Indices that define a valid subset of the given elements, each index must exist at most once and must lie inside the range [0, elements.size()) |
Reimplemented in Ocean::Tracking::HomographyPlaneFinder.
|
virtual |
Adds new image points as new set of correspondences.
Beware: The number of provided image points must match with the number of already stored image points within each individual set of correspondences.
imagePoints | Image points to be added (and moved) |
Reimplemented in Ocean::Tracking::HomographyPlaneFinder.
|
inline |
Returns the first set of image points.
Beware: Check whether this object holds at least on set of image points before you call this function.
|
inline |
Returns the number of image points within each individual correspondence set.
|
inline |
Returns the last set of image points.
Beware: Check whether this object holds at least on set of image points before you call this function.
|
inline |
Reduces the image points within each set of corresponding image points.
The remaining elements are defined by a set of indices.
validIndices | Indices that define a valid subset of the already stored elements, each index must exist at most once and must lie inside the range [0, elements()) |
|
inline |
Returns the number of stored correspondence sets.
|
inline |
Calculates the summed square distance between the first image points and the corresponding image points in the most recent set of image points.
|
protected |
The set of image point correspondences.