MantisBT - VTK
View Issue Details
0014838VTK(No Category)public2014-07-03 03:312014-07-03 13:06
Daniel Frese 
Berk Geveci 
normalminorhave not tried
closedno change required 
 
 
TBD
incorrect functionality
0014838: vtkImageMapToColors seems not to handle the output info
Basically I use the pipeline
vtkImageCanvasSource2D -> vtkImageMapToColors -> vtkImageViewer2.

If I visualize the canvas, without passing through the vtkImageMapToColors filter, everything works fine. If I pass through the vtkImageMapToColors filter, I get a blank render window and the error message :
“vtkTrivialProducer (00F15A08) : This data object does not contain the requested extent.”
 
I printed out the vtkInformation objects of the canvas’ output port and the the vtkImageMapToColors’ input port, and both outputs showed the correct extents for WHOLE_EXTENT and UPDATE_EXTENT, but wrong values for COMBINED_UPDATE_EXTENT. Moreover, canvas->GetOutput()->Print() gives also the right extents, whereas the output of the the vtkImageMapToColors shows that basically no meta information has been transmitted.
 
A sample code to reproduce the behavior is attached.

I used a vtk git snapshot from 2014-03-02, Windows 7, VisualStudio 2008 32 bit.
No tags attached.
cpp bug_reproduction.cpp (2,256) 2014-07-03 03:31
https://www.vtk.org/Bug/file/9671/bug_reproduction.cpp
Issue History
2014-07-03 03:31Daniel FreseNew Issue
2014-07-03 03:31Daniel FreseFile Added: bug_reproduction.cpp
2014-07-03 13:06Berk GeveciNote Added: 0032965
2014-07-03 13:06Berk GeveciStatusbacklog => closed
2014-07-03 13:06Berk GeveciAssigned To => Berk Geveci
2014-07-03 13:06Berk GeveciResolutionopen => no change required

Notes
(0032965)
Berk Geveci   
2014-07-03 13:06   
This is not a bug. The code needs to be changed to either call Update() on vtkImageMapToColors or to use SetInputConnection() when connecting color and imageViewer. SetInputData() does not setup a pipeline connection and therefore cannot cause a pipeline execution of upstream filters.