OrsMeshRegistration_851ac99ecbcf11e79e32107b441a0862¶
- author:
Dragonfly Team
- contact:
- email:
- organization:
Comet Technologies Canada Inc.
- address:
460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
- copyright:
Comet Technologies Canada Inc. All rights reserved 2023.
- date:
Nov 17 2017 14:43
- dragonflyVersion:
3.5.0.407 (D)
- UUID:
851ac99ecbcf11e79e32107b441a0862
Class Code¶
- class OrsPythonPlugins.OrsMeshRegistration_851ac99ecbcf11e79e32107b441a0862.OrsMeshRegistration_851ac99ecbcf11e79e32107b441a0862.OrsMeshRegistration_851ac99ecbcf11e79e32107b441a0862(*args, **kwargs)¶
- interfacemethod applyMeshRegistration(source, target, iTIndex, nbIterations, tolerence, rejectionScale, numLevels)¶
Perform the registration of a mesh against another one. The source (mobile) is the mesh that will be moved to the other target (fixed).
- Parameters:
source (ORSModel.ors.Mesh) – The mobile mesh
target (ORSModel.ors.Mesh) – The fixed mesh
iTIndex (int) – Current time step
nbIterations (int) – Maximal number of iterations that can be computed
tolerence (float) – The accuracy of registration between 2 iterations
rejectionScale (float) – A standard deviation coefficient
numLevels (int) – Number of pyramid levels to proceed
- classmethod contextualMenu(context)¶
Contextual menu.
This code will be executed when a contextual menu has to be displayed.
The menu item instances used in this method should be taken from menu item definitions declared in this plugin and filled with proper values (section, action, enabled, …). If multiple menu items have to be used by this method, they should be defined using the same pattern.
- Parameters:
listSelectedObjectsRepr – list of selected objects (this argument is given as string representation)
- Returns:
output – None, a single menu item instance, or a list of menu item instances
- classmethod getMainFormClass()¶
Gets the class of the main form
- Returns:
output –
- classmethod getTransformationMatrixFromAnICPMeshRegistration(source, target, iTIndex, nbIterations=1000, tolerence=0.005, rejectionScale=2.5, numLevels=6)¶
- Parameters:
source – The mesh that will be moved to the other one (dynamic one)
target – The nominal mesh (static one)
iTIndex – Current Time step
nbIterations – Maximal number of iterations
tolerence – The accuracy of registration between 2 iterations
rejectionScale – A standard deviation coefficient
numLevels – Number of pyramid levels to proceed
- Returns:
output (ORSModel.ors.Matrix4x4) – A 4x4 transformation matrix