[vtkusers] Changing the spacing with vtkImageData
Leue, William M (Research)
leue at crd.ge.com
Tue Mar 18 09:49:53 EST 2003
To truly change the spacing, you must resample the pixel or voxel data on a
new sampling grid. Take a look at vtkImageResample.
-Bill Leue
-----Original Message-----
From: Jim Reigle [mailto:jreigle at concentric.net]
Sent: Tuesday, March 18, 2003 9:54 AM
To: vtkusers at public.kitware.com
Subject: [vtkusers] Changing the spacing with vtkImageData
Hello.
I am wondering if anyone else has had trouble changing the spacing when
using vtkImageData and vtkImageViewer to present image data. The
classes do display the data nicely, but when I change the spacing using
the member function vtkImageData::SetSpacing, the image looks the same
regardless of the values I put in. I have checked the inputted values
using vtkImageData::GetSpacing and the values are correct, but the size
of the image is the same regardless.?
Have I missed something?
I would appreciate any help.
Thank you.
Jim Reigle
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list