Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
| getLastICPInfo (*args, **kwargs) | |
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
|
static |
| 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)
| None mrmeshpy.ICP.__init__ | ( | self, | |
| ConstMeshOrPointsXf | flt, | ||
| ConstMeshOrPointsXf | ref, | ||
| ConstVertBitSet | fltSamples = ..., | ||
| ConstVertBitSet | refSamples = ... ) |
| None mrmeshpy.ICP.__init__ | ( | self, | |
| ConstMeshOrPoints | flt, | ||
| ConstMeshOrPoints | ref, | ||
| ConstAffineXf3f | fltXf, | ||
| ConstAffineXf3f | refXf, | ||
| Const_std_vector_WeightedVertexT_float | fltSamples, | ||
| Const_std_vector_WeightedVertexT_float | refSamples ) |
Constructs ICP framework with given sample points on both objects and the weights of their pairs, the weights stay fixed during the algorithm
| None mrmeshpy.ICP.__init__ | ( | self, | |
| ConstMeshOrPointsXf | flt, | ||
| ConstMeshOrPointsXf | ref, | ||
| Const_std_vector_WeightedVertexT_float | fltSamples, | ||
| Const_std_vector_WeightedVertexT_float | refSamples ) |
| 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 )
| None mrmeshpy.ICP.__init__ | ( | self, | |
| ConstMeshOrPointsXf | flt, | ||
| ConstMeshOrPointsXf | ref, | ||
| float | samplingVoxelSize ) |
| None mrmeshpy.ICP.__init__ | ( | self, | |
| ConstICP | arg0 ) |
Implicit copy constructor.
| 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
| 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
|
static |
getStatusInfo(self: meshlib.mrmeshpy.ConstICP) -> str
| None mrmeshpy.ICP.sampleFltPoints | ( | self, | |
| float | samplingVoxelSize, | ||
| bool | nonVertexSamples = True ) |
| None mrmeshpy.ICP.samplePoints | ( | self, | |
| float | samplingVoxelSize, | ||
| bool | nonVertexSamples = True ) |
select pairs with origin samples on both objects
| None mrmeshpy.ICP.sampleRefPoints | ( | self, | |
| float | samplingVoxelSize, | ||
| bool | nonVertexSamples = True ) |
| None mrmeshpy.ICP.setBadIterCount | ( | self, | |
| int | iter ) |
| None mrmeshpy.ICP.setCosineLimit | ( | self, | |
| float | cos ) |
| None mrmeshpy.ICP.setDistanceLimit | ( | self, | |
| float | dist ) |
| None mrmeshpy.ICP.setFarDistFactor | ( | self, | |
| float | factor ) |
| None mrmeshpy.ICP.setFloatXf | ( | self, | |
| ConstAffineXf3f | fltXf ) |
sets to-world transformation for the floating object
| 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
| None mrmeshpy.ICP.setParams | ( | self, | |
| ConstICPProperties | prop ) |
tune algorithm params before run calculateTransformation()
| 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
| None mrmeshpy.ICP.setXfs | ( | self, | |
| ConstAffineXf3f | fltXf, | ||
| ConstAffineXf3f | refXf ) |
sets to-world transformations both for floating and reference objects
| None mrmeshpy.ICP.updatePointPairs | ( | self | ) |
recompute point pairs after manual change of transformations or parameters