https://www.codeleading.com/article/31721058116/
from sklearn import metrics as mr
from scipy.misc import imread
img2 = np.resize(img2, (img1.shape[0], img1.shape[1], img1.shape[2]))
img1 = np.reshape(img1, -1)
img2 = np.reshape(img2, -1)
mutual_infor = mr.mutual_info_score(img1, img2)
https://vimsky.com/zh-tw/examples/detail/python-method-sklearn.metrics.mutual_info_score.html
 
沒有留言:
張貼留言