例如我有:
X = [[1,2,3],[4,5,6]]
Y = [[1,4,7],[5,5,1]]
a=np.array(X)
grayA=(a-np.amin(a))/(np.amax(a)-np.amin(a))
b=np.array(Y)
grayB=(b-np.amin(b))/(np.amax(b)-np.amin(b))
但是,当我这样做时
compare_ssim(grayA, grayB)
我得到错误
ValueError: win_size exceeds image extent. If the input is a multichannel (color) image, set multichannel=True.
我试过了
compare_ssim(grayA, grayB, multichannel = True)
但我仍然遇到同样的错误。