A EPrincipalAxisExtractor object computes the principal axis analysis (PCA) on an EPointCloud and produces a E3DTransformMatrix as a result. More...
#include <eVision/Easy3D/EPrincipalAxisExtractor.h>
Public Member Functions | |
| EPrincipalAxisExtractor () | |
| Creates an EPrincipalAxisExtractor object. | |
| EPrincipalAxisExtractor (const eVision::Easy3D::EPrincipalAxisExtractor &other) | |
| Creates an EPrincipalAxisExtractor object. | |
| virtual | ~EPrincipalAxisExtractor () throw () |
| eVision::Easy3D::EPrincipalAxisExtractor & | operator= (const eVision::Easy3D::EPrincipalAxisExtractor &other) |
| Assignment operator. | |
| void | SetReferenceTransform (const eVision::Easy3D::E3DTransformMatrix &refTransform) |
| Sets/Gets the reference transform (E3DTransformMatrix). If not set, it will use the main basis as reference to select the direction of each axis of the new basis. | |
| eVision::Easy3D::E3DTransformMatrix | GetReferenceTransform () const |
| Sets/Gets the reference transform (E3DTransformMatrix). If not set, it will use the main basis as reference to select the direction of each axis of the new basis. | |
| bool | HasReferenceTransformSet () const |
| Returns 'true' if a reference transform (E3DTransformMatrix) has been set explicitly. | |
| void | UnsetReferenceTransform () |
| Unset the reference transform (E3DTransformMatrix). | |
| eVision::Easy3D::E3DTransformMatrix | Extract (const eVision::Easy3D::EPointCloud &pc) const |
| Computes the E3DTransformMatrix for a given EPointCloud. | |
| eVision::Easy3D::E3DTransformMatrix | Extract (const eVision::Easy3D::EPointCloud &pc, eVision::Easy3D::E3DPoint &stdDev) const |
| Computes the E3DTransformMatrix for a given EPointCloud. | |
| eVision::Easy3D::E3DTransformMatrix | Extract (const eVision::Easy3D::EPointCloud &pc, float &stdDevX, float &stdDevY, float &stdDevZ) const |
| Computes the E3DTransformMatrix for a given EPointCloud. | |
| void | Load (const std::string &path) |
| Loads the EPrincipalAxisExtractor object configuration. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the EPrincipalAxisExtractor object configuration. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Saves the EPrincipalAxisExtractor object configuration. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the EPrincipalAxisExtractor object configuration. The given ESerializer must have been created for writing. | |
| EPrincipalAxisExtractor (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
A EPrincipalAxisExtractor object computes the principal axis analysis (PCA) on an EPointCloud and produces a E3DTransformMatrix as a result.
License(s): Easy3D
| eVision::Easy3D::EPrincipalAxisExtractor::EPrincipalAxisExtractor | ( | ) |
Creates an EPrincipalAxisExtractor object.
| eVision::Easy3D::EPrincipalAxisExtractor::EPrincipalAxisExtractor | ( | const eVision::Easy3D::EPrincipalAxisExtractor & | other | ) |
Creates an EPrincipalAxisExtractor object.
| other | The object used for the initialization |
|
virtual | ||||||||||||
| eVision::Easy3D::EPrincipalAxisExtractor::EPrincipalAxisExtractor | ( | CppWrapperInternal::InternalConstructor | ) |
| eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EPrincipalAxisExtractor::Extract | ( | const eVision::Easy3D::EPointCloud & | pc | ) | const |
Computes the E3DTransformMatrix for a given EPointCloud.
This will compute the PCA, then select the direction of each axis of the basis so that this basis is as close as possible as the reference transform.
Optionally returns the standard deviation along the 3 axis.
| pc | Input point cloud. |
| eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EPrincipalAxisExtractor::Extract | ( | const eVision::Easy3D::EPointCloud & | pc, |
| eVision::Easy3D::E3DPoint & | stdDev ) const |
Computes the E3DTransformMatrix for a given EPointCloud.
This will compute the PCA, then select the direction of each axis of the basis so that this basis is as close as possible as the reference transform.
Optionally returns the standard deviation along the 3 axis.
| pc | Input point cloud. |
| stdDev | Variable to store the X, Y and Z components of the standard deviation. |
| eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EPrincipalAxisExtractor::Extract | ( | const eVision::Easy3D::EPointCloud & | pc, |
| float & | stdDevX, | ||
| float & | stdDevY, | ||
| float & | stdDevZ ) const |
Computes the E3DTransformMatrix for a given EPointCloud.
This will compute the PCA, then select the direction of each axis of the basis so that this basis is as close as possible as the reference transform.
Optionally returns the standard deviation along the 3 axis.
| pc | Input point cloud. |
| stdDevX | Variable to store the X component of the standard deviation. |
| stdDevY | Variable to store the Y component of the standard deviation. |
| stdDevZ | Variable to store the Z component of the standard deviation. |
| eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EPrincipalAxisExtractor::GetReferenceTransform | ( | ) | const |
Sets/Gets the reference transform (E3DTransformMatrix). If not set, it will use the main basis as reference to select the direction of each axis of the new basis.
| bool eVision::Easy3D::EPrincipalAxisExtractor::HasReferenceTransformSet | ( | ) | const |
Returns 'true' if a reference transform (E3DTransformMatrix) has been set explicitly.
| void eVision::Easy3D::EPrincipalAxisExtractor::Load | ( | const std::string & | path | ) |
Loads the EPrincipalAxisExtractor object configuration. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::Easy3D::EPrincipalAxisExtractor::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the EPrincipalAxisExtractor object configuration. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| eVision::Easy3D::EPrincipalAxisExtractor & eVision::Easy3D::EPrincipalAxisExtractor::operator= | ( | const eVision::Easy3D::EPrincipalAxisExtractor & | other | ) |
Assignment operator.
| other | The EPrincipalAxisExtractor object that should be copied. |
| void eVision::Easy3D::EPrincipalAxisExtractor::Save | ( | const std::string & | path | ) |
Saves the EPrincipalAxisExtractor object configuration. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::Easy3D::EPrincipalAxisExtractor::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the EPrincipalAxisExtractor object configuration. The given ESerializer must have been created for writing.
| serializer | The ESerializer object that is written to. |
| void eVision::Easy3D::EPrincipalAxisExtractor::SetReferenceTransform | ( | const eVision::Easy3D::E3DTransformMatrix & | refTransform | ) |
Sets/Gets the reference transform (E3DTransformMatrix). If not set, it will use the main basis as reference to select the direction of each axis of the new basis.
| void eVision::Easy3D::EPrincipalAxisExtractor::UnsetReferenceTransform | ( | ) |
Unset the reference transform (E3DTransformMatrix).
| CppWrapperInternal::WrappedClass eVision::Easy3D::EPrincipalAxisExtractor::wrappedClass_ |