资源简介
图像分割算法效果评价,具体包含Jaccard,Dice,rfp,rfn
代码片段和文件信息
function [JaccardDicerfprfn]=sevaluate(mo)
% gets label matrix for one tissue in segmented and ground truth
% and returns the similarity indices
% m is a tissue in gold truth
% o is the same tissue in segmented image
% rfp false pasitive ratio
% rfn false negative ratio
m=m(:);
o=o(:);
common=sum(m & o);
union=sum(m | o);
cm=sum(m); % the number of voxels in m
co=sum(o); % the number of voxels in o
Jaccard=common/union;
Dice=(2*common)/(cm+co);
rfp=(co-common)/cm;
rfn=(cm-common)/cm;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 513 2010-12-16 07:59 sevaluate.m
文件 1312 2014-02-12 13:20 license.txt
- 上一篇:红外温度测温成功mxl90614
- 下一篇:tm_0.6-2.zip
评论
共有 条评论