Hello Slicer Community,
I’m currently working with RT structure sets (RTSS), and I’ve encountered an interesting issue when using Plastimatch’s convert
command to extract RT structures as label images. The issue is that Plastimatch outputs label images where certain slices are missing, particularly when there’s an unequal slice spacing. Here’s the warning I received from Plastimatch:
Warning: Slice spacing of RTSS may be unequal
-2.012 - -17.012 = 15 vs. 2.5
This suggests that there’s a 15mm gap between certain slices, where Plastimatch reports the usual 2.5mm spacing between slices. Matlab confirmed this, as shown below:
Z-coordinates and slice spacing (in mm):
From -37.012 mm to -34.512 mm: Spacing = 2.500 mm
From -34.512 mm to -32.012 mm: Spacing = 2.500 mm
From -32.012 mm to -29.512 mm: Spacing = 2.500 mm
...
From -17.012 mm to -2.012 mm: Spacing = 15.000 mm
This gap (15mm) between -17.012 mm
and -2.012 mm
results in missing RT structure data for some slices. However, when I load the same RT structure set in Slicer using SlicerRT, the visualization displays the full RT structure data with no missing slices or gaps, which is quite puzzling.
My Questions:
- How does SlicerRT handle this missing slice data or unequal slice spacing when visualizing RT structure sets?
- Does SlicerRT apply any interpolation to the RT structure data in order to fill the gaps caused by unequal slice spacing?
- If so, what part of the SlicerRT code is responsible for this interpolation or handling of unequal slice spacing? Is there a specific function or algorithm that addresses this issue?
- Is there a specific process in Slicer that allows it to visualize the missing slices properly, even when Plastimatch reports unequal spacing?
- Could you point me to any documentation or relevant code sections in SlicerRT that explain how the system handles or interpolates RT structure sets with unequal slice spacing or missing slices?