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)

Recent Changes

For version 0.6

  • Improve Local Binary patterns (faster and better interface)

  • Much faster erode() (10x faster)

  • Faster dilate() (2x faster)

  • TAS for 3D images

  • Haralick for 3D images

Support

Website: http://luispedro.org/software/mahotas

API Docs: http://packages.python.org/mahotas/

Mailing List: Use the pythonvision mailing list 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.6.tar.gz (40.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for mahotas-0.6.tar.gz
Algorithm Hash digest
SHA256 6227d0b17d575e964b6744b053ed05943b1552a67f8e058cec87892fb4444e43
MD5 0f44882171cb150dc9b94fc4fc389620
BLAKE2b-256 ac661a56ceb4abd1890045115c2b3b7004daf56e88d1d9fbc24efa7e9cee63a7

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