# Anisotropic Diffusion Filter - Source Code

**URL:** https://discourse.itk.org/t/anisotropic-diffusion-filter-source-code/2731
**Category:** Beginner Questions
**Tags:** simpleitk
**Created:** [February 17, 2020, 8:42am UTC](https://discourse.itk.org/t/anisotropic-diffusion-filter-source-code/2731 "2020-02-17T08:42:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![michael](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/4bbf92/32.png) [@michael](https://discourse.itk.org/u/michael)
#### Post date: [February 17, 2020, 8:42am UTC](https://discourse.itk.org/t/anisotropic-diffusion-filter-source-code/2731/1 "2020-02-17T08:42:32Z")

</div>

Hi there! New to ITK, so it’s possible I’m missing something obvious, but I have been searching through the documentation for the GradientAnisotropicDiffusionFilter in Simple ITK and have found the descriptions of the anisotropic diffusion function ([https://itk.org/Doxygen/html/classitk\_1\_1AnisotropicDiffusionFunction.html#abdd1b2f3a6e99c69c6f5582f3d266062](https://itk.org/Doxygen/html/classitk_1_1AnisotropicDiffusionFunction.html#abdd1b2f3a6e99c69c6f5582f3d266062)) and some code for the filter itself ([https://itk.org/SimpleITKDoxygen/html/classitk\_1\_1simple\_1\_1GradientAnisotropicDiffusionImageFilter.html](https://itk.org/SimpleITKDoxygen/html/classitk_1_1simple_1_1GradientAnisotropicDiffusionImageFilter.html)), but I can’t seem to find the code where I can review the math being done. Could someone point me to it?

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [February 17, 2020, 3:16pm UTC](https://discourse.itk.org/t/anisotropic-diffusion-filter-source-code/2731/2 "2020-02-17T15:16:04Z")

</div>

The math should be here:

> <https://github.com/InsightSoftwareConsortium/ITK/blob/344e9bc58e69ed921f540c67d87dbb66fee4c466/Modules/Filtering/AnisotropicSmoothing/include/itkGradientNDAnisotropicDiffusionFunction.hxx#L100-L154>
