I’m segmenting a CT scan using level tracing with Slicer 4.11.0-2020-02-11.
When the yellow “level tracing line,” which indicates what pixels will be included once the level tracing is applied, extends to the boundary of the segmentation (which is not the boundary of the scan, due to Slicer cropping the segmentation to its minimum bounding box), something strange seems to happen.
In the attached screenshot, I am trying to segment the lung (or, rather, fine-tune the lung contours) using level tracing. The level tracing line has reached the segmentation boundary, and the line suddenly extends up and down along the segmentation boundary and traces the exterior of the thorax. I end up with the thorax segmented (or, as much of it that fits within the segmentation volume).
The desired outcome would be to have the dark area of the lung level traced, extending all the way to the segmentation boundary.
Anyway, in this case I can get past this relatively easily, but wanted to flag as a potential bug. I’ve included a screenshot of the application before and after applying the level tracing (my mouse pointer is not showing up on the “before” screenshot, but it’s not positioned at the boundary of the segmentation but closer to the center of the image).
Probably your segmentation extents are smaller than the currently selected master volume extents. You can adjust your segmentation by clicking the “specify geometry” button next to the master volume selector (see screenshots here).
Yes, that is indeed the case. But I was wondering, should this be the expected behavior? I would assume that the level tracing should just extend to the boundary of the segmentation, but not break down completely as happens in this example.
For me, the previewed and the final filling looks the same. If you can reproduce a different behavior with publicly shareable data then save the scene as .mrb file, upload it somewhere and post the link here.
In general, I would not recommend to use slice-based segmentation tools because segmentation takes too long. What would you like to segment, on what imaging modalities, for what purpose? Have you tried using “Grow from seeds” effect?
Yes, the preview and the final filling look the same, but I’m not trying to segment out the boundary of the thorax, I’m trying to segment out the lung. And that works fine when the level tracing line doesn’t extend to the boundary of the segmentation volume. However, when it extends to the boundary, the level tracing fails and produces something completely different to what I wanted.
To better illustrate this, we can look at the level tracing result on a superior slice, where the lung does not extend to the boundary of the segmentation volume. In this case, the yellow level tracing line only outlines the lung (in any case, the darker parts of the lung):
On a more inferior slice, the lung extends to the boundary of the segmentation, and that’s where this behavior is observed, in which the level tracing breaks down and the yellow line jumps to the boundary of the segmentation volume:
I’m just bringing this up to see if this is the expected behavior. Shouldn’t the yellow line just follow the level that one is trying to trace to the boundary of the segmentation volume? What I’m observing is that it fails completely in cases where the level tracing extends to the boundary of the segmentation volume.
Thanks for the suggestion, but the seed-growing will not work for these cases, as the lungs contain diffuse fibrosis. I am developing a deep learning model, and this is just the part where I am manually correcting segmentations to be used as ground-truth.