Alignment class, used to calculate the best transformation between matching pairs of points. The object EFeaturesAligner contains a list of points called the 'Model points list'. The method EFeaturesAligner::Compute takes a second list of points as argument which is called the 'Measured points list' and produces a E3DTransformMatrix as result. More...
#include <eVision/Easy3D/EFeaturesAligner.h>
Public Member Functions | |
| EFeaturesAligner () | |
| Creates a EFeaturesAligner object. | |
| EFeaturesAligner (const eVision::Easy3D::EFeaturesAligner &other) | |
| Copy constructor for EFeaturesAligner. | |
| virtual | ~EFeaturesAligner () throw () |
| eVision::Easy3D::EFeaturesAligner & | operator= (const eVision::Easy3D::EFeaturesAligner &other) |
| Assignment operator. | |
| void | SetModelPoints (const std::vector< eVision::Easy3D::E3DPoint > &points) |
| Sets/Gets the model points list. The model point list is a list of points that is used either as source or as destination of the transformation to calculate. The model points list should at least contain 3 unaligned points. | |
| std::vector< eVision::Easy3D::E3DPoint > | GetModelPoints () const |
| Sets/Gets the model points list. The model point list is a list of points that is used either as source or as destination of the transformation to calculate. The model points list should at least contain 3 unaligned points. | |
| void | SetPolarityTransform (eVision::Easy3D::EAlignmentPolarity polarity) |
| Sets/Gets the polarity of the transformation from EAlignmentPolarity. | |
| eVision::Easy3D::EAlignmentPolarity | GetPolarityTransform () const |
| Sets/Gets the polarity of the transformation from EAlignmentPolarity. | |
| void | SetAlignmentType (eVision::Easy3D::EAlignmentType type) |
| EAlignmentType of the EFeaturesAligner. By default, alignment type is EAlignmentType::EAlignmentType_Ordered. | |
| eVision::Easy3D::EAlignmentType | GetAlignmentType () const |
| EAlignmentType of the EFeaturesAligner. By default, alignment type is EAlignmentType::EAlignmentType_Ordered. | |
| void | SetXAngleRange (eVision::EFloatRange range) |
| Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the x-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered. | |
| eVision::EFloatRange | GetXAngleRange () const |
| Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the x-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered. | |
| void | SetYAngleRange (eVision::EFloatRange range) |
| Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the y-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered. | |
| eVision::EFloatRange | GetYAngleRange () const |
| Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the y-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered. | |
| void | SetZAngleRange (eVision::EFloatRange range) |
| Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the z-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered. | |
| eVision::EFloatRange | GetZAngleRange () const |
| Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the z-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered. | |
| eVision::Easy3D::E3DTransformMatrix | Compute (const std::vector< eVision::Easy3D::E3DPoint > &measuredPoints) const |
| Computes the best transformation matrix for a given Measured points list. | |
| eVision::Easy3D::E3DTransformMatrix | Compute (const std::vector< eVision::Easy3D::E3DPoint > &measuredPoints, eVision::Easy3D::EErrorStatistics &errorStatistics) const |
| Computes the best transformation matrix for a given Measured points list. | |
| void | Load (const std::string &path) |
| Loads the EFeaturesAligner object configuration. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the EFeaturesAligner object configuration. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Saves the EFeaturesAligner object configuration. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the EFeaturesAligner object configuration. The given ESerializer must have been created for writing. | |
| EFeaturesAligner (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Alignment class, used to calculate the best transformation between matching pairs of points. The object EFeaturesAligner contains a list of points called the 'Model points list'. The method EFeaturesAligner::Compute takes a second list of points as argument which is called the 'Measured points list' and produces a E3DTransformMatrix as result.
License(s): Easy3D
| eVision::Easy3D::EFeaturesAligner::EFeaturesAligner | ( | ) |
Creates a EFeaturesAligner object.
| eVision::Easy3D::EFeaturesAligner::EFeaturesAligner | ( | const eVision::Easy3D::EFeaturesAligner & | other | ) |
Copy constructor for EFeaturesAligner.
| other | Reference to the object used for the initialization. |
|
virtual | ||||||||||||
| eVision::Easy3D::EFeaturesAligner::EFeaturesAligner | ( | CppWrapperInternal::InternalConstructor | ) |
| eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EFeaturesAligner::Compute | ( | const std::vector< eVision::Easy3D::E3DPoint > & | measuredPoints | ) | const |
Computes the best transformation matrix for a given Measured points list.
This will compute the best transformation for the alignment between the Measured points and the Model points.
| measuredPoints | The measured points list; the measured points list should at least contain 3 unaligned points. |
| eVision::Easy3D::E3DTransformMatrix eVision::Easy3D::EFeaturesAligner::Compute | ( | const std::vector< eVision::Easy3D::E3DPoint > & | measuredPoints, |
| eVision::Easy3D::EErrorStatistics & | errorStatistics ) const |
Computes the best transformation matrix for a given Measured points list.
This will compute the best transformation for the alignment between the Measured points and the Model points.
| measuredPoints | The measured points list; the measured points list should at least contain 3 unaligned points. |
| errorStatistics | Optional parameter passed by reference. This object will contains the error statistics (deviation between model and aligned points). |
| eVision::Easy3D::EAlignmentType eVision::Easy3D::EFeaturesAligner::GetAlignmentType | ( | ) | const |
EAlignmentType of the EFeaturesAligner. By default, alignment type is EAlignmentType::EAlignmentType_Ordered.
| std::vector< eVision::Easy3D::E3DPoint > eVision::Easy3D::EFeaturesAligner::GetModelPoints | ( | ) | const |
Sets/Gets the model points list. The model point list is a list of points that is used either as source or as destination of the transformation to calculate. The model points list should at least contain 3 unaligned points.
| eVision::Easy3D::EAlignmentPolarity eVision::Easy3D::EFeaturesAligner::GetPolarityTransform | ( | ) | const |
Sets/Gets the polarity of the transformation from EAlignmentPolarity.
If polarity is EAlignmentPolarity::EAlignmentPolarity_ModelToMeasured, calculates the best transformation from the Model points list to the Measured points list (default).
If the polarity is EAlignmentPolarity::EAlignmentPolarity_MeasuredToModel, calculates the best transformation from the Measured points list to the Model points list.
| eVision::EFloatRange eVision::Easy3D::EFeaturesAligner::GetXAngleRange | ( | ) | const |
Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the x-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered.
By default, the range is [0°, 180°].
| eVision::EFloatRange eVision::Easy3D::EFeaturesAligner::GetYAngleRange | ( | ) | const |
Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the y-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered.
By default, the range is [0°, 180°].
| eVision::EFloatRange eVision::Easy3D::EFeaturesAligner::GetZAngleRange | ( | ) | const |
Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the z-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered.
By default, the range is [0°, 180°].
| void eVision::Easy3D::EFeaturesAligner::Load | ( | const std::string & | path | ) |
Loads the EFeaturesAligner object configuration. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::Easy3D::EFeaturesAligner::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the EFeaturesAligner object configuration. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| eVision::Easy3D::EFeaturesAligner & eVision::Easy3D::EFeaturesAligner::operator= | ( | const eVision::Easy3D::EFeaturesAligner & | other | ) |
Assignment operator.
| other | The other EFeaturesAligner that we will copy into this one. |
| void eVision::Easy3D::EFeaturesAligner::Save | ( | const std::string & | path | ) |
Saves the EFeaturesAligner object configuration. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::Easy3D::EFeaturesAligner::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the EFeaturesAligner object configuration. The given ESerializer must have been created for writing.
| serializer | The serializer. |
| void eVision::Easy3D::EFeaturesAligner::SetAlignmentType | ( | eVision::Easy3D::EAlignmentType | type | ) |
EAlignmentType of the EFeaturesAligner. By default, alignment type is EAlignmentType::EAlignmentType_Ordered.
| void eVision::Easy3D::EFeaturesAligner::SetModelPoints | ( | const std::vector< eVision::Easy3D::E3DPoint > & | points | ) |
Sets/Gets the model points list. The model point list is a list of points that is used either as source or as destination of the transformation to calculate. The model points list should at least contain 3 unaligned points.
| void eVision::Easy3D::EFeaturesAligner::SetPolarityTransform | ( | eVision::Easy3D::EAlignmentPolarity | polarity | ) |
Sets/Gets the polarity of the transformation from EAlignmentPolarity.
If polarity is EAlignmentPolarity::EAlignmentPolarity_ModelToMeasured, calculates the best transformation from the Model points list to the Measured points list (default).
If the polarity is EAlignmentPolarity::EAlignmentPolarity_MeasuredToModel, calculates the best transformation from the Measured points list to the Model points list.
| void eVision::Easy3D::EFeaturesAligner::SetXAngleRange | ( | eVision::EFloatRange | range | ) |
Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the x-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered.
By default, the range is [0°, 180°].
| void eVision::Easy3D::EFeaturesAligner::SetYAngleRange | ( | eVision::EFloatRange | range | ) |
Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the y-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered.
By default, the range is [0°, 180°].
| void eVision::Easy3D::EFeaturesAligner::SetZAngleRange | ( | eVision::EFloatRange | range | ) |
Sets/Gets the range of allowed angles in Easy::SetAngleUnit between the z-axes of the model and measured referentials. This allows to filter out symmetries when the EFeaturesAligner::SetAlignmentType is EAlignmentType::EAlignmentType_Unordered.
By default, the range is [0°, 180°].
| CppWrapperInternal::WrappedClass eVision::Easy3D::EFeaturesAligner::wrappedClass_ |