# LungCTAnalyzer and fibrosis quantification

**URL:** <https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109>\
**Category:** Support\
**Tags:** lungctanalyzer\
**Created:** [June 29, 2022, 8:51pm UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109 "2022-06-29T20:51:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashipde](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ashipde/32/15695_2.png) [@ashipde](https://discourse.slicer.org/u/ashipde)\
**Post date:** [June 29, 2022, 8:51pm UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/1 "2022-06-29T20:51:36Z")

</div>

May be I am wrong but it seems LungCTAnalyzer cannot be used to quantify lung fibrosis. Perhaps this feature will be added to the extension in the future. Fibrosis quantification will be very useful for many. I have read about some software for this purpose but either they are old or unavailable or not deployable on todays computers, like LUFIT and YACTA, or commercial and pricey, like IMBIO.

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [June 29, 2022, 9:34pm UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/2 "2022-06-29T21:34:35Z")

</div>

What do you want to see, which patterns are of special interest for you , what would you want to quantify in ml. Please make an anonymized dataset available so we could have a look at it in Slicer. You could also post some screenshots here where you think LCTA fails.

---

<div class="post-metadata">

**Author:** ![ashipde](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ashipde/32/15695_2.png) [@ashipde](https://discourse.slicer.org/u/ashipde)\
**Post date:** [June 30, 2022, 8:01pm UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/3 "2022-06-30T20:01:30Z")

</div>

@rbumm

> [@rbumm](#):
>
> What do you want to see…

Dr. Bumm, thanks for responding. I am a novice and actually don’t know myself but was wondering if some expert had assessed LungCTAnalyzer for the purpose of quantifying fibrosis in ILD, IPF, etc. by measuring GGO, honeycombing, reticular density, etc. (CT pattern or texture analysis). E.g., is ‘infiltration’ identified by LungCTAnalyzer a good measure of GGO?

Below, I have copied some [text](https://link.springer.com/article/10.1007/s00408-017-0035-0) about the method used by the CALIPER CT pattern analysis software that purports to quantify fibrosis.

> Following anatomic segmentation, the parenchymal detection and classification is performed by using a similarity metric to match parenchymal histogram features within 15x15x15 pixel volumes of interest to validated histogram signatures of characteristic voxels and morphological assessment of classified voxels in order to label each pixel in the dataset with the radiographic characteristics. These labels specify a pixel as belonging to normal lung parenchyma or to features of ILD such as ground glass opacity, reticular densities, honeycombing, or low attenuation areas (with sub-classes of mild, moderate and severe). The technique involves a sliding window supervised classification scheme described by Maldonado et al. [[7](https://link.springer.com/article/10.1007/s00408-017-0035-0#ref-CR7)] The total volume, measured in liters, and the percentage of normal parenchyma, low attenuation areas (mild, moderate, and severe sub-classes), and interstitial abnormalities (GGO, RD, and HC) were automatically generated by the CALIPER software. The total volume was comprised of low attenuation areas (mild, moderate, severe), ground glass opacities, honeycombing, reticular densities, normal areas, and vessel volumes. Total interstitial abnormalities were defined as the summation of GGO, RD, and HC. The remainder of the lung volume (vessel volume, normal and low attenuation areas) was summed as non-involved lung areas.

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [June 30, 2022, 8:43pm UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/4 "2022-06-30T20:43:46Z")

</div>

I have no experience with CALIPER, nor have I analyzed ILD patients yet.  
Pattern recognition is something you can not do with Lung CT Segmenter, which was made to determine thresholded areas of special lung density. i.e. pre-setting a threshold value of Hounsfield Units and obtaining a segmentation of both lungs and a quantitative evaluation of emphysema, healthy residual lung parenchyma, GGO, and consolidation ([like in this paper](https://link.springer.com/article/10.1007/s11547-020-01293-w))

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [July 13, 2022, 6:50pm UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/5 "2022-07-13T18:50:29Z")

</div>

Here is a Lung CT Analyzer result in a patient with lung fibrosis and a good visual correlation of the fibrotic lung changes and their detected volumes. I do not see why you could not use LCTA this way in IPF - if you need more threshold ranges please let us know.

[https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/6/661d6d022cd0280379c54116f94d6034cce2a762.mp4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/6/661d6d022cd0280379c54116f94d6034cce2a762.mp4)

---

<div class="post-metadata">

**Author:** ![mariopal8](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mariopal8/32/16863_2.png) [@mariopal8](https://discourse.slicer.org/u/mariopal8)\
**Post date:** [October 7, 2022, 9:05am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/6 "2022-10-07T09:05:15Z")

</div>

Hi, i´m using “Lung CT Analyzer” on mices with fibrosis. First, i do a manual segmentation; treshold+paint+grow form seed+smoothing, and once i got the segmented lungs, when i try to run the CT Analyzer, at 85% of running it, appears the following error: Failed to compute results: expects 0 \<= id && id \< GetNumberOfValues().  
What could i do?

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [October 7, 2022, 9:34am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/7 "2022-10-07T09:34:54Z")

</div>

Hi, which version of 3D Slicer and Lung CT Analyzer do you use?  
Could you post a screenshot of your 3D Slicer screen before you press the “Compute results” button?

---

<div class="post-metadata">

**Author:** ![mariopal8](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mariopal8/32/16863_2.png) [@mariopal8](https://discourse.slicer.org/u/mariopal8)\
**Post date:** [October 7, 2022, 9:39am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/8 "2022-10-07T09:39:23Z")

</div>

Hi, i´m using 3D Slicer 5.1.0-2022-10-03 and Lung CT Analyzer 20da0bc.

 ![Captura de pantalla 2022-10-07 113842](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/e/3e8deb3acbac3f92b5e68c5c72e9493fdcfe918a.png)

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [October 7, 2022, 10:05am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/9 "2022-10-07T10:05:19Z")

</div>

Would it be possible to provide a link to one of your datasets (preferably a mrb bundle)? Would be helpful to provide a fast solution or to identify a bug.  
Only if the mouse agrees and we do not get into anonymization problems here 🙂

---

<div class="post-metadata">

**Author:** ![mariopal8](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mariopal8/32/16863_2.png) [@mariopal8](https://discourse.slicer.org/u/mariopal8)\
**Post date:** [October 7, 2022, 10:42am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/11 "2022-10-07T10:42:27Z")

</div>

jajaj yes, there you got the nrrd  
[![](https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png)05oct2022\_MMR617.nrrd](https://drive.google.com/file/d/13GslsiCGR_4FmTRt3aw5eWqZRkwjdwQa/view?usp=drive_web) ![](https://ssl.gstatic.com/ui/v1/icons/common/x_8px.png)

---

<div class="post-metadata">

**Author:** ![mariopal8](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mariopal8/32/16863_2.png) [@mariopal8](https://discourse.slicer.org/u/mariopal8)\
**Post date:** [October 7, 2022, 10:44am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/12 "2022-10-07T10:44:35Z")

</div>

also, i’m sending you the dicom  
[![](https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png)2022-10-05\_12-56-03.zip](https://drive.google.com/file/d/1AE_NCZERI9fj7vHiYZ4ikxT9l9wc3CRx/view?usp=drive_web) ![](https://ssl.gstatic.com/ui/v1/icons/common/x_8px.png)

---

<div class="post-metadata">

**Author:** ![mariopal8](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mariopal8/32/16863_2.png) [@mariopal8](https://discourse.slicer.org/u/mariopal8)\
**Post date:** [October 7, 2022, 11:09am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/14 "2022-10-07T11:09:46Z")

</div>

i’ve already created a folder

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [October 7, 2022, 1:49pm UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/15 "2022-10-07T13:49:16Z")

</div>

The problems arise because Lung CT Analyzer has been developed for human CT data and the mouse data has different dimensions and thresholds. I removed some bugs in LCTA and got this running, but we will see how meaningful the analysis will turn out. Please expect an update on the extension within the next few days (to version 2.56) which will no longer have the error messages.

Mouse test:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/d/8d78bd15d3b33aeeb9fb237fe4a4a4d95fcda019.png)

---

<div class="post-metadata">

**Author:** ![mariopal8](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mariopal8/32/16863_2.png) [@mariopal8](https://discourse.slicer.org/u/mariopal8)\
**Post date:** [October 10, 2022, 7:44am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/16 "2022-10-10T07:44:29Z")

</div>

wow, thank you, that’s amazing, so grateful 🙂  
I’ll be checking for the update.

---

<div class="post-metadata">

**Author:** ![mariopal8](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mariopal8/32/16863_2.png) [@mariopal8](https://discourse.slicer.org/u/mariopal8)\
**Post date:** [October 17, 2022, 10:53am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/17 "2022-10-17T10:53:55Z")

</div>

Hi,  
sorry to disturb you again, but I was wondering how you do the segmentation, so I can see the threshold values you used and that stuff.  
Thank you,

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [October 17, 2022, 11:50am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/18 "2022-10-17T11:50:22Z")

</div>

Press “Hide mask segments in 2D” and “Show preview in 2D” and move the sliders.

Here are some settings which should work for your mouse.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/6/46cdcceaca94d1cddd4848e952c0be84efa51ba5.jpeg)

If ok press “Compute results”.

---

<div class="post-metadata">

**Author:** ![mariopal8](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mariopal8/32/16863_2.png) [@mariopal8](https://discourse.slicer.org/u/mariopal8)\
**Post date:** [October 19, 2022, 10:47am UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/19 "2022-10-19T10:47:51Z")

</div>

that’s useful, but I wanted to know how you do to get the lung segmentation from the image, if you use tresholds and grow from seeds, a segmentation extension…

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [October 19, 2022, 12:43pm UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/20 "2022-10-19T12:43:04Z")

</div>

In the image above I used the dataset you sent to me, it included your lung segmentations.

You could also use the Lung CT Segmenter to easily generate the lung segments.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/9/d90886511cbe796ca26bc57f798af52fe2197f2b.png)

To prevent preview blurring, you just need to set the “Image Spacing” of your microCT in “Volumes” to 1 mm.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/5/c546a0798d8eae02ea76e17620bcf05ff41d1d2f.png)

---

<div class="post-metadata">

**Author:** ![mariopal8](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mariopal8/32/16863_2.png) [@mariopal8](https://discourse.slicer.org/u/mariopal8)\
**Post date:** [November 10, 2022, 12:13pm UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/21 "2022-11-10T12:13:04Z")

</div>

Hi,  
using the Lung CT Segmenter on mices with tumors, I get the following results in ‘Data’, but when I try to see the tumor, nothing appears, what could i do?

 ![imagen](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/0/603aec830182fae581eeecdfdbe6589980b0f8c8.jpeg)

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [November 10, 2022, 1:12pm UTC](https://discourse.slicer.org/t/lungctanalyzer-and-fibrosis-quantification/24109/22 "2022-11-10T13:12:44Z")

</div>

Hi,

The segments “PA”, “PV” and “tumor” are empty by default and only provided for the convenience of users who need to segment these structures manually.

“vesselmask” gets segmented as soon as you select

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/6/e625a1ff66c4ffb1ce6790e8f943a811526ac7fa.png)

It is in the plan to populate all of those segments (especially tumor) with AI or 3D Slicer segmentation techniques.
