Slicer study notes (fifty-five) information and use of slicer segmentation segmentationNode

Slicer study notes (fifty-five) information and use of slicer segmentation segmentationNode

segmentationNode = slicer.util.getFirstNodeByClassByName("vtkMRMLSegmentationNode", self.seg_name[0])
    print(segmentationNode)

As you can see from the following information, the saved information includes: origin, spacing, range, direction matrix, number of members, polydata information,

vtkMRMLSegmentationNode (000001C50D2F0D70)
  ID: vtkMRMLSegmentationNode1
  ClassName: vtkMRMLSegmentationNode
  Name: hip_right_seg
  Debug: false
  MTime: 501520
  Description: (none)
  SingletonTag: (none)
  HideFromEditors: false
  Selectable: true
  Selected: false
  UndoEnabled: false
  Node references:
    display [displayNodeRef]: vtkMRMLSegmentationDisplayNode1
    labelmapConversionColorTableNode [labelmapConversionColorTableNodeRef]: (none)
    storage [storageNodeRef]: (none)
    transform [transformNodeRef]: (none)
  Debug: Off
  Modified Time: 500391
  Reference Count: 1
  Registered Events: (none)
  Name = (none)
  RestoreSelectionState = 0
  TransformNodeID: (none)
  DisplayNodeIDs[0]: vtkMRMLSegmentationDisplayNode1
  Segmentation:    Debug: Off
    Modified Time: 502155
    MasterRepresentationName:  Binary labelmap
    Number of segments:  1
    Segment: hip_right_seg
      Debug: Off
      Modified Time: 586150
      Name: hip_right_seg
      Color: (0.501961, 0.682353, 0.501961)
      NameAutoGenerated: true
      ColorAutoGenerated: true
      Representations:
        Binary labelmap vtkOrientedImageData
        Origin: 159.5 45.5 -324
        Spacing: 1.11806 1.06944 1.06696
        Extent: 16 143 19 132 33 223
        Scalar type: int
        Number of components: 1
        IJKToRASDirections:
          -1 0 0 
          0 -1 0 
          0 0 1 
        Closed surface vtkPolyData
          Number of points: 75540
          Number of cells: 151076
      Tags:
          TerminologyEntry: Segmentation category and type - 3D Slicer General Anatomy list~SCT^85756007^Tissue~SCT^85756007^Tissue~^^~Anatomic codes - DICOM master list~^^~^^
    Segment converter:
      Debug: Off
      Modified Time: 500403
      Reference Count: 1
      Registered Events: (none)
      Rule:   Binary labelmap -> Closed surface
        Parameter:   Compute surface normals = 1 (Compute surface normals. 1 (default) = surface normals are computed. 0 = surface normals are not computed (slightly faster but produces less smooth surface display).)
        Parameter:   Decimation factor = 0.0 (Desired reduction in the total number of polygons. Range: 0.0 (no decimation) to 1.0 (as much simplification as possible). Value of 0.8 typically reduces data set size by 80% without losing too much details.)
        Parameter:   Joint smoothing = 0 (Perform joint smoothing.)
        Parameter:   Smoothing factor = 0.5 (Smoothing factor. Range: 0.0 (no smoothing) to 1.0 (strong smoothing).)
      Rule:   Closed surface -> Binary labelmap
        Parameter:   Collapse labelmaps = 1 (Merge the labelmaps into as few shared labelmaps as possible 1 = created labelmaps will be shared if possible without overwriting each other.)
        Parameter:   Crop to reference image geometry = 0 (Crop the model to the extent of reference geometry. 0 (default) = created labelmap will contain the entire model. 1 = created labelmap extent will be within reference image extent.)
        Parameter:   Oversampling factor = 1 (Determines the oversampling of the reference image geometry. If it's a number, then all segments are oversampled with the same value (value of 1 means no oversampling). If it has the value "A", then automatic oversampling is calculated.)
        Parameter:   Reference image geometry =  (Image geometry description string determining the geometry of the labelmap that is created in course of conversion. Can be copied from a volume, using the button.)
      Rule:   Closed surface -> Fractional labelmap
        Parameter:   Collapse labelmaps = 1 (Merge the labelmaps into as few shared labelmaps as possible 1 = created labelmaps will be shared if possible without overwriting each other.)
        Parameter:   Crop to reference image geometry = 0 (Crop the model to the extent of reference geometry. 0 (default) = created labelmap will contain the entire model. 1 = created labelmap extent will be within reference image extent.)
        Parameter:   Oversampling factor = 1 (Determines the oversampling of the reference image geometry. If it's a number, then all segments are oversampled with the same value (value of 1 means no oversampling). If it has the value "A", then automatic oversampling is calculated.)
        Parameter:   Reference image geometry =  (Image geometry description string determining the geometry of the labelmap that is created in course of conversion. Can be copied from a volume, using the button.)
      Rule:   Fractional labelmap -> Closed surface
        Parameter:   Compute surface normals = 1 (Compute surface normals. 1 (default) = surface normals are computed. 0 = surface normals are not computed (slightly faster but produces less smooth surface display).)
        Parameter:   Decimation factor = 0.0 (Desired reduction in the total number of polygons. Range: 0.0 (no decimation) to 1.0 (as much simplification as possible). Value of 0.8 typically reduces data set size by 80% without losing too much details.)
        Parameter:   Fractional labelmap oversampling factor = 1 (Determines the oversampling of the reference image geometry. All segments are oversampled with the same value (value of 1 means no oversampling).)
        Parameter:   Joint smoothing = 0 (Perform joint smoothing.)
        Parameter:   Smoothing factor = 0.5 (Smoothing factor. Range: 0.0 (no smoothing) to 1.0 (strong smoothing).)
        Parameter:   Threshold fraction = 0.5 (Determines the threshold that the closed surface is created at as a fractional value between 0 and 1.)
      Rule:   Ribbon model -> Binary labelmap
        Parameter:   Collapse labelmaps = 1 (Merge the labelmaps into as few shared labelmaps as possible 1 = created labelmaps will be shared if possible without overwriting each other.)
        Parameter:   Crop to reference image geometry = 0 (Crop the model to the extent of reference geometry. 0 (default) = created labelmap will contain the entire model. 1 = created labelmap extent will be within reference image extent.)
        Parameter:   Oversampling factor = 1 (Determines the oversampling of the reference image geometry. If it's a number, then all segments are oversampled with the same value (value of 1 means no oversampling). If it has the value "A", then automatic oversampling is calculated.)
        Parameter:   Reference image geometry =  (Image geometry description string determining the geometry of the labelmap that is created in course of conversion. Can be copied from a volume, using the button.)
      Rule:   Planar contour -> Ribbon model
      Rule:   Planar contour -> Closed surface
        Parameter:   Default slice thickness = 0.0 (Default thickness for contours if slice spacing cannot be calculated.)
        Parameter:   End capping = 1 (Create end cap to close surface inside contours on the top and bottom of the structure.
0 = leave contours open on surface exterior.
1 (default) = close surface by generating smooth end caps.
2 = close surface by generating straight end caps.)
  SegmentListFilterEnabled: false
  SegmentListFilterOptions: 

Guess you like

Origin blog.csdn.net/juluwangriyue/article/details/123803897