[vtkusers] Matching two vtkImageData

Cory Quammen cquammen at cs.unc.edu
Fri Aug 23 06:19:43 EDT 2013


Tony,

It sounds like you might want to use the vtkImageReslice filter:
http://www.vtk.org/doc/nightly/html/classvtkImageReslice.html

Here's an example that might help get you started:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ImageReslice

Cory

On Fri, Aug 23, 2013 at 3:38 AM, Tony <bowler0_uk at yahoo.com> wrote:
> Dear listers
>
> I have two vtkImageData classes, they are on the same axes but
> have different resolutions and spatial extents. I am trying to
> rescale/resample each image to have the same spatial extent (cropping
> the larger image to match the smaller of the two images) and the same
> resolution as the higher resolution image (via interpolation). I have
> tried various combinations of methods but nothing seems to do what I
> want. Is there a simple combination of resize-ing and reslice-ing (or
> something I've missed) that will achieve this. The aim here is to
> perform quantitative analysis of the images so if vtk provides some
> better way of doing this without creating matching images first then I
> could skip this step.
>
> Thanks.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill



More information about the vtkusers mailing list