JoHof / lungmask

Automated lung segmentation in CT
Apache License 2.0
646 stars 149 forks source link

Segmentation names #98

Closed Renal-Of-Loon closed 8 months ago

Renal-Of-Loon commented 8 months ago

Hello there,

I'm fairly certain this must be available somewhere, but I can't seem to find a way to identify the name of each masks after using the example

inferer = LMInferer(modelname="LTRCLobes")
result = inferer.apply(input_image)

result seems to be the ndarray, and I'm not sure how to obtain what ROI name is associated for each mask value. Is this hardcoded somewhere, or available within the inferer class?

JoHof commented 8 months ago

Hi, you are right this is missing. I added the information to the readme with PR #99