MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstICP Class Reference
Inheritance diagram for mrmeshpy.ConstICP:

Public Member Functions

 __init__ (self, *args, **kwargs)
ConstPointPairs getFlt2RefPairs (self)
PointCloud getFltSamplesCloud (self)
float getMeanSqDistToPlane (self)
float getMeanSqDistToPoint (self)
int getNumActivePairs (self)
int getNumSamples (self)
ConstICPProperties getParams (self)
ConstPointPairs getRef2FltPairs (self)
PointCloud getRefSamplesCloud (self)
str getStatusInfo (self)

Detailed Description

Generated from:  MR::ICP

This class allows you to register two object with similar shape using
Iterative Closest Points (ICP) point-to-point or point-to-plane algorithms
\\snippet cpp-examples/MeshICP.dox.cpp 0

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstICP.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstICP, flt: meshlib.mrmeshpy.ConstMeshOrPoints, ref: meshlib.mrmeshpy.ConstMeshOrPoints, fltXf: meshlib.mrmeshpy.ConstAffineXf3f, refXf: meshlib.mrmeshpy.ConstAffineXf3f, fltSamples: meshlib.mrmeshpy.ConstVertBitSet = meshlib.mrmeshpy.VertBitSet(), refSamples: meshlib.mrmeshpy.ConstVertBitSet = meshlib.mrmeshpy.VertBitSet()) -> None

Constructs ICP framework with given sample points on both objects
\\param flt floating object
\\param ref reference object
\\param fltXf transformation from floating object space to global space
\\param refXf transformation from reference object space to global space
\\param fltSamples samples on floating object to find projections on the reference object during the algorithm
\\param refSamples samples on reference object to find projections on the floating object during the algorithm
the weight of each pair is the double area of mesh triangles around its sample vertex (1 for point clouds)

2. __init__(self: meshlib.mrmeshpy.ConstICP, flt: meshlib.mrmeshpy.ConstMeshOrPointsXf, ref: meshlib.mrmeshpy.ConstMeshOrPointsXf, fltSamples: meshlib.mrmeshpy.ConstVertBitSet = meshlib.mrmeshpy.VertBitSet(), refSamples: meshlib.mrmeshpy.ConstVertBitSet = meshlib.mrmeshpy.VertBitSet()) -> None

3. __init__(self: meshlib.mrmeshpy.ConstICP, flt: meshlib.mrmeshpy.ConstMeshOrPoints, ref: meshlib.mrmeshpy.ConstMeshOrPoints, fltXf: meshlib.mrmeshpy.ConstAffineXf3f, refXf: meshlib.mrmeshpy.ConstAffineXf3f, fltSamples: meshlib.mrmeshpy.Const_std_vector_WeightedVertexT_float, refSamples: meshlib.mrmeshpy.Const_std_vector_WeightedVertexT_float) -> None

Constructs ICP framework with given sample points on both objects and the weights of their pairs,
the weights stay fixed during the algorithm

4. __init__(self: meshlib.mrmeshpy.ConstICP, flt: meshlib.mrmeshpy.ConstMeshOrPointsXf, ref: meshlib.mrmeshpy.ConstMeshOrPointsXf, fltSamples: meshlib.mrmeshpy.Const_std_vector_WeightedVertexT_float, refSamples: meshlib.mrmeshpy.Const_std_vector_WeightedVertexT_float) -> None

5. __init__(self: meshlib.mrmeshpy.ConstICP, flt: meshlib.mrmeshpy.ConstMeshOrPoints, ref: meshlib.mrmeshpy.ConstMeshOrPoints, fltXf: meshlib.mrmeshpy.ConstAffineXf3f, refXf: meshlib.mrmeshpy.ConstAffineXf3f, samplingVoxelSize: float) -> None

Constructs ICP framework with automatic points sampling on both objects
\\param flt floating object
\\param ref reference object
\\param fltXf transformation from floating object space to global space
\\param refXf transformation from reference object space to global space
\\param samplingVoxelSize approximate distance between samples on each of two objects
all pairs get equal weights, and a mesh with big triangles gets samples inside them as in samplePoints( samplingVoxelSize, true )

6. __init__(self: meshlib.mrmeshpy.ConstICP, flt: meshlib.mrmeshpy.ConstMeshOrPointsXf, ref: meshlib.mrmeshpy.ConstMeshOrPointsXf, samplingVoxelSize: float) -> None

7. __init__(self: meshlib.mrmeshpy.ConstICP, arg0: meshlib.mrmeshpy.ConstICP) -> None

Implicit copy constructor.

8. __init__(self: meshlib.mrmeshpy.ConstICP, : meshlib.mrmeshpy.ConstICP) -> None

Member Function Documentation

◆ getFlt2RefPairs()

ConstPointPairs mrmeshpy.ConstICP.getFlt2RefPairs ( self)
returns current pairs formed from samples on floating object and projections on reference object

◆ getFltSamplesCloud()

PointCloud mrmeshpy.ConstICP.getFltSamplesCloud ( self)
returns the samples on floating object in its local space, with normals if the object has them;
i-th point of the cloud is the source of i-th pair in getFlt2RefPairs()

◆ getMeanSqDistToPlane()

float mrmeshpy.ConstICP.getMeanSqDistToPlane ( self)
computes root-mean-square deviation from points to target planes

◆ getMeanSqDistToPoint()

float mrmeshpy.ConstICP.getMeanSqDistToPoint ( self)
computes root-mean-square deviation between points

◆ getNumActivePairs()

int mrmeshpy.ConstICP.getNumActivePairs ( self)
computes the number of active point pairs

◆ getNumSamples()

int mrmeshpy.ConstICP.getNumSamples ( self)
computes the number of samples able to form pairs

◆ getParams()

ConstICPProperties mrmeshpy.ConstICP.getParams ( self)

◆ getRef2FltPairs()

ConstPointPairs mrmeshpy.ConstICP.getRef2FltPairs ( self)
returns current pairs formed from samples on reference object and projections on floating object

◆ getRefSamplesCloud()

PointCloud mrmeshpy.ConstICP.getRefSamplesCloud ( self)
returns the samples on reference object in its local space, with normals if the object has them;
i-th point of the cloud is the source of i-th pair in getRef2FltPairs()

◆ getStatusInfo()

str mrmeshpy.ConstICP.getStatusInfo ( self)

The documentation for this class was generated from the following file: