MantisBT - VTK
View Issue Details
0003829VTK(No Category)public2006-09-30 10:192012-12-12 12:11
kdsfinger 
David Gobbi 
urgentminoralways
closedfixed 
 
5.8 
0003829: vtkImageActor won't show color image if previously setinput grayscale image
The vtkImageActor won't be able to display color image if it was setinput for a grayscale image previously. It will only show one channel of the color image as if it is a grayscale image.

vtk_actor.SetInput(grayscaleImageData);
//the vtk_actor will display grayscale image correctly
vtk_actor.SetInput(colorImageData);
//the vtk_actor will display the color image in grayscale
//no matter how you switch the color/grayscale image, the vtk_actor will always display in grayscale.

However, if we do
vtk_actor.SetInput(colorImageData);
//the vtk_actor will display color image correctly
vtk_actor.SetInput(grayscaleImageData);
//the vtk_actor will display grayscale image correctly
//now matter how you switch color/grayscale image, the vtk_actor will always display them correctly.
//the vtk_actor will display color image

This problem is observed on the newest vtk 5.1
No tags attached.
Issue History
2008-02-06 10:50Jeff BaumesAssigned ToWill Schroeder => Sebastien Barre
2008-02-06 10:50Jeff BaumesSeveritymajor => minor
2011-02-26 10:37David GobbiNote Added: 0025588
2011-02-26 10:37David GobbiStatustabled => @80@
2011-02-26 10:37David GobbiResolutionopen => fixed
2011-02-26 10:37David GobbiAssigned ToSebastien Barre => David Gobbi
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2012-12-12 12:11David GobbiStatuscustomer review => closed
2012-12-12 12:11David GobbiFixed in Version => 5.8

Notes
(0005072)
kdsfinger   
2006-09-30 10:30   
The line next to the last ("//the vtk_actor will display color image") should be deleted. What I want to say is that if we setinput with a color image, then everything is correct no matter how you switch between grayscale/color later on.
(0025588)
David Gobbi   
2011-02-26 10:37   
This issue has been fixed in VTK 5.8.