[vtkusers] Error in vtkImageChangeInformation

David Gobbi dgobbi at irus.rri.on.ca
Fri Jun 8 13:40:07 EDT 2001


Hi Matthias,

When I tried your example with the 'headsqr' image from
the vtk example data it worked fine.  The problem might
be with the extent you set in the data reader, if your
images are 512x512x120 then you should set up the
reader like this:

reader.SetDataExtent(0,511,0,511,1,120)

I'll take a look through vtkImageChangeInformation and
try to figure out why it was reporting the error, however.

 - David

On Fri, 8 Jun 2001, Matthias Zangl wrote:

> Hello!
>
> I have already posted some mails concerning a problem
> with vtkImageReslice. I am reading some slices of an
> object from TIF-files.
> And I can view these slices with a vtkImageViewer. But
> I have to make slices not only along the Z but also
> along the X and Y axis. And it should be possible to
> create free slices through a given point and along
> free angles around every axis.
> But when I do that I only get an empty screen.
> And I suppose that I am turning the object around
> (0,0,0) and not the center of the image.
> So I got the message from the mailinglist that I
> should move the object to (0,0,0) and then turn it.
> But this doesn't work.
> I found in the header of vtkImageReslice a hint that I
> should use vtkImageChangeInformation to put the origin
> to the center of my object.





More information about the vtkusers mailing list