# Is it possible to use itk::OrientImageFilter on a 4D image

**URL:** https://discourse.itk.org/t/is-it-possible-to-use-itk-orientimagefilter-on-a-4d-image/2253
**Category:** Uncategorized
**Created:** [September 20, 2019, 3:34pm UTC](https://discourse.itk.org/t/is-it-possible-to-use-itk-orientimagefilter-on-a-4d-image/2253 "2019-09-20T15:34:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sarthakpati](https://discourse.itk.org/user_avatar/discourse.itk.org/sarthakpati/32/383_2.png) [@sarthakpati](https://discourse.itk.org/u/sarthakpati)
#### Post date: [September 20, 2019, 3:34pm UTC](https://discourse.itk.org/t/is-it-possible-to-use-itk-orientimagefilter-on-a-4d-image/2253/1 "2019-09-20T15:34:48Z")

</div>

Hey,

I figured I’d ask here because I wasn’t able to find the answer anywhere else:

Is it possible to use the itk::OrientImageFilter filter for a 4D (perfusion) image?

Thanks,  
Sarthak

---

<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, 2019, 4:00pm UTC](https://discourse.itk.org/t/is-it-possible-to-use-itk-orientimagefilter-on-a-4d-image/2253/2 "2019-09-20T16:00:38Z")

</div>

No, that filter only works for 3D images. There is a [compile-time check](https://github.com/InsightSoftwareConsortium/ITK/blob/2074c2f9e5ed3f087d0e2059f8e0e8992fcad7ef/Modules/Filtering/ImageGrid/include/itkOrientImageFilter.h#L265) which enforces it.

---

<div class="post-metadata">

### Author: ![sarthakpati](https://discourse.itk.org/user_avatar/discourse.itk.org/sarthakpati/32/383_2.png) [@sarthakpati](https://discourse.itk.org/u/sarthakpati)
#### Post date: [September 20, 2019, 4:24pm UTC](https://discourse.itk.org/t/is-it-possible-to-use-itk-orientimagefilter-on-a-4d-image/2253/3 "2019-09-20T16:24:10Z")

</div>

Got it, thanks!
