Segmentation Output Size Scale

Hi there!

New 3D Slicer user.

Just wondering if anyone knows if I am going wrong anywhere, I have hundreds of CT scan images, similar to the one below. I have been able to generate a segmentation/reconstructed CAD geometry (STL File) from these images.

However, when I look at the size of the STL model, it is not comparable to the sample that I have CT images for, in terms of size. So I am wondering if it is at all possible to use the known the image separation distance (~6 um) to then generate an STL file with the correct dimensions? Or rather use the image separation distance and image size (x by y number of pixels)?

Any suggestions would be greatly appreciated,
Ed

image

I suspect your issue is similar to this thread Ruler in (orthographic) 3D view - #23 by muratmaga

Probaby the imported image has incorrect physical scale, hence all downstream objects carried this over.
Can you check what the image spacing is reported for your volumes and that they are correct?

Hi Muratmaga,

The link link you supplied was extremely useful!

For anyone with the same issue, the following, is the process required to use generate a 3D CAD/STL file segmentation that can be exported using a 2D image stack (multiple CT scan images), with a known pixel spacing.

  1. Download 3D Slicer and have it installed.

  2. At the top of 3D Slicer, use View β€”> Extension Manager and search (in the top right) for SliceMorph.

  3. Download and install and accept all of the required toolboxes (initially 5 and an extra 1 will popup).

  4. Modules: SlicerMorph (bottom of dropdown) β€”> Input and Output β€”> ImageStacks. Or search for imagestacks using the magnifying glass.

  5. Using the Input Files β€” > Filename pattern: Select the first image in the sequence.

  6. In the spacing: update this to the correct Image Pixel Size, in my case this was ~6um but I input this as 0.006 mm.

  7. For a high quality CAD model, ensure that full model is selected in the Quality section.

  8. Click Load Files.

  9. Modules: Segmentation Editor β€”> Add.

  10. Threshold (select appropriate). REMEMBER TO CLICK APPLY.

  11. In my case, I used the Island tab to remove small islands. Again remember to click apply.

  12. Modules: Segmentations.

  13. Representations β€”> Click Create next to Closed Surface.

  14. Expand the Export to files.

  15. Select the export destination folder.

  16. Click Export… and Enjoy!

Kind regards,
Ed

2 Likes

Just as a final edit, at step 6. the Image Pixel Size should be input into all 3 of the Spacing: boxes. As seen in the attached image.

Kind regards,
Ed

P.S. This is done as the pixel is based on a voxel and is the same in all 3 dimensions.

image