Support otb::Image writers in OutpuImageParameter
It would be nice if the applications could use otb::Image
writers (in addition to otb::VectorImage
writers). When the application produces an otb::Image<T,2>
, and the output pixel type corresponds to T
, we can therefore avoid the double cast filters, and save some RAM space.
I know that applications using otb::Image
internally is not generic, but it gives more performances in some projects outside OTB.
The implementation is not difficult:
- separate macros
CAST_IMAGE_BASE
andCAST_VECTOR_IMAGE_BASE
- separate functions
SwitchInput
andSwitchVectorInput