Skip to main content.


An alpha version of the program, in Java.


The program is in Java, to build and run type:

make run
A sample image is included em.pgm from John Fiala's site in Boston - at present the code only loads ASCII PGM format files.

Original version

The original version of the code by Ding Fan is here which includes documentation on the algorithm and parameters.