Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Commit

Permalink
Use matplotlib instead of PIL for reading images
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Pedro Coelho committed Aug 5, 2010
1 parent 954c43d commit fb59c5b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pymorph/adpil.py
Expand Up @@ -64,11 +64,8 @@ def adread(imagefile):
arr: numpy array representing an image.
"""

import Image
img = findImageFile(imagefile)
arr = pil2array(Image.open(img))
return arr
from matplotlib import imread
return imread(imagefile)


def adwrite(imagefile, arr):
Expand Down

0 comments on commit fb59c5b

Please sign in to comment.