[vtkusers] Correct coordinate transformations for DICOM data set.

David Gobbi david.gobbi at gmail.com
Thu Aug 21 13:51:50 EDT 2014

Hi Vipul,

For the default position of the VTK camera,

X points right
Y points up
Z points out of the screen

So, yes, if one simply tries to slap a DICOM image up on
the screen with VTK, it will be displayed with the wrong
orientation.  After all, VTK is a general-purpose graphics
library, so its default settings are not tuned specifically
for DICOM.

Setting up the camera properly, so that you get the desired
view of your data, is a must.

 - David

On Thu, Aug 21, 2014 at 11:14 AM, Vipul Pai Raikar <vpai at g.clemson.edu> wrote:
> Hello Dr Gobbi,
> Well as you explained, I implemented the solution. It works like a charm. I
> agree with you that its quite a few lines of code to get it to work, but it
> indeed helped my better grasp the concept.
> As well as it worked, there was however an issue with the rendering being
> flipped in the Y-direction. I approached this problem by manipulating the
> camera associated with the renderer. I remember from some of your earlier
> posts that I read here, you explicitly advise setting up the camera by your
> self. As a result the rendering is now oriented correctly. I was just
> wondering if this was a normal thing or is the flip the byproduct of
> something else? ; and if this approach is correct.
> I also can now correctly position my tracker data.
> best regards,
> V
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Correct-coordinate-transformations-for-DICOM-data-set-tp5728309p5728324.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

More information about the vtkusers mailing list