[vtkusers] Moving an ImageData

Francois Bertel francois.bertel at kitware.com
Wed Feb 10 15:25:02 EST 2010


Probably a better way is to use vtkImageChangeInformation:

http://www.vtk.org/doc/nightly/html/classvtkImageChangeInformation.html

because the way you do it right now is to read the file a first time,
change the reader parameter and update the reader, this probably makes
the process to read the same file twice. With
vtkImageChangeInformation you just change the meta information.

On Wed, Feb 10, 2010 at 3:20 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> Thanks Francois, that did the trick.
> The updated example is here:
> http://www.vtk.org/Wiki/VTK/Examples/CenterAnImage
> David
> _______________________________________________
> 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
>
>



-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtkusers mailing list