[vtkusers] GetOrientation()

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


Hi Amy,

   Right ... and it works great. But does it seem redundant to make a 
provision to pass along such important metadata? I admit that it might 
be an inelegant addition to the existing architecture. Maybe not generic 
enough to warrant it?

-Sean

Amy Henderson wrote:
> Hi Sean,
> 
> vtkImageReslice does this already.  It does require applying this filter 
> to your image data (or structured points), but it means you don't have 
> to extend these data set classes to get the results you're after.
> 
> - Amy
> 
> At 04:56 PM 8/17/2004, Sean McInerney wrote:
> 
>> 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
>>
>> _______________________________________________
>> This is the private VTK discussion list. Please keep messages 
>> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
> 
> 



More information about the vtkusers mailing list