Median and IQR values please help

Hello

I am segmenting the lungs and I am looking for median and IQR in the results

the software provides mean and SD for the values of segmented lungs

Can you help me please?

Thank you

You can get a the median of any scalar volume within a segmented region using the Segment Statistics module.

https://slicer.readthedocs.io/en/latest/user_guide/modules/segmentstatistics.html

Standard deviation is provided but not IQR, which you could calculate yourself by accessing the volume and mask as numpy arrays and using scipy to compute.

scipy.stats.iqr — SciPy v1.8.0 Manual.

It’s also possible to make an IQR plugin to Segment Statistics if you end up using it a lot.

https://slicer.readthedocs.io/en/latest/user_guide/modules/segmentstatistics.html#information-for-developers