I coded a modest Java implementation of the Perona & Malik anisotropic diffusion, based on the ImgLib2 library. You can find it [here](https://github.com/imglib/imglib2-algorithm-gpl/blob/master/src/main/java/net/imglib2/algorithm/pde/PeronaMalikAnisotropicDiffusion.java).

You will have to import and learn how to use the [ImgLib2](http://fiji.sc/ImgLib2) library though. Here is [an example](https://github.com/imglib/imglib2-tests/blob/master/src/test/java/net/imglib2/algorithm/pde/PeronaMalikAnisotropicDiffusionExample.java) using the anisotropic diffusion algorithm.

Best regards.