Fix ImportError on Python 3

This commit is contained in:
cgohlke
2011-10-11 17:12:06 -07:00
parent f332b177fb
commit fb66138f9e
+1 -1
View File
@@ -68,7 +68,7 @@ def greyscale_dilate(image, selem, out=None):
if image is out:
raise NotImplementedError("In-place dilation not supported!")
try:
import cmorph
from . import cmorph
out = cmorph.dilate(image, selem, out=out)
return out;
except ImportError: