diff --git a/cpbd/compute.py b/cpbd/compute.py index ea94096..19d49f6 100644 --- a/cpbd/compute.py +++ b/cpbd/compute.py @@ -11,9 +11,10 @@ from sys import argv import numpy as np -from scipy.ndimage import imread -from skimage.feature import canny +from matplotlib.pyplot import imread + +from skimage.feature import canny from cpbd.octave import sobel @@ -33,7 +34,6 @@ def compute(image): # type: (numpy.ndarray) -> float """Compute the sharpness metric for the given data.""" - # convert the image to double for further processing image = image.astype(np.float64)