脑地形图激活区域导向的图像相似性度量优化咨询
脑地形图激活区域相似性度量需求
待对比图像


这两张图为脑地形图,圆圈内的颜色代表观看电视时的激活区域。原始图激活区域位于左侧,重建图激活区域位于右侧,二者实际相似度较低,但当前采用的度量方式无法有效体现这种差异。
当前使用的度量方案
计算逻辑
ssim = scaled_ssim(original_image, reconstructed_image) # 取值范围0-1 mse = mean_squared_error(original_image, reconstructed_image) score = ssim / (mse + 1)
scaled_ssim函数定义
def scaled_ssim(original, reconstructed): original = normalize(original) reconstructed = normalize(reconstructed) score = ssim(original, reconstructed, data_range=1, channel_axis=-1) return (score + 1) / 2
测试结果
ssim on random test sample: 0.5712 mse on random test sample: 0.0004 score on random test sample: 0.5710
需求
现寻求可精准考量脑激活区域差异的图像相似性度量指标。
内容的提问来源于stack exchange,提问作者tail
相关产品推荐
相关产品推荐

