**image_diffuse_test**,
a MATLAB code which
calls image_diffuse(), which
uses diffusion to smooth a picture.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

image_diffuse, a MATLAB code which uses diffusion to smooth out an image.

- image_diffuse_test.m, calls all the tests.
- image_diffuse_test.sh, runs all the tests.
- image_diffuse_test.txt, the output file.

**FOOL** is an image which was originally a true black and white image;
that is, as a gray scale image, every pixel was set to 0 or 255.
Diffusion will smooth the boundary between the black and white areas.

- fool.png, the original image.

Diffusion using image_diffuse4():

- fool_c0.05_k20_n4.png, the result for C = 0.05, K = 20;
- fool_c0.50_k01_n4.png, the result for C = 0.50, K = 1.
- fool_c0.50_k20_n4.png, the result for C = 0.50, K = 20.
- fool_c1.00_k01_n4.png, the result for C = 1.00, K = 1

Diffusion using image_diffuse8():

- fool_c0.05_k20_n8.png, the result for C = 0.05, K = 20;
- fool_c0.50_k01_n8.png, the result for C = 0.50, K = 1.
- fool_c0.50_k20_n8.png, the result for C = 0.50, K = 20.
- fool_c1.00_k01_n8.png, the result for C = 1.00, K = 1