[vtkusers] Only scalars remain with vtkImageReslice on vtkImageData
David Gobbi
david.gobbi at gmail.com
Fri Nov 21 11:58:10 EST 2008
Hi Roy,
Right now there isn't any way to get vtkImageReslice to transform
vector data. The code just ain't there. The reason that
vtkImageReslice discards the vector data is that one cannot simply
resample the vector data like one does with the scalar data, since
correctly resampling a vector image requires a couple additional
steps.
I suspect that there are people out there who have solved this
problem, since there are several diffusion tensor imaging groups that
use VTK. Try doing a search and see if anything comes up.
Also, it wouldn't hurt to submit a bug report on this, because if you
do, then someone might eventually add vector-handling code to
vtkImageReslice.
David
On Thu, Nov 20, 2008 at 11:41 AM, Pelt, R.F.P. van <R.F.P.v.Pelt at tue.nl> wrote:
>
> Hi all vtk users,
>
> Currently I'm working with a vtkImageData, which contains both
> scalars and vectors attributes attached to the PointData.
>
> Since the data originates from an MRI device, I would like to
> transform this to patient coordinates.
>
> I've used vtkImageReslice->SetResliceAxes to apply the transformation
> matrix. This works fine, but the returned data set only contains
> the scalar data (with a new name label attached 'Scalars_').
> The vector data is simply discarded!
>
> Is there a better way to do this transformation? Did I overlook something?
>
> Hope someone can help me out. Thanks in advance.
>
> Regards,
>
> Roy
> _______________________________________________
> 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