MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ICP:

Public Member Functions

None __init__ (self, ConstMeshOrPoints flt, ConstMeshOrPoints ref, ConstAffineXf3f fltXf, ConstAffineXf3f refXf, ConstVertBitSet fltSamples=..., ConstVertBitSet refSamples=...)
None __init__ (self, ConstMeshOrPointsXf flt, ConstMeshOrPointsXf ref, ConstVertBitSet fltSamples=..., ConstVertBitSet refSamples=...)
None __init__ (self, ConstMeshOrPoints flt, ConstMeshOrPoints ref, ConstAffineXf3f fltXf, ConstAffineXf3f refXf, Const_std_vector_WeightedVertexT_float fltSamples, Const_std_vector_WeightedVertexT_float refSamples)
None __init__ (self, ConstMeshOrPointsXf flt, ConstMeshOrPointsXf ref, Const_std_vector_WeightedVertexT_float fltSamples, Const_std_vector_WeightedVertexT_float refSamples)
None __init__ (self, ConstMeshOrPoints flt, ConstMeshOrPoints ref, ConstAffineXf3f fltXf, ConstAffineXf3f refXf, float samplingVoxelSize)
None __init__ (self, ConstMeshOrPointsXf flt, ConstMeshOrPointsXf ref, float samplingVoxelSize)
None __init__ (self, ConstICP arg0)
ICP assign (self, ConstICP other)
AffineXf3f autoSelectFloatXf (self)
AffineXf3f calculateTransformation (self)
None sampleFltPoints (self, float samplingVoxelSize, bool nonVertexSamples=True)
None samplePoints (self, float samplingVoxelSize, bool nonVertexSamples=True)
None sampleRefPoints (self, float samplingVoxelSize, bool nonVertexSamples=True)
None setBadIterCount (self, int iter)
None setCosineLimit (self, float cos)
None setDistanceLimit (self, float dist)
None setFarDistFactor (self, float factor)
None setFloatXf (self, ConstAffineXf3f fltXf)
None setFltSamples (self, ConstVertBitSet fltSamples)
None setParams (self, ConstICPProperties prop)
None setRefSamples (self, ConstVertBitSet refSamples)
None setXfs (self, ConstAffineXf3f fltXf, ConstAffineXf3f refXf)
None updatePointPairs (self)
Public Member Functions inherited from mrmeshpy.ConstICP
 __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)

Static Public Member Functions

None __init__ (*args, **kwargs)
 getLastICPInfo (*args, **kwargs)

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__() [1/8]

None mrmeshpy.ICP.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/8]

None mrmeshpy.ICP.__init__ ( self,
ConstMeshOrPoints flt,
ConstMeshOrPoints ref,
ConstAffineXf3f fltXf,
ConstAffineXf3f refXf,
ConstVertBitSet fltSamples = ...,
ConstVertBitSet refSamples = ... )
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)

◆ __init__() [3/8]

None mrmeshpy.ICP.__init__ ( self,
ConstMeshOrPointsXf flt,
ConstMeshOrPointsXf ref,
ConstVertBitSet fltSamples = ...,
ConstVertBitSet refSamples = ... )

◆ __init__() [4/8]

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

◆ __init__() [5/8]

None mrmeshpy.ICP.__init__ ( self,
ConstMeshOrPointsXf flt,
ConstMeshOrPointsXf ref,
Const_std_vector_WeightedVertexT_float fltSamples,
Const_std_vector_WeightedVertexT_float refSamples )

◆ __init__() [6/8]

None mrmeshpy.ICP.__init__ ( self,
ConstMeshOrPoints flt,
ConstMeshOrPoints ref,
ConstAffineXf3f fltXf,
ConstAffineXf3f refXf,
float samplingVoxelSize )
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 )

◆ __init__() [7/8]

None mrmeshpy.ICP.__init__ ( self,
ConstMeshOrPointsXf flt,
ConstMeshOrPointsXf ref,
float samplingVoxelSize )

◆ __init__() [8/8]

None mrmeshpy.ICP.__init__ ( self,
ConstICP arg0 )
Implicit copy constructor.

Member Function Documentation

◆ assign()

ICP mrmeshpy.ICP.assign ( self,
ConstICP other )

◆ autoSelectFloatXf()

AffineXf3f mrmeshpy.ICP.autoSelectFloatXf ( self)
automatically selects initial transformation for the floating object
based on covariance matrices of both floating and reference objects;
applies the transformation to the floating object and returns it

◆ calculateTransformation()

AffineXf3f mrmeshpy.ICP.calculateTransformation ( self)
runs ICP algorithm given input objects, transformations, and parameters;
\\return adjusted transformation of the floating object to match reference object

◆ getLastICPInfo()

mrmeshpy.ICP.getLastICPInfo ( * args,
** kwargs )
static
getStatusInfo(self: meshlib.mrmeshpy.ConstICP) -> str

◆ sampleFltPoints()

None mrmeshpy.ICP.sampleFltPoints ( self,
float samplingVoxelSize,
bool nonVertexSamples = True )

◆ samplePoints()

None mrmeshpy.ICP.samplePoints ( self,
float samplingVoxelSize,
bool nonVertexSamples = True )
select pairs with origin samples on both objects

◆ sampleRefPoints()

None mrmeshpy.ICP.sampleRefPoints ( self,
float samplingVoxelSize,
bool nonVertexSamples = True )

◆ setBadIterCount()

None mrmeshpy.ICP.setBadIterCount ( self,
int iter )

◆ setCosineLimit()

None mrmeshpy.ICP.setCosineLimit ( self,
float cos )

◆ setDistanceLimit()

None mrmeshpy.ICP.setDistanceLimit ( self,
float dist )

◆ setFarDistFactor()

None mrmeshpy.ICP.setFarDistFactor ( self,
float factor )

◆ setFloatXf()

None mrmeshpy.ICP.setFloatXf ( self,
ConstAffineXf3f fltXf )
sets to-world transformation for the floating object

◆ setFltSamples()

None mrmeshpy.ICP.setFltSamples ( self,
ConstVertBitSet fltSamples )
select pairs with origin samples on floating object;
setFltSamples weights each pair by the double area of mesh triangles around its sample vertex,
sampleFltPoints performs grid sampling and gives all pairs equal weights;
\\p nonVertexSamples if true, a mesh with triangles too big for the sampling is sampled from its dense point cloud
       (see meshToDensePointCloud) to get the samples inside the triangles and on the edges as well; otherwise only its vertices are sampled

◆ setParams()

None mrmeshpy.ICP.setParams ( self,
ConstICPProperties prop )
tune algorithm params before run calculateTransformation()

◆ setRefSamples()

None mrmeshpy.ICP.setRefSamples ( self,
ConstVertBitSet refSamples )
select pairs with origin samples on reference object, weighted and sampled the same way as for floating object

◆ setXfs()

None mrmeshpy.ICP.setXfs ( self,
ConstAffineXf3f fltXf,
ConstAffineXf3f refXf )
sets to-world transformations both for floating and reference objects

◆ updatePointPairs()

None mrmeshpy.ICP.updatePointPairs ( self)
recompute point pairs after manual change of transformations or parameters

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