<div dir="ltr">Thanks David. <div>In this example, in order to visualize the resliced image, vtkImageActor is used. Did you mean that after reslicing, vtkImageViewer can be also used to visualize the resliced images?</div>

<div><br></div><div>The difficulty for me is that vtkImageActor is in 3D and I can not make it flat, but vtkImageViewer flattens the slices to one single 2D while still preserving the geometry.</div><div><br></div><div>-S </div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 31, 2014 at 3:37 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sam,<br>
<br>
The vtkImageViewer is just a simple 2D image viewer, and it cannot<br>
do reformats.  You would have to reformat the image into sagittal or<br>
coronal slices beforehand with vtkImageReslice.  An example of how<br>
to do this is VTK/Examples/ImageProcessingCxx/ImageSlicing.cxx.<br>
<span class="HOEnZb"><font color="#888888"><br>
  David<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
On Mon, Mar 31, 2014 at 2:26 PM, Sam Raby <<a href="mailto:rabysam28@gmail.com">rabysam28@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I was wondering whether there is an example of using vtkImageViewer to<br>
> visualize sagittal and coronal views? I can do this using vtkImageActor, but<br>
> I do not know how to do this using vtkImageViewer.<br>
><br>
> Any hint is appreciated.<br>
> -S<br>
</div></div></blockquote></div><br></div>