Median and IQR values please help


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.

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.