OrsContourPath

Active contour

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.
date:Jan 26 2017 16:39
dragonflyVersion:
 2.1.0.200 (D)
UUID:274722ace41d11e682470cc47aab53c3

Class Code

class OrsPythonPlugins.OrsContourPath.OrsContourPath.OrsContourPath(varname=None, managed=True)
ORSStateDensePath = 'ORSStateDensePath'
ORSStateDensePathActivation()
ORSStateEdit = 'ORSStateEdit'
ORSStatePathRepulsor = 'ORSStatePathRepulsor'
ORSStatePathRepulsorActivation()
ORSStateSnapTool = 'ORSStateSnapTool'
ORSStateSnapToolActivation()
classmethod OrsContourPath_openGUI()
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
classmethod addGroupOfPaths()
closable = True
closeWidget(name)
computeNormals()
copyCurrentPathInView()
copyPathOnCurrentSliceFromDensePatAction()
copyPathOnCurrentSliceFromEditAction()
copyPathOnCurrentSliceFromSnapToolAction()
cutMeshSingleSliceOnCurrentView(meshToCut)
cutWholeMeshInCurrentViewOrientation(meshToCut, sliceCount)
decreaseRepulsorRadiusAction()
deletePathsInGroupOfPaths(listOfPaths)
deletePlugin(aWidget=None)
interfacemethod generatePreview(inputDataset, viewName, useLevelling, useGaussianFilter, gaussianFilterStd, cannyProportion, cannySigma)

Generate a dataset of preview on the slice of the specified view

Parameters:
  • inputDataset (ORSModel.ors.Channel) – input dataset
  • viewName (str) – a view genealogical name
  • useLevelling (bool) – specifies if the window levelling should be used
  • useGaussianFilter (bool) – specifies if the Gaussian filter should be used
  • gaussianFilterStd (float) – standard deviation of the Gaussian filter
  • cannyProportion (float) – pondering factor (between 0.0 and 1.0) of the Canny filter to be added to the gaussian filtered result
  • cannySigma (float) – sigma parameter (>= 0) of the Canny filter
Returns:

previewDataset (ORSModel.ors.Channel) – the dataset of the preview

generatePreviewOnCurrentView()
classmethod getAbout()
getCurrentPath()

Gets the path object for which the snake parameters are used.

Return:the path object
Rtype:ORSModel.ors.VisualPath
getDatasetParameters()
getGaussianFilterStd()
getGroupOfPaths()
getInputDataset()
interfacemethod getMeshPoissonReconstruction(aGroupOfRegions, depth=8, scale=1.25, solverDivide=8, isoDivide=8, samplesPerNode=1.0, normalsEvaluation='path plane', inputDataset=None, IProgress=None)

Calls for a Poisson reconstruction on a set of regions.

The regions used in the Poisson reconstruction are only the selected objects contained in the group.

Parameters:
  • aGroupOfRegions (ORSModel.ors.Group) – group containing a list of selected regions to use in the Poisson reconstruction. At this time, the only accepted regions are instances of VisualPath.
  • depth (int) – Poisson reconstruction parameter depth
  • scale (float) – Poisson reconstruction parameter scale
  • solverDivide (int) – Poisson reconstruction parameter solverDivide
  • isoDivide (int) – Poisson reconstruction parameter isoDivide
  • samplesPerNode (float) – Poisson reconstruction parameter samplesPerNode
  • normalsEvaluation (str) – technique to evaluate the normals
  • inputDataset (ORSModel.ors.Channel) – dataset to be used if the normals are to be evaluated from a dataset
  • IProgress (ORSModel.ors.Progress) – progress object
Returns:

newMesh (ORSModel.ors.Mesh) – created mesh obtained by the Poisson reconstruction

classmethod getMinMaxValueLevelling(inputDataset, aView)

Gets the window levelling values for the given dataset in the given view, in data units.

Parameters:
Returns:
  • minValueLevellingDataArray (float) – min value of window levelling in data
  • maxValueLevellingDataArray (float) – max value of window levelling in data
getPathPointsUndoArrayExistsInAtLeastOneSelectedPath()
getPoissonReconstructionParameters()
getRadiusRepulsor(aPath, view)
getSelectedPathsInCurrentGroupOfPaths()

Gets the selected path object(s).

Return:list of selected path object(s).
Rtype:list of ORSModel.ors.VisualPath
getSnakeParameters()
getTablePathsModel()
getUseGaussianFilter()
getUseLevelling()
handleChanged(oldState, newState)
handleTriggered()
increaseDecreaseRepulsorRadius(increaseRadius=True)
increaseRepulsorRadiusAction()
iterate()
iterateSelectedPathsActionAction()

Action stage of the action iterateSelectedPathsAction

iterateSelectedPathsActionEnterAction()

EnterAction stage of the action iterateSelectedPathsAction

This action uses the instance variable “_iterateSelectedPathsActionBuffer”, a buffer kept in the implementation instance.

iterateSelectedPathsActionExitAction()

ExitAction stage of the action iterateSelectedPathsAction

iterateSelectedPathsFromDensePathAction()
iterateSelectedPathsFromEditAction()
iterateSelectedPathsFromSnapToolAction()
keepAlive = False
classmethod keepPathPointsInUndoArray(aPath)
lookAtCurrentPath()
interfacemethod lookAtPath(viewName, aVisualPath)

Sets the camera to view the path

Parameters:
multiple = False
classmethod openGUI()
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)
savable = True
selectAndLookAtPreviousNextPath(nextPath=True)
selectNextPathInGroupFromDensePathAction()
selectNextPathInGroupFromEditAction()
selectNextPathInGroupFromSnapToolAction()
selectPreviousPathInGroupFromDensePathAction()
selectPreviousPathInGroupFromEditAction()
selectPreviousPathInGroupFromSnapToolAction()
selectedObjectsChange()
setBlockExecutionOfSelectedObjectsChange(value)
setCursor(state)
setDatasetParameters(datasetParameters)
setGroupOfPaths(groupOfPaths)
classmethod setPathPointsFromUndoArray(aPath)
setPoissonReconstructionParameters(poissonReconstructionParameters)
setRadiusRepulsor(aPath, view, radiusRepulsor)
setSelectionStateOfAllPathsInCurrentGroupOfPaths(newSelectionState)

Sets the selection state of all path object(s).

setSnakeParameters(snakeParameters)
stateDescriptors = [<ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>, <ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>, <ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>, <ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>]
switchToDensePathStateAction()
switchToEditStateAction()
switchToSnapToolStateAction()
temporarySwitchToPathRepulsorStateFromDensePathAction()
temporarySwitchToPathRepulsorStateFromEditAction()
temporarySwitchToPathRepulsorStateFromSnapToolAction()
classmethod toolsMenu()
undoIterate()
updateSnakeForPath(snake, aPath, aView, aDatasetParameters=None)
updateSnakeParametersFromCurrentGroupOfPaths()
updateSnakeParametersWithPath(aPath, snake)
updateTableModels()
updateTablePathsModel()

This function is to actualize the table model of paths

updateUI()