[vtkusers] Volume origin,bounds, extent question

Kall, Bruce A. kall at mayo.edu
Fri Jan 16 16:47:19 EST 2009


Anybody have any thoughts on my question from the other day?
The only thing I can find in vtkImageReader is the SetTransform
but that has to be a permutation matrix.  I need to rotate/translate.
I've got the transform calculated, I just don't know where to apply it.

Thanks,
Bruce



> I'm reading in a premade (raw) image volume. I know the voxel size 
> (same for all dimensions) as
> well as the coordinates of all 8 corners of the volume.  I'm using 
> vtkImageReader.
>
> This only seems to allow me to set the coordinate of the lower left 
> voxel and the voxel size.
>
> How do you set the coordinate for another corner (e.g., upper right) 
> so the coordinates
> run in the direction I want using the fixed voxel size I have?  Right 
> now it seems to just
> increment in the x,y,z dimensions by the voxel size and the coordinate 
> of the upper right
> is not correct (my volume is slightly oblique for lack of a better 
> phrase).
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list