Getting Mahotas on Windows to run

Stéfan van der Walt stefan at sun.ac.za
Thu Feb 2 17:19:54 EST 2012


Hi Thomas

Welcome to the scikits-image mailing list.

On Thu, Feb 2, 2012 at 12:54 PM, thomash <thomas.haslwanter at gmail.com> wrote:
> I am fairly new to image processing in Python, and have a bugger of a
> time getting Mahotas to run on my Windows machine. (Win7, 32bit,
> Python 2.7).

The best place to ask Mahotas questions would be on the PythonVision
mailing list, where Luis is active:

http://groups.google.com/group/pythonvision

> My main problem seems to be related to freeimage, and I am wondering
> if any of you got it running under Windows?

You can also use FreeImage via scikits-image, so please try that as
well and let us know:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.image

The code snippet you need is:

import skimage.io as sio
sio.use('freeimage')

img = sio.imread('/path/to/image.jpg')
sio.imshow(img)

Regards
Stéfan



More information about the scikit-image mailing list