资源简介
zw_u012395517-10466514-PR_curve.zip
代码片段和文件信息
clear all
clc
inpath_o = ‘.\SED2_FinalSaliencyMap\‘;%生成的显著图
dir_o = dir([inpath_o ‘*.png‘]);
inpath_m = ‘.\SED2_GT\‘;%GT图
dir_m = dir([inpath_m ‘*.png‘]);
reca = zeros(length(dir_o)255);
prec = zeros(length(dir_o)255);
for i = 1:length(dir_o)
oName = dir_o(i).name;
out = imread([inpath_o oName]);
mName = dir_m(i).name;
mark = imread([inpath_m mName]);
mark = mark(::1);
mark = mark/max(mark(:));
[r c k] = size(out);
label = imresize(mark[r c]);
label = reshape(label1r*c);
score = reshape(out1r*c);
for j = 1:256
thresh = j/256;
sco_th = im2bw(scorethresh);
TP = length(find((label == 1) & (sco_th == 1)));
FP = length(find((label == 0) & (sco_th == 1)));
FN = length(find((label == 1) & (sco_th == 0)));
reca(ij) = TP/(TP+FN);
prec(ij) = TP/(TP+FP);
end
count = i
end
X = sum(reca1)/length(dir_o);
Y = sum(prec1)/length(dir_o);
figure
plot(X1Y1‘r‘‘LineWidth‘1.5);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1077 2019-07-19 11:24 \u012395517-10466514-PR_curve.m
文件 36 2019-07-19 11:24 \no.txt
相关资源
- zw_wangxingse-6021953-24C04与1602LCD设计电子
- zw_sunyu0414-7795933-work.zip
- zw_qq_36780670-10758712-基于遗传算法的B
- zw_chaojp-2461295-组态王卸载工具.zip
- zw_changbiao1990-4066000-project.zip
- zw_123.zip
- zw_Source.zip
- zw_res_eva.zip
- zw_socket最简单.zip
- zw_计算机专业毕业设计论文(C)外文
- zw_高斯扩散模型.zip
- zw_CC2530模块电路原理图和PCB文件.zip
- zw_Code.zip130960
- zw_MCCLib.zip
- zw_linux0.11带注解源代码.zip
- zw_PhaseCorrelationRegistration.zip
- zw_上海交通大学《计算机网络》动画
- zw_麻省理工学院公开课:计算机科学
- zw_PlistView.zip
- zw_INGPS.zip
- BaiDu.exe
- 41695044Array-antenna-simulation.zip
- DaemonTool_10.6.0.283.rar
- CAD点坐标获取小工具.exe
- 2016年城市POI数据.rar
- zw_with-ReadWrite.zip
- zw_MOEA-NSGA-II.zip
- 878732zw_源程序.zip
- zw_贪吃蛇游戏毕业论文地址.zip
- zw_STM32定时器捕获PWM波以及占空比.z
评论
共有 条评论