|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
def getSimilar(self, g) -> float:
ssim = structural_similarity(np.array(self.orignal_img), np.array(g), multichannel=True)
return ssim
def get_antibody_similar(self, g1, g2):
ssim = structural_similarity(np.array(g1), np.array(g2), multichannel=True)
return ssim
返回
D:\python\Genetic-3.py:60: FutureWarning: `multichannel` is a deprecated argument name for `structural_similarity`. It will be removed in version 1.0. Please use `channel_axis` instead.
ssim = structural_similarity(np.array(g1), np.array(g2), multichannel=True)
D:\python\Genetic-3.py:56: FutureWarning: `multichannel` is a deprecated argument name for `structural_similarity`. It will be removed in version 1.0. Please use `channel_axis` instead.
ssim = structural_similarity(np.array(self.orignal_img), np.array(g), multichannel=True)
|
|