[vtkusers] Up side down MPR's images
    Fireman Fireman 
    vtkusersneedhelp at yahoo.fr
       
    Tue Oct  6 04:30:54 EDT 2009
    
    
  
Dear vtkusers and developers,
 
I'm using VTK for Multi-Planar Reformation (MPR).
 
I'm loading Dicom image (data) into a vtkStructuredPoints (Image1,Image2,Image3,...ImageN)
 
It works well with some series of images but not always.
 
In fact, sometimes the images are inverted(up side down == rotation 180°).
 
I could solve this problem by reversing the loading(ImageN,ImageN-1,...Image1)
 
I have not found a way to detect when I need to load the volume in normal way or inverted.
 
For now I use a comparison between SliceLocation that does not work in all cases:
 
            if(SliceLocation_ImageN > SliceLocation_ImageN-1)
                           I reverse the loading(ImageN,ImageN-1,...Image1)
           else
                         (Image1,Image2,Image3,...ImageN)
Thanks,
B.wassim
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091006/48f17759/attachment.htm>
    
    
More information about the vtkusers
mailing list