# Does vtkRenderer consider the direction of vtkImageData?

**URL:** https://discourse.vtk.org/t/does-vtkrenderer-consider-the-direction-of-vtkimagedata/5949
**Category:** Support
**Created:** [June 7, 2021, 12:48pm UTC](https://discourse.vtk.org/t/does-vtkrenderer-consider-the-direction-of-vtkimagedata/5949 "2021-06-07T12:48:52Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [June 8, 2021, 3:25pm UTC](https://discourse.vtk.org/t/does-vtkrenderer-consider-the-direction-of-vtkimagedata/5949/6 "2021-06-08T15:25:11Z")

</div>

I had to take some time to confirm it for myself, but you are absolutely correct that vtkImageMapToWindowLevelColors does not pass the Direction to its output. I looked through the code for vtkImageAlgorithm (which is the base class of all VTK image filters), and it completely ignores the Direction. This means that nearly all image filters will ignore the Direction.

In my own applications, my preference is to just use Spacing for the images (no Direction or Origin). Then I account for orientation and position by setting the orientation and position of the actor (i.e. the vtkImageSlice or vtkImageActor) that is displaying the data.

---

_[View the full topic](https://discourse.vtk.org/t/does-vtkrenderer-consider-the-direction-of-vtkimagedata/5949)._
