Request for changes-112: New-functor-filters

From OTBWiki
Revision as of 17:34, 1 September 2017 by Gpasero (Talk | contribs) (Status)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.