# How to fix 'itkMatrixD33' object does not support indexing (itk.BinaryMask3DMeshSource)

**URL:** <https://discourse.itk.org/t/how-to-fix-itkmatrixd33-object-does-not-support-indexing-itk-binarymask3dmeshsource/5347>\
**Category:** Community\
**Created:** [September 20, 2022, 5:21am UTC](https://discourse.itk.org/t/how-to-fix-itkmatrixd33-object-does-not-support-indexing-itk-binarymask3dmeshsource/5347 "2022-09-20T05:21:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 20, 2022, 11:59am UTC](https://discourse.itk.org/t/how-to-fix-itkmatrixd33-object-does-not-support-indexing-itk-binarymask3dmeshsource/5347/2 "2022-09-20T11:59:12Z")

</div>

Try `imageDirection_itk(iPointDim, iDim)` and `imageDirection_itk.GetElement(iPointDim, iDim)`. Take a look at [this post](https://discourse.itk.org/t/set-image-direction-from-numpy-array/844/11) and the rest of that thread.

---

_[View the full topic](https://discourse.itk.org/t/how-to-fix-itkmatrixd33-object-does-not-support-indexing-itk-binarymask3dmeshsource/5347)._
