Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect Class Reference
Inheritance diagram for SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect:
Collaboration diagram for SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect:

Public Member Functions

 __init__ (self, scriptedEffect)
 
 clipImage (self, inputImage, maskExtent, margin)
 
 clone (self)
 
 getKernelSizePixel (self)
 
 helpText (self)
 
 icon (self)
 
 modifySelectedSegmentByLabelmap (self, smoothedImage, selectedSegmentLabelmap, modifierLabelmap, maskImage, maskExtent)
 
 onApply (self, maskImage=None, maskExtent=None)
 
 paintApply (self, viewWidget)
 
 setMRMLDefaults (self)
 
 setupOptionsFrame (self)
 
 showStatusMessage (self, msg, timeoutMsec=500)
 
 smoothMultipleSegments (self, maskImage=None, maskExtent=None)
 
 smoothSelectedSegment (self, maskImage=None, maskExtent=None)
 
 updateGUIFromMRML (self)
 
 updateMRMLFromGUI (self)
 
 updateParameterWidgetsVisibility (self)
 
- Public Member Functions inherited from SegmentEditorEffects.AbstractScriptedSegmentEditorPaintEffect.AbstractScriptedSegmentEditorPaintEffect
 __init__ (self, scriptedEffect)
 
- Public Member Functions inherited from SegmentEditorEffects.AbstractScriptedSegmentEditorEffect.AbstractScriptedSegmentEditorEffect
 __init__ (self, scriptedEffect)
 
 cleanup (self)
 
 rasToXy (self, ras, viewWidget)
 
 register (self)
 
 setWidgetMinMaxStepFromImageSpacing (self, spinbox, imageData)
 
 xyToIjk (self, xy, viewWidget, image, parentTransformNode=None)
 
 xyToRas (self, xy, viewWidget)
 
 xyzToIjk (self, xyz, viewWidget, image, parentTransformNode=None)
 
 xyzToRas (self, xyz, viewWidget)
 

Public Attributes

 applyButton = qt.QPushButton(_("Apply"))
 
 applyToAllVisibleSegmentsCheckBox = qt.QCheckBox()
 
 applyToAllVisibleSegmentsLabel
 
 gaussianStandardDeviationMMLabel = self.scriptedEffect.addLabeledOptionsWidget(_("Standard deviation:"), self.gaussianStandardDeviationMMSpinBox)
 
 gaussianStandardDeviationMMSpinBox = slicer.qMRMLSpinBox()
 
 jointTaubinSmoothingFactorLabel = self.scriptedEffect.addLabeledOptionsWidget(_("Smoothing factor:"), self.jointTaubinSmoothingFactorSlider)
 
 jointTaubinSmoothingFactorSlider = ctk.ctkSliderWidget()
 
 kernelSizeMMLabel = self.scriptedEffect.addLabeledOptionsWidget(_("Kernel size:"), kernelSizeFrame)
 
 kernelSizeMMSpinBox = slicer.qMRMLSpinBox()
 
 kernelSizePixel = qt.QLabel()
 
 methodSelectorComboBox = qt.QComboBox()
 
 onApply
 
 paintOptionsGroupBox = ctk.ctkCollapsibleGroupBox()
 
 updateMRMLFromGUI
 
- Public Attributes inherited from SegmentEditorEffects.AbstractScriptedSegmentEditorEffect.AbstractScriptedSegmentEditorEffect
 scriptedEffect = scriptedEffect
 

Detailed Description

SmoothingEffect is an Effect that smoothes a selected segment

Definition at line 14 of file SegmentEditorSmoothingEffect.py.

Constructor & Destructor Documentation

◆ __init__()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.__init__ ( self,
scriptedEffect )

Definition at line 17 of file SegmentEditorSmoothingEffect.py.

Member Function Documentation

◆ clipImage()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.clipImage ( self,
inputImage,
maskExtent,
margin )

Definition at line 241 of file SegmentEditorSmoothingEffect.py.

◆ clone()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.clone ( self)

Definition at line 22 of file SegmentEditorSmoothingEffect.py.

◆ getKernelSizePixel()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.getKernelSizePixel ( self)

Definition at line 140 of file SegmentEditorSmoothingEffect.py.

◆ helpText()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.helpText ( self)

Definition at line 35 of file SegmentEditorSmoothingEffect.py.

◆ icon()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.icon ( self)

Definition at line 29 of file SegmentEditorSmoothingEffect.py.

◆ modifySelectedSegmentByLabelmap()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.modifySelectedSegmentByLabelmap ( self,
smoothedImage,
selectedSegmentLabelmap,
modifierLabelmap,
maskImage,
maskExtent )

Definition at line 254 of file SegmentEditorSmoothingEffect.py.

◆ onApply()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.onApply ( self,
maskImage = None,
maskExtent = None )
maskImage: contains nonzero where smoothing will be applied

Definition at line 200 of file SegmentEditorSmoothingEffect.py.

◆ paintApply()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.paintApply ( self,
viewWidget )

Definition at line 472 of file SegmentEditorSmoothingEffect.py.

◆ setMRMLDefaults()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.setMRMLDefaults ( self)

Definition at line 119 of file SegmentEditorSmoothingEffect.py.

◆ setupOptionsFrame()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.setupOptionsFrame ( self)

Definition at line 47 of file SegmentEditorSmoothingEffect.py.

◆ showStatusMessage()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.showStatusMessage ( self,
msg,
timeoutMsec = 500 )

Definition at line 196 of file SegmentEditorSmoothingEffect.py.

◆ smoothMultipleSegments()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.smoothMultipleSegments ( self,
maskImage = None,
maskExtent = None )

Definition at line 369 of file SegmentEditorSmoothingEffect.py.

◆ smoothSelectedSegment()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.smoothSelectedSegment ( self,
maskImage = None,
maskExtent = None )

Definition at line 282 of file SegmentEditorSmoothingEffect.py.

◆ updateGUIFromMRML()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.updateGUIFromMRML ( self)

Definition at line 151 of file SegmentEditorSmoothingEffect.py.

◆ updateMRMLFromGUI()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.updateMRMLFromGUI ( self)

Definition at line 180 of file SegmentEditorSmoothingEffect.py.

◆ updateParameterWidgetsVisibility()

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.updateParameterWidgetsVisibility ( self)

Definition at line 126 of file SegmentEditorSmoothingEffect.py.

Member Data Documentation

◆ applyButton

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.applyButton = qt.QPushButton(_("Apply"))

Definition at line 98 of file SegmentEditorSmoothingEffect.py.

◆ applyToAllVisibleSegmentsCheckBox

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.applyToAllVisibleSegmentsCheckBox = qt.QCheckBox()

Definition at line 91 of file SegmentEditorSmoothingEffect.py.

◆ applyToAllVisibleSegmentsLabel

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.applyToAllVisibleSegmentsLabel
Initial value:
= self.scriptedEffect.addLabeledOptionsWidget(_("Apply to visible segments:"),
self.applyToAllVisibleSegmentsCheckBox)

Definition at line 95 of file SegmentEditorSmoothingEffect.py.

◆ gaussianStandardDeviationMMLabel

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.gaussianStandardDeviationMMLabel = self.scriptedEffect.addLabeledOptionsWidget(_("Standard deviation:"), self.gaussianStandardDeviationMMSpinBox)

Definition at line 80 of file SegmentEditorSmoothingEffect.py.

◆ gaussianStandardDeviationMMSpinBox

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.gaussianStandardDeviationMMSpinBox = slicer.qMRMLSpinBox()

Definition at line 73 of file SegmentEditorSmoothingEffect.py.

◆ jointTaubinSmoothingFactorLabel

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.jointTaubinSmoothingFactorLabel = self.scriptedEffect.addLabeledOptionsWidget(_("Smoothing factor:"), self.jointTaubinSmoothingFactorSlider)

Definition at line 89 of file SegmentEditorSmoothingEffect.py.

◆ jointTaubinSmoothingFactorSlider

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.jointTaubinSmoothingFactorSlider = ctk.ctkSliderWidget()

Definition at line 82 of file SegmentEditorSmoothingEffect.py.

◆ kernelSizeMMLabel

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.kernelSizeMMLabel = self.scriptedEffect.addLabeledOptionsWidget(_("Kernel size:"), kernelSizeFrame)

Definition at line 71 of file SegmentEditorSmoothingEffect.py.

◆ kernelSizeMMSpinBox

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.kernelSizeMMSpinBox = slicer.qMRMLSpinBox()

Definition at line 56 of file SegmentEditorSmoothingEffect.py.

◆ kernelSizePixel

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.kernelSizePixel = qt.QLabel()

Definition at line 65 of file SegmentEditorSmoothingEffect.py.

◆ methodSelectorComboBox

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.methodSelectorComboBox = qt.QComboBox()

Definition at line 48 of file SegmentEditorSmoothingEffect.py.

◆ onApply

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.onApply

Definition at line 108 of file SegmentEditorSmoothingEffect.py.

◆ paintOptionsGroupBox

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.paintOptionsGroupBox = ctk.ctkCollapsibleGroupBox()

Definition at line 112 of file SegmentEditorSmoothingEffect.py.

◆ updateMRMLFromGUI

SegmentEditorEffects.SegmentEditorSmoothingEffect.SegmentEditorSmoothingEffect.updateMRMLFromGUI

Definition at line 103 of file SegmentEditorSmoothingEffect.py.


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