# get row from itk matrix

**URL:** <https://discourse.itk.org/t/get-row-from-itk-matrix/5071>\
**Category:** Beginner Questions\
**Tags:** vnl\
**Created:** [June 8, 2022, 4:55pm UTC](https://discourse.itk.org/t/get-row-from-itk-matrix/5071 "2022-06-08T16:55:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stnava](https://discourse.itk.org/user_avatar/discourse.itk.org/stnava/32/2742_2.png) [@stnava](https://discourse.itk.org/u/stnava)\
**Post date:** [June 8, 2022, 4:55pm UTC](https://discourse.itk.org/t/get-row-from-itk-matrix/5071/1 "2022-06-08T16:55:46Z")

</div>

just trying to update some code for more recent itk version (latest release)

Type definitions:

> <https://github.com/ANTsX/ANTsR/blob/master/src/reorientImage.cpp#L29>

> <https://github.com/ANTsX/ANTsR/blob/master/src/reorientImage.cpp#L44-L46>

> <https://github.com/ANTsX/ANTsR/blob/master/src/reorientImage.cpp#L54-L55>

Things that don’t compile b/c they use old vnl types:

> <https://github.com/ANTsX/ANTsR/blob/master/src/reorientImage.cpp#L56-L57>

> <https://github.com/ANTsX/ANTsR/blob/master/src/reorientImage.cpp#L127>

But - in brief - this is a question of how to replace old vnl operations with whatever is the right way to do wrt recent ITK.

---

<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:** [June 8, 2022, 6:30pm UTC](https://discourse.itk.org/t/get-row-from-itk-matrix/5071/2 "2022-06-08T18:30:54Z")

</div>

Unfortunately, we still use VNL under the hood for Matrix. We want to transition to Eigen, but it is a large refactoring and no one has taken it up so far.
