From 5da33c099e625d4c89d603b5c3e6d4d7f8337059 Mon Sep 17 00:00:00 2001 From: alireza <137137312+alirezas9@users.noreply.github.com> Date: Tue, 18 Jul 2023 15:04:58 +0330 Subject: [PATCH] Update compute.py change imread (ndimage.imread is deprecated) --- cpbd/compute.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)