问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
function dr = Dice_Ratio(SEG, GT)
% SEG, GT are the binary segmentation and ground truth areas, respectively.
% dice ratio
dr = 2.*double(sum(uint8(SEG(:)>(:)./double(sum(uint8(SEG(:)+sum(uint8(GT(:);
end