[Insight-users] Re: Orientation of images

Luis Ibanez luis.ibanez at kitware.com
Fri, 06 Feb 2004 18:11:18 -0500


Hi Sandya,

The demo applications

    - ImageViewer
    - DicomImageViewer

use the auxiliary classes

    fltkImageViewer
    fltkImage2DViewer

respectively.

Both classes are in

   InsightApplications/
               Auxiliary/
                FltkImageViewer

These to GUI classes internally
use the GLSliceView class that
derives from SliceView. Both
classes are also in

   InsightApplications/
               Auxiliary/
                FltkImageViewer


The SliceView class has methods

          flipX()
          flipY()
          flipZ()

Therefore, you could do something like
modifying the code of the class

          fltkImageViewer

by adding methods:

   void FlipX()
          {
          glSliceView->flipX();
          glSliceView->update();
          }

   void FlipY()
          {
          glSliceView->flipY();
          glSliceView->update();
          }

   void FlipZ()
          {
          glSliceView->flipZ();
          glSliceView->update();
          }


In this way you will be able to
invoke them from your application
if you use the fltkImageViewer.


Note also that interactively you can
simply click (right now) on the image
and type

    'x'  to flip along X
    'y'  to flip along Y
    'z'  to flip along Z


If you type 'h' (for help) it will
show you all the interactive commands.



Please let us know if you have further
questions.


   Thanks


     Luis


--------------------------
Thimmaiah, Sandhya wrote:

> Hi Luis,
> I was going through the ITK applications in that  the dicomimageviewer and
> ImageViewer both have different orientations. Can I know if there is anyway
> where I can change the orientation of ImageViewer as DicomImageViewer. I
> went through the code but got confused. Thank you
>