rbumm / SlicerLungCTAnalyzer

This is a 3D Slicer extension for segmentation and spatial reconstruction of infiltrated, collapsed, and emphysematous areas in lung CT.
Apache License 2.0
71 stars 23 forks source link

Create compatibility between LungCTSegmenter and CIP #27

Closed rbumm closed 3 years ago

rbumm commented 3 years ago

I implemented the code in LungCTSegmenter  mentioned here

https://discourse.slicer.org/t/exporting-csv-with-parenchyma-analysis-module/10697/17?u=rbumm

but this

image

was produced leaving the labelmap input to "None". 

If I do a LungCTSegmenter run with the latest code and do this

I get this Lung segmentation-label. 

the CIP-color tabe seems to have been generated:

image

Feeding this to CIP and "Parenchyma Analysis" 

still results in

lassoan commented 3 years ago

Have you chosen the generated color table for exporting the segmentation to labelmap (the color table specifies the label values for each segment)?

Do the label values for left lung, right lung, ... in the labelmap volume exported from segmentation match the label values for the same structures created by Parenchyma analysis?

rbumm commented 3 years ago

I am sorry, this got out of my focus for a while ... Yes, I have chosen the color table for exporting the segmentation to the labelmap. It seems to correctly translate the labels into WholeLung, RightLung and LeftLung with correct colors However, the LeftLung histogram stays flat although the left lung mask is ok

image

rbumm commented 3 years ago

Have you chosen the generated color table for exporting the segmentation to labelmap (the color table specifies the label values for each segment)?

see above

Do the label values for left lung, right lung, ... in the labelmap volume exported from segmentation match the label values for the same structures created by Parenchyma analysis?

label values = markup text ("WholeLung","RightLung","LeftLung")? Yes they do

rbumm commented 3 years ago

V 2.44 now creates compatibility by letting the LungCTSegmenter writing out a label map with CIP conventions.