Mahotas: Computer Vision in Python
Mahotas is a set of functions for image processing and computer vision in Python.
It is completely based on numpy arrays as its datatype. It has its heavy routines implemented in clean C++ in a way that is both very clean, type independent (using templates), and fast.
All of the code is self contained and it has no other dependencies than numpy. Freeimage or imread are an optional dependency if you want to use the imread and imsave functions.
The code is well documented (all public functions are extensively documented) and well tested (almost 100% test coverage). It has no known bugs (if you email me a bug report with a clear test case, I will typically fix it in less than 24 hours).
There is a manuscript about mahotas, which will hopefully evolve into a journal publication later.
- convex hull computation
- polygon drawing
- feature computation: Haralick textures, local binary patterns, and Zernike moment
- distance transform
- freeimage & imread interface
pip install mahotas
You can also find Windows packages here by Christoph Gohlke at UCI. He also has other useful Python packages.
For FreeBSD, mahotas is available in the ports section.