Hi
I have a segmented CT volume that I am happy with. The segmentation contains 12 labels. I converted the segmentation to a label map - with 12 labels.
Then in model maker attempted to generate surface models for each of my regions. It seemed to process but only returned 1 out of the 12 models.
The stdout reported that labels 1-11 were skipped. The skip unnamed labels check box was cleared - so I expected it to make a model for each label.
Made models from labels: 12
Skipped making models from labels: 1 2 3 4 5 6 7 8 9 10 11
The behaviour was the same with generate all model or starting and end numbers (1, 12).
I am using Slicer 4.11.202110226
Running on RH7.9
The standard output follows.
Thank you for any comment.
Andrew
Model Maker standard output:
The input volume is: /tmp/Slicer-andrews/DAIJF_vtkMRMLLabelMapVolumeNodeB.nrrd
The labels are:
The starting label is: 1
The ending label is: 12
The model name is: Model
Do joint smoothing flag is: 0
Generate all flag is: 1
Number of smoothing iterations: 10
Number of decimate iterations: 0.25
Split normals? 1
Calculate point normals? 1
Pad? 1
Filter type: Sinc
Input color hierarchy scene file: None
Output model scene file: /tmp/Slicer-andrews/DAIJF_AxHfcGGEAIFDIA.mrml#vtkMRMLModelHierarchyNode1
Color table file : /tmp/Slicer-andrews/DAIJF_vtkMRMLColorTableNodeB.ctbl
Save intermediate models: 1
Debug: 1
Starting…
Models file: /tmp/Slicer-andrews/DAIJF_AxHfcGGEAIFDIA.mrml
Model Hierarchy ID: vtkMRMLModelHierarchyNode1
Imported model scene file /tmp/Slicer-andrews/DAIJF_AxHfcGGEAIFDIA.mrml
Got model hierarchy node vtkMRMLModelHierarchyNode1
GenerateAll! set make mult to true
useStartEnd = 0, numModelsToGenerate = 1, numFilterSteps 16
Adding 1 pixel padding around the image, shifting origin.
Colour table file name = /tmp/Slicer-andrews/DAIJF_vtkMRMLColorTableNodeB.ctbl
Setting the colour node’s storage node id to vtkMRMLColorTableStorageNode1, it’s file name = /tmp/Slicer-andrews/DAIJF_vtkMRMLColorTableNodeB.ctbl
Read colour file /tmp/Slicer-andrews/DAIJF_vtkMRMLColorTableNodeB.ctbl
Using color node to get max label
Setting histogram extentMax = 12
Skipping 0
Hist: Min = 1 and max = 12 (image scalar type = 4, max = 32767)
GenerateAll flag is true, resetting the start and end labels from: 1 and 12 to 1 and 12
GenerateAll: there are 1 models to be generated.
Reset numFilterSteps to 16
Marching cubes: Using end label = 12, start label = 1
Image data extents: 0 511 0 511 0 1567
Label 12 has 9.16065e+07 voxels.
Got color name, set label name = Model_12_Skin (color name w/o spaces = Skin)
Number of polygons = 4981096
Writing intermediate file /tmp/Slicer-andrews/Model_12_Skin-MarchingCubes.vtk
After decimation, number of polygons = 3735822
Writing intermediate file /tmp/Slicer-andrews/Model_12_Skin-Decimated.vtk
Writing intermediate file /tmp/Slicer-andrews/Model_12_Skin-Smoothed.vtk
Writing model Model_12_Skin to file /tmp/Slicer-andrews/Model_12_Skin.vtk
Adding model Model_12_Skin to the output scene, with filename /tmp/Slicer-andrews/Model_12_Skin.vtk
Got colour: 0.678431 0.654902 0.623529 1
Added display node: id = vtkMRMLModelDisplayNode2
Setting model’s storage node: id = vtkMRMLModelStorageNode1
…done adding model to output scene
End of looping over labels
Made models from labels: 12
Skipped making models from labels: 1 2 3 4 5 6 7 8 9 10 11
Writing to model scene output file: /tmp/Slicer-andrews/DAIJF_AxHfcGGEAIFDIA.mrml, to url: /tmp/Slicer-andrews/DAIJF_AxHfcGGEAIFDIA.mrml
Models saved to scene file /tmp/Slicer-andrews/DAIJF_AxHfcGGEAIFDIA.mrml
Cleaning up
Deleting cubes
Deleting hist
Deleting smootherSinc
Deleting decimator
Deleting mcubes
Deleting image threshold
… done deleting image threshold
Deleting image to structured points
Deleting transform ijk to lps
Deleting transformer
Deleting normals
Deleting stripper
Deleting ici, no set input null
Deleting reader
Deleting model scene