[vtkusers] vtkImageData transform with vtkImageResample/Reslice

cameron.palmer at ntnu.no cameron.palmer at ntnu.no
Fri Jan 30 06:05:56 EST 2015


I’ve seen a number of online examples using image reslice and resample that don’t seem to work for me. I simply want to scale the image so resample seems to be the way to go, but I always have trouble with the various Input methods. What is the correct formulation for using vtkImageData as input?

vtkImageData* imageData;
...
auto resample = vtkSmartPointer<vtkImageReslice>();
resample->SetInput(imageData);
...
resample->Update();


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150130/467bc0ae/attachment.html>


More information about the vtkusers mailing list