資源簡介
圖像處理的查準率和查全率的代碼,適合用于圖像圖像的檢測,目標的檢測的評估
代碼片段和文件信息
function?[recall?precision?rate]?=?recall_precision(Wtrue?Dhat)
%
%?Input:
%????Wtrue?=?true?neighbors?[Ntest?*?Ndataset]?can?be?a?full?matrix?NxN
%????Dhat??=?estimated?distances
%
%?Output:
%
%??????????????????exp.?#?of?good?pairs?inside?hamming?ball?of?radius?<=?(n-1)
%??precision(n)?=?--------------------------------------------------------------
%??????????????????exp.?#?of?total?pairs?inside?hamming?ball?of?radius?<=?(n-1)
%
%???????????????exp.?#?of?good?pairs?inside?hamming?ball?of?radius?<=?(n-1)
%??recall(n)?=?--------------------------------------------------------------
%??????????????????????????exp.?#?of?total?good?pairs?
?max_hamm?=?max(Dhat(:));?%將Dhat(:)按列拉成一個1維列向量,然后取最大值
hamm_thresh?=?min(3max_hamm);%比較3max_hamm,取兩者的最小值
[Ntest?Ntrain]?=?size
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2662??2013-09-14?10:27??recall_precision.m
- 上一篇:pca 經典主成分分析法
- 下一篇:matlab 傳統上
評論
共有 條評論