# Principal moments

**URL:** https://discourse.itk.org/t/principal-moments/3142
**Category:** Algorithms
**Created:** [June 3, 2020, 10:55am UTC](https://discourse.itk.org/t/principal-moments/3142 "2020-06-03T10:55:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sz20b5](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@sz20b5](https://discourse.itk.org/u/sz20b5)
#### Post date: [June 3, 2020, 10:55am UTC](https://discourse.itk.org/t/principal-moments/3142/1 "2020-06-03T10:55:53Z")

</div>

Dear all,

where can I found how is exactly computed GetPrincipalMoments() of a ShapeLabelObject?

Thanks  
Jim

---

<div class="post-metadata">

### Author: ![blowekamp](https://discourse.itk.org/user_avatar/discourse.itk.org/blowekamp/32/79_2.png) [@blowekamp](https://discourse.itk.org/u/blowekamp)
#### Post date: [June 3, 2020, 11:04am UTC](https://discourse.itk.org/t/principal-moments/3142/2 "2020-06-03T11:04:36Z")

</div>

The computation is done in the [ShapeLabelMapFilter](https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/LabelMap/include/itkShapeLabelMapFilter.hxx#L213-L375).
