scikits-image/scikits-image — pull request #98 by tonysyu (2011-12-09 04:08:30+00:00)
Title: Add thresholding module with Otsu's method to calculate threshold.

This is a pure python implementation, so it could probably be a bit faster, but almost all of the time is spent in `numpy.bincount` or `numpy.histogram`, which I assume are fairly optimized.

Notes:
* I don't really know if the binarize function is necessary (but I noticed it in other packages). I'm happy to get rid of it if it's deemed unnecessary.
* Maybe `otsu_threshold` should just be renamed `otsu`.
* The test values match those from mahotas's otsu implementation.