[vtkusers] ImagePlaneWidget and GetResliceOutput

Lederer, Maitland mlederer at foster-miller.com
Fri Oct 1 12:38:35 EDT 2004


Sergio-

I think I had your problem #2 yesterday.  :)  You are probably using
SetDisplayExtent on your vtkImageActor somewhere, yes?  Comment it out
and see what happens.  You probably have your display extent set to
something that is outside the extent of the image.

HTH,
-maitland

-----Original Message-----
From: Sergio Andres [mailto:sergio at unizar.es] 
Sent: Friday, October 01, 2004 11:47 AM
To: vtkusers at vtk.org
Subject: [vtkusers] ImagePlaneWidget and GetResliceOutput

Hi all,

I have a problem with vtkImagePlaneWidget and its method
GetResliceOutput().

The pipeline is like this:

inputImage --> vtkImagePlangeWidget::GetResliceOutput() --> 
vtkImageMapToColors --> vtkImageActor

I use all these classes to display the same image in other window.
And the problems are:

1) The size of the output image from the widget is not the expected
size.
I read that the widget generates an output image whose extent is a power

of 2.

2) When I set a new inputImage, an error comes up about the update 
extent and whole extent.

I have been reading some previous mails sent to this list about these 
problems,
but I didn't manage to fix them.

So I would appreciate any help.
Thanks in advance.

Sergio.

_______________________________________________
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://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list