Skip to main content

Mahotas: Python Image Processing Library

Project description

Image Processing Library for Python.

It includes a couple of algorithms implemented in C++ for speed while operating
in numpy arrays.

Notable algorithms:
- watershed.
- thresholding.
- convex points calculations.
- hit & miss. thinning.
- Zernike & Haralick features.
- freeimage based numpy image loading (requires freeimage libraries to be
installed).


Examples
--------

This is a simple example of loading a file (called `test.jpeg`) and calling
`watershed` using above threshold regions as a seed (we use Otsu to define
threshold).

::

import numpy as np
from scipy import ndimage
import mahotas
import pylab

img = mahotas.imread('test.jpeg')
T_otsu = mahotas.thresholding.otsu(img)
seeds,_ = ndimage.label(img > T_otsu)
labeled = mahotas.cwatershed(img.max() - img, seeds)

pylab.imshow(labeled)


Support
-------

*Website*: `http://luispedro.org/software/mahotas
<http://luispedro.org/software/mahotas>`_

*API Docs*: `http://packages.python.org/mahotas/
<http://packages.python.org/mahotas/>`_

*Mailing List*: Use the `pythonvision mailing list
<http://groups.google.com/group/pythonvision?pli=1>`_ for questions, bug
submissions, etc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mahotas-0.5.3.tar.gz (35.9 kB view details)

Uploaded Source

File details

Details for the file mahotas-0.5.3.tar.gz.

File metadata

  • Download URL: mahotas-0.5.3.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mahotas-0.5.3.tar.gz
Algorithm Hash digest
SHA256 2a6a52cb5dc507dc313504ad42fb65396d16b91ac5ce5481e9637d56d4c0dcae
MD5 3b55b0313524245dc0e065eb73766823
BLAKE2b-256 e88dcf59f4ee4b011dace949cc5aee5980fbd927dcc8dbcdb314bc4b571102b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page