# SymmetricEigenAnalysisFixedDimension in Python

**URL:** <https://discourse.itk.org/t/symmetriceigenanalysisfixeddimension-in-python/1652>\
**Category:** Beginner Questions\
**Created:** [March 11, 2019, 4:59pm UTC](https://discourse.itk.org/t/symmetriceigenanalysisfixeddimension-in-python/1652 "2019-03-11T16:59:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vero](https://discourse.itk.org/letter_avatar_proxy/v4/letter/v/e19b73/32.png) [@vero](https://discourse.itk.org/u/vero)\
**Post date:** [March 11, 2019, 4:59pm UTC](https://discourse.itk.org/t/symmetriceigenanalysisfixeddimension-in-python/1652/1 "2019-03-11T16:59:12Z")

</div>

Hey,

I’m trying to use SymmetricEigenAnalysisFixedDimension or SymmetricEigenAnalysisFixedDimensionImageFilter in Python by initializing the image filter like in other ITK python example:  
eig = itk.SymmetricEigenAnalysisFixedDimension.New()

## But I just get this error message:

AttributeError Traceback (most recent call last)  
 in   
----\> 1 eig = itk.SymmetricEigenAnalysisFixedDimension.New()

~/anaconda3/envs/project\_b/lib/python3.6/site-packages/itkLazy.py in **getattribute** (self, attr)  
38  
39 def **getattribute** (self, attr):  
—\> 40 value = types.ModuleType. **getattribute** (self, attr)  
41 if value is not\_loaded:  
42 module = self.\_\_belong\_lazy\_attributes[attr]

AttributeError: module ‘itk’ has no attribute ‘SymmetricEigenAnalysisFixedDimension’

What can I do, to calculate the eigenvalues of the Hessian Matrix, I obtained using ITK HessianRecursiveGaussianImageFilter??

Thanks for the help  
Veronika

---

<div class="post-metadata">

**Author:** ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)\
**Post date:** [March 11, 2019, 5:41pm UTC](https://discourse.itk.org/t/symmetriceigenanalysisfixeddimension-in-python/1652/2 "2019-03-11T17:41:09Z")

</div>

Hi @vero,  
the `itk::SymmetricEigenAnalysisFixedDimension` [has no Python wrapping](https://github.com/InsightSoftwareConsortium/ITK/tree/master/Modules/Core/Common/wrapping). Yet 😊 .

Would you like to contribute to the toolkit and provide the class’ Python wrapping?

Section 3.7 of the [ITK Software Guide](https://itk.org/ItkSoftwareGuide.pdf) introduces the Python wrapping mechanism used in ITK, and the [ITK CONTRIBUTING](https://github.com/InsightSoftwareConsortium/ITK/blob/master/CONTRIBUTING.md) document will be helpful to guide you through the contributing process.

It would be a nice contribution 💯, so let us know if you encounter any difficulty.

HTH.

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [March 21, 2019, 7:41pm UTC](https://discourse.itk.org/t/symmetriceigenanalysisfixeddimension-in-python/1652/3 "2019-03-21T19:41:37Z")

</div>

Wrapping for `SymmetricEigenAnalysisImageFilter` is added in this pull request:

> <https://github.com/InsightSoftwareConsortium/ITK/pull/614>

@vero @jhlegarreta your review would be appreciated!
