使用python计算两张图片的dice指数 import cv2 import os import numpy as np def dice(x,y): s2 = cv2.imread(x, 0)# 模板 row, col = s2.shape[