View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014838VTK(No Category)public2014-07-03 03:312014-07-03 13:06
ReporterDaniel Frese 
Assigned ToBerk Geveci 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0014838: vtkImageMapToColors seems not to handle the output info
DescriptionBasically 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.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Filescpp file icon bug_reproduction.cpp [^] (2,256 bytes) 2014-07-03 03:31

 Relationships

  Notes
(0032965)
Berk Geveci (administrator)
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.

 Issue History
Date Modified Username Field Change
2014-07-03 03:31 Daniel Frese New Issue
2014-07-03 03:31 Daniel Frese File Added: bug_reproduction.cpp
2014-07-03 13:06 Berk Geveci Note Added: 0032965
2014-07-03 13:06 Berk Geveci Status backlog => closed
2014-07-03 13:06 Berk Geveci Assigned To => Berk Geveci
2014-07-03 13:06 Berk Geveci Resolution open => no change required


Copyright © 2000 - 2018 MantisBT Team