我收到以下警告信息:...\anaconda3\lib\site-packages\ipykernel_launcher.py:1:
DeprecationWarning: `imresize` is deprecated!
`imresize` is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
Use ``skimage.transform.resize`` instead.
"""Entry point for launching an IPython kernel.
当我跑的时候
^{pr2}$
我不确定我使用的是Scipy的哪个版本。在
这是我正在运行的代码:from skimage.transform import resize
import numpy as np
import imageio
image1 = imageio.imread("168_Left_Rio_Grande_Flooding_md.jpg")
image2 = imageio.imread("168_Right_Rio_Grande_Flooding_md.jpg")
new_size = np.asarray(image1.shape) / 5
new_size = new_size.astype(int) * 5
image1 = imresize(image1, (new_size)).astype(np.int16)
image2 = imresize(image2, (new_size)).astype(np.int16)
我希望能够计算出image1和image2之间的差异。image1是陆地图像,impage2是几年后的陆地图像。因此,差分图像将使得与土地变化相关联的像素的值将具有与与未改变区域相关联的像素的值显著不同的值。在diff_image = abs(image1 - image2)