[vtkusers] vtkImageData transform with vtkImageResample/Reslice
David Doria
daviddoria at gmail.com
Fri Jan 30 07:23:26 EST 2015
On Fri, Jan 30, 2015 at 6:05 AM, cameron.palmer at ntnu.no <
cameron.palmer at ntnu.no> wrote:
> 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();
>
Please provide the smallest possible compilable example of what you're
trying to do, along with an explanation of what is not working (Is there a
compiler error? If so, what is it? Is there a runtime error? Does it crash?
If so, where? etc.)
Here is an example of a basic use of vtkImageSlice:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ImageReslice
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150130/d04c23e9/attachment.html>
More information about the vtkusers
mailing list