Add test mode to the otbImageWidget to dump the buffer on disk
Mantis Issue 323, reported by echristophe, assigned to cvalladeau, created: 2011-06-01
It is necessary to check for non regression also for visualization functions. It would be very useful to be able to dump the image buffer on disk from the otbImageWidget, using special test option.
The image format could be very simple (raw hdr for example) to avoid any dependencies with other library at this point.
1308559943 - julienmFLTK 1.3 now has support for "printing a widget content, including OpenGL".
1313588673 - C ValladeauDo you mean that the dump process should be a method of otbImageWidget or that a test should get the image buffer and write it (using http://www.orfeo-toolbox.org/doxygen-current/classotb_1_1ScalarBufferToImageFileWriter.html for example)?
1313637824 - christopNot sure what is the best approach, but we should have a way to save what we see on the image viewer to the disk. At least for the tests, not sure it if is useful for any application.
1313675927 - C ValladeauTest added : http://hg.orfeo-toolbox.org/OTB/rev/cf0dc636bb59.
1313738699 - christopCool! All the tests in visualization should use that for non regression!