Request for changes-112: New-functor-filters

From OTBWiki
Jump to: navigation, search

Status

Summary

Add two "new" functor image filters.

  • otbBinaryFunctorImageFilter
  • otbTernaryFunctorImageFilter

Rationale

The otbUnaryFunctorImageFilter is very convenient to change the number of channels of the output image. However, there is currently no such thing for binary and ternary functors.

Implementation details

Classes

A       Modules/Core/Common/include/otbBinaryFunctorImageFilter.h 
A       Modules/Core/Common/include/otbTernaryFunctorImageFilter.h 

The new filters implements the same strategy of the otbUnaryFunctorImageFilter, using respectively itkBinaryImageFunctorFilter and itkTernaryImageFunctorFilter.