I’m tasked with creating a model of the airways, down to the smallest possible viewing distance. The initial study is an HRCT of the lungs. I used the “Lung CT Segmenter” tool with the “Airway segmentation,” “Use AI,” and “High detail” options. As a result, I achieved very good segmentation of the airways, but with the lungs included. I’ve attached a preview of the model with transparency enabled. How can I “remove the lungs” from this model while retaining the airways? Is there a way to do this in Slicer, or do I need to find another tool? Any ideas on how to do this?
In this 3D rendering it looks like that you have a lung segment and an airways segment, both yellow. You can delete the lung segment if you don’t need it.
If you only have one segment then this rendering is very misleading. Attach a few screenshot of the slice views. If you have multiple segments then make sure each has a distinct color.
Unfortunately, this is just one segment, so there’s nothing to subtract
I’ll anonymize the data and share the entire project; maybe you’ll figure out how to do it correctly.
I can use other tools to create the airways, but I can’t get any further than the lobar bronchi. The Lung Segmenter can go deeper, but it connects the lungs to the airways.
You can’t really remove the lungs, because they are part of the segmentation. (you can try to further threshold the lowest range, but i suspect you will also loose details).
If you want to make the internal branches more prominent without altering the segmentation so that they are not occluded by lungs, then I think you want to explore Colorize Volume module in the Sandbox extension, which gives you more control over visualizations than surface based rendering in the segment editor.
Does this look more similar to what you want to do? I also probably use a slightly darker color than this light blue. You will probably have bit more contrast that way.
@lassoan I also encountered this error in the Colorize Volume. So we are limited to 16 segments max?
Links failed: ERROR: Implementation limit of 16 active fragment shader samplers (e.g., maximum number of supported image units) exceeded, fragment shader uses 18 samplers
Thanks for the tip, but I’m not interested in the visualization you can get with the colorization module. I can do that, and I’m familiar with this solution (very useful, by the way). The problem is that my surgeons are very insistent on creating a model with as many airway branches as possible, even down to the level of the segmental bronchi. While segmenting and modeling down to the level of the lobar bronchi is easy, I still can’t segment. Only in the Lung CT module… do I see further branches, but they’re connected to the lungs. And that’s a problem that needs to be solved.
Excuse my English, I work with a translator and sometimes write nonsense
I’ll look at the image data you shared, but before that I have a basic question: why the small airways are that inportant? The lung surgeons that I talked to were much more interested in the vasculature, especially the veins, as they designate the boundaries of segments. Bronchi and arteries are near the center of each segment, so if you want to plan and guide sublobar resections then they are not all that informative.
First, the surgeon’s attempt to go very deep into the airways resulted from overzealousness. He wanted to see the segmental bronchi with their blood vessels, he told me. After a long discussion, noting that this might be very difficult to achieve based on the available studies, we agreed that segmentation of the airways and circulatory system down to the level of the lobar bronchi (the so-called lung hilum) would be sufficient. When asked why he needed such a model, he replied that he wanted to view it in VR in various positions to help plan the patient’s positioning for thoracoscopy and lung surgery. In further discussion, we agreed that the range to the second division of the airways (the lobar bronchi) would be sufficient. Obtaining this range of segmentation is no longer a major problem; several AI-based tools can do it, and as a last resort, I use “nnintereactive” for manual segmentation. It seems this problem has been solved; performing segmentation in this range won’t be difficult.
In the example I added to the thread, it seemed to me that lobar and segmented bronchi were visible in the lung area. I created a full lung model and, through simple Boolean operations, obtained what I thought were bronchi. Then, using nninteractive, I segmented the trachea and measured the bronchi. And here’s the surprise! It turned out that the manually segmented bronchi didn’t match what the Lung segmenter had identified as the respiratory tract. I think this is the circulatory system, not the bronchi. This is difficult to assess objectively because HRCT of the lungs is non-contrast.
An additional problem in our case is that we work with children, and most AI tools designed for larger patients “go haywire” when working with children, especially small newborns. In such cases, the only work required is manual labor.