Skip to content

Commit

Permalink
Update segmentation node name
Browse files Browse the repository at this point in the history
  • Loading branch information
smrolfe authored Apr 23, 2020
1 parent 9988f6f commit 1f08a1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion INHSTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@ def takeScreenshot(self,name,description,type=-1):

def initializeSegmentation(self, masterVolumeNode):
# Create segmentation
segmentationNode = slicer.mrmlScene.AddNewNodeByClass('vtkMRMLSegmentationNode', "fishnumber-segmentation")
segmentationName = masterVolumeNode.GetName()
segmentationNode = slicer.mrmlScene.AddNewNodeByClass('vtkMRMLSegmentationNode', segmentationName +'_segmentation')
segmentationNode.CreateDefaultDisplayNodes() # only needed for display
segmentationNode.SetReferenceImageGeometryParameterFromVolumeNode(masterVolumeNode)
segmentation = segmentationNode.GetSegmentation()
Expand Down

0 comments on commit 1f08a1e

Please sign in to comment.