# New implementation of functor filter in OTB

**URL:** <https://discourse.itk.org/t/new-implementation-of-functor-filter-in-otb/1382>\
**Category:** Engineering\
**Created:** [October 29, 2018, 4:41pm UTC](https://discourse.itk.org/t/new-implementation-of-functor-filter-in-otb/1382 "2018-10-29T16:41:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![blowekamp](https://discourse.itk.org/user_avatar/discourse.itk.org/blowekamp/32/79_2.png) [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Post date:** [October 29, 2018, 6:20pm UTC](https://discourse.itk.org/t/new-implementation-of-functor-filter-in-otb/1382/2 "2018-10-29T18:20:33Z")

</div>

Hello,

We have recently added something very similar: [New Functor Filter with lambda support](https://discourse.itk.org/t/new-functor-filter-with-lambda-support/899/3)

The are called [UnaryFunctorGenerator](https://itk.org/Doxygen/html/classitk_1_1UnaryGeneratorImageFilter.html) and [BinaryFunctorGeneratorImageFilter](https://itk.org/Doxygen/html/classitk_1_1BinaryGeneratorImageFilter.html) These filters were replacements for the prior UnaryFunctorImageFilter and BinaryFunctor filter. They have some similar functionality to what you propose, but don’t work with neighborhoods. Please see if these new classes in ITK meet some of your needs and if you could help improve them!

---

_[View the full topic](https://discourse.itk.org/t/new-implementation-of-functor-filter-in-otb/1382)._
