# Detailed description of statistics available in SimpleITK LabelShapeStatisticsImageFilter?

**URL:** https://discourse.itk.org/t/detailed-description-of-statistics-available-in-simpleitk-labelshapestatisticsimagefilter/4405
**Category:** Beginner Questions
**Tags:** simpleitk
**Created:** [September 9, 2021, 1:17am UTC](https://discourse.itk.org/t/detailed-description-of-statistics-available-in-simpleitk-labelshapestatisticsimagefilter/4405 "2021-09-09T01:17:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jni](https://discourse.itk.org/user_avatar/discourse.itk.org/jni/32/922_2.png) [@jni](https://discourse.itk.org/u/jni)
#### Post date: [September 9, 2021, 1:17am UTC](https://discourse.itk.org/t/detailed-description-of-statistics-available-in-simpleitk-labelshapestatisticsimagefilter/4405/1 "2021-09-09T01:17:39Z")

</div>

Hi everyone,

Is there any place that lists what each of the available stats in LabelShapeStatisticsImageFilter is actually computing? My searching for what “flatness” is has taken me here:

[https://simpleitk.org/SPIE2019\_COURSE/06\_segmentation\_and\_shape\_analysis.html](https://simpleitk.org/SPIE2019_COURSE/06_segmentation_and_shape_analysis.html)

and here:

[https://itk.org/Doxygen50/html/classitk\_1\_1ShapeLabelObject.html#acdc14b28dd72f7dccb457b9ce34b8c41](https://itk.org/Doxygen50/html/classitk_1_1ShapeLabelObject.html#acdc14b28dd72f7dccb457b9ce34b8c41)

and here:

[https://itk.org/Doxygen50/html/itkShapeLabelObject\_8h\_source.html#l00498](https://itk.org/Doxygen50/html/itkShapeLabelObject_8h_source.html#l00498)

but none of these places actually list what is being computed…

Thank you!

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [September 9, 2021, 12:32pm UTC](https://discourse.itk.org/t/detailed-description-of-statistics-available-in-simpleitk-labelshapestatisticsimagefilter/4405/2 "2021-09-09T12:32:05Z")

</div>

Take a look at the code in [StatisticsLabelMapFilter](https://github.com/InsightSoftwareConsortium/ITK/blob/8fd1fec6b7818f7bae982f51d9bcf12ef7d9fa08/Modules/Filtering/LabelMap/include/itkStatisticsLabelMapFilter.hxx#L281) and [ShapeLabelMapFilter](https://github.com/InsightSoftwareConsortium/ITK/blob/7f5f3360a2b581a88a73a25e8c5a57146a5ec0e9/Modules/Filtering/LabelMap/include/itkShapeLabelMapFilter.hxx#L362).

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [September 9, 2021, 12:39pm UTC](https://discourse.itk.org/t/detailed-description-of-statistics-available-in-simpleitk-labelshapestatisticsimagefilter/4405/3 "2021-09-09T12:39:32Z")

</div>

I agree that the documentation for flatness should be here:

> <https://github.com/InsightSoftwareConsortium/ITK/blob/2125d397b634f9bbaa5e5f36ad47ef0a2551b226/Modules/Filtering/LabelMap/include/itkShapeLabelObject.h#L516-L526>

That could be improved.
