itkCastImageFilter doesn't work well with streaming
Mantis Issue 428, reported by gpasero, assigned to gpasero, created: 2011-11-17
The problem happens when we try to write an image present in memory through a caster and a streaming writer.
Problem symptom : in the output image, the first stripe is repeated across all the image.
1321548254 - christopitkCastImageFilter does not implement ThreadedGenerateData => expected to break streaming.
Is there any other filter that you can use?
1321548682 - julienmCan you be more specific ? What's wrong with itkCastImageFilter ?
it implements GenerateData, calling its Superclass GenerateData (when InPlaceOff) which does use ThreadedGeneratedData.
anyway, the bug appears only with InPlaceOn, where the GenerateData part is skipped.
1321549186 - gpaseroIn fact, it is working fine when InPlaceOff() is set in the caster.
This caster is used for the writer macro in WrapperOutputImageParameter.
Test comming soon ...
1321607007 - gpaseroHere is the test added to reproduce the problem : http://hg.orfeo-toolbox.org/OTB/rev/ef5224381d6d
It all started with the migration of the application Quicklook to the new framework. This application uses a streaming shrink filter, which has to be updated inside the DoExecute() method. When the command line wrapper tries to write th