OrsMeshRegistration_851ac99ecbcf11e79e32107b441a0862

author:ORS Team
contact:http://theobjects.com
email:info@theobjects.com
organization:Object Research Systems (ORS), Inc.
address:760 St-Paul West, suite 101, Montréal, Québec, Canada, H3C 1M4
copyright:Object Research Systems (ORS), Inc. All rights reserved 2018.
date:Nov 17 2017 14:43
dragonflyVersion:
 3.5.0.407 (D)
UUID:851ac99ecbcf11e79e32107b441a0862

Class Code

class OrsPythonPlugins.OrsMeshRegistration_851ac99ecbcf11e79e32107b441a0862.OrsMeshRegistration_851ac99ecbcf11e79e32107b441a0862.OrsMeshRegistration_851ac99ecbcf11e79e32107b441a0862(varname=None, managed=True)
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
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
applyMeshRegistrationWithAttributeAsParameters()
closable = True
closeWidget(name)
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
getIteration()
getRejectionScale()
getSource()
getSourceGUID()
getTarget()
getTargetGUID()
getTolerence()
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 – A 4x4 transformation matrix

:rtype : ORSModel.ors.Matrix4x4

getnumLevel()
keepAlive = False
multiple = False
classmethod openGUI()
classmethod openMeshRegistrationAction(meshGUID)
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)
savable = False
setIteration(nbIteration)
setNumLevel(aNumLevel)
setRejectionScale(aRejectionScale)
setSource(aSource)
setSourceGUID(aMeshGUID)
setTarget(aTarget)
setTargetGUID(aMeshGUID)
setTolerence(aTolerence)