# functional interface for filters? SimpleITK

**URL:** <https://discourse.itk.org/t/functional-interface-for-filters-simpleitk/3895>\
**Category:** Uncategorized\
**Tags:** simpleitk, python\
**Created:** [February 24, 2021, 9:10am UTC](https://discourse.itk.org/t/functional-interface-for-filters-simpleitk/3895 "2021-02-24T09:10:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_C](https://discourse.itk.org/user_avatar/discourse.itk.org/diego_c/32/279_2.png) [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Post date:** [February 24, 2021, 9:10am UTC](https://discourse.itk.org/t/functional-interface-for-filters-simpleitk/3895/1 "2021-02-24T09:10:12Z")

</div>

Hi!

What is the difference between `sitk.BinaryErodeImageFilter` and `sitk.BinaryErode`?

Where can I find more documentation about this? If I remember correctly this is a functional interface for filters?

Thanks,

Diego

---

<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:** [February 24, 2021, 2:21pm UTC](https://discourse.itk.org/t/functional-interface-for-filters-simpleitk/3895/2 "2021-02-24T14:21:39Z")

</div>

Hello,

In the Doxygen documentation for the [class](https://simpleitk.org/doxygen/v2_0/html/namespaceitk_1_1simple.html#a066294ceb0336d8cb49013b32e5c9a01), there is a section “see also” which contains the following:

```auto
[itk::simple::BinaryDilate](https://simpleitk.org/doxygen/v2_0/html/namespaceitk_1_1simple.html#a066294ceb0336d8cb49013b32e5c9a01) for the procedural interface

```

This is constantly linked in the Doxygen Pages for all the classes, so it is easy to find.

---

<div class="post-metadata">

**Author:** ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)\
**Post date:** [February 24, 2021, 2:24pm UTC](https://discourse.itk.org/t/functional-interface-for-filters-simpleitk/3895/3 "2021-02-24T14:24:18Z")

</div>

Hello @Diego_C,

The latest API doxygen documentation is [available here](https://simpleitk.org/doxygen/latest/html/index.html). The specific documentation for the [BinaryErodeImageFilter is here](https://simpleitk.org/doxygen/latest/html/classitk_1_1simple_1_1BinaryErodeImageFilter.html).

For almost all object oriented interfaces `sitk.ABCImageFilter` there is a corresponding procedural interface `sitk.ABC()`. The detailed documentation is found on the `ABCImageFilter` doxygen webpage, and when you go to the page search for the word “procedural” and you’ll find if it has a procedural interface, and the link to the procedural documentation (sparse as it does the same thing as the object oriented one).

---

<div class="post-metadata">

**Author:** ![Diego\_C](https://discourse.itk.org/user_avatar/discourse.itk.org/diego_c/32/279_2.png) [@Diego\_C](https://discourse.itk.org/u/Diego_C)\
**Post date:** [February 24, 2021, 8:21pm UTC](https://discourse.itk.org/t/functional-interface-for-filters-simpleitk/3895/4 "2021-02-24T20:21:52Z")

</div>

Searching for the word `procedural` in the docs saved me a lot of time thanks so much.
