[vtkusers] GetOrientation()

Sean McInerney seanm at nmr.mgh.harvard.edu
Tue Aug 17 16:56:12 EDT 2004


It might be a nice extension to the vtkImageData or vtkStructuredPoints 
classes to include an RAS permutation matrix or, at least, to make some 
provision for axis labeling. This metadata could also be an extension to 
the VTK image file format(s). This should be easy to add without 
breaking backwards compatibility (except probably binary) and with 
minimal memory overhead. It seems like such a basic part of imaging work 
that it need not be application specific. Seems like a good candidate 
for a library API ... like VTK. Doing this right within the library 
would be a real boon.

-Sean

David Gobbi wrote:
> Hi Pallavi,
> 
> There is no "orientation" for vtkImageData.  The data is always arranged
> according to an x,y,z data coordinate grid: column number increases with
> x, row number increases with y, slice number increases with z.  (Unless
> spacing is negative, in which case col number decreases with x etc)
> 
>  - David
> 
> On Tue, 17 Aug 2004, Pallavi Joshi wrote:
> 
> 
>>Hi,
>>Is it possible to get the orientation of a grid or a vtkImageData ?
>>
>>-------------------------------------------------------------------
>>Pallavi Joshi
>>Graduate Student
>>Medical Image Processing Lab
>>



More information about the vtkusers mailing list