[vtkusers] VtkImageReslice on a vktImageData with multiple arrays, array selection problem
Knut Eric Jelden
knut.eric.jelden at gmail.com
Thu Jun 20 09:14:56 EDT 2013
Hi everybody,
I have a vtkImageData with an array of PointData:
vtkImageData *image......
int numberOfResultsForPointData =
image->GetPointData()->GetNumberOfArrays();
where numberOfResultsForPointData > 1 in my case.
I want to reslice the image by vtkImageReslice using:
vtkImageReslice *reslice = vtkImageReslice::New();
reslice->SetOutputDimensionality(2);
reslice->SetResliceAxes(.....)
reslice->SetInput(image);
The result of the rendering process gives me a slice of image's first point
data.
I was trying to solve the problem by setting an active scalar or vector
field (which I have both), but it was not giving me the wished result. Also
I was playing around with vtkAlgorithm::SetInputArrayToProcess(), which was
either not having any effect, or I was using it in a wrong way.
So, how to change the point data array which is used by the reslicer?
Thanks for your help,
Knut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130620/6bf64f36/attachment.htm>
More information about the vtkusers
mailing list