ImageReslice in vtk23

David Gobbi dgobbi at irus.rri.on.ca
Wed Jul 7 15:03:48 EDT 1999


Hi Ana,

If this is the bug I think it is, it was fixed a while ago -- but 
probably after vtk2.3 was released. 

There are two ways to fix this.  First, try using the OptimizationOff()
flag on vtkImageReslice (though this will cause the filter to run
around 50% slower). 

The second method:  Instead of doing a rotation by approximately -90
degrees

  vtkTransform transform
    transform RotateY -90.0

build a permutation matrix that rotates by exactly -90 degrees

  vtkMatrix4x4 matrix
    matrix SetElement 0 0  0.0
    matrix SetElement 0 2 -1.0
    matrix SetElement 2 2  0.0
    matrix SetElement 2 0  1.0

  vtkTransform transform
    transform Concatenate matrix

This should solve your problem, if not, email me back.

Thanks for the bug report.

 - David

--David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Wed, 7 Jul 1999, Ana Cugat wrote:

> I would like to know if there is any problem with vtkImageReslice. I used 
> with vtk22 and I had no problem, but the same application running with vtk23 
> produces strange results!!!
> 
> If I do:
> 
> vtkTransform transform
> transform Identity
> transform RotateY -90.0
> 
> vtkImageReslice reslice
> reslice SetResliceTransform transform
> reslice SetInput [reader GetOutput]
> 
> 
> it doesn't work while it worked with vtk22. I think has to do with 
> SetOutputExtent, but I didn't use it with vtk22 and it worked??!
> 
> 
> 
> 
> 
> Ana Cugat
> 
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 
> 
> -----------------------------------------------------------------------------
> This is the private VTK discussion list.  Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>.  For help, send message body containing
> "info vtkusers" to the same address.     Live long and prosper.
> -----------------------------------------------------------------------------
> 



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list