資源簡介
改代碼用于評估曲線CMC的繪制。
代碼片段和文件信息
function?cms?=?EvalCMC(?score?galLabels?probLabels?numRanks?)
%%?cms?=?EvalCMC(?score?galLabels?probLabels?numRanks?)
%?
%?A?function?for?the?CMC?curve?evaluation.
%?
%?Inputs:
%?????score:?score?matrix?with?rows?corresponding?to?gallery?and?columns?probe.
%?????galLabels:?a?vector?containing?class?labels?of?each?gallery?sample
%???????????corresponding?to?rows?of?the?score?matrix.
%?????probLabels:?a?vector?containing?class?labels?of?each?probe?sample
%???????????corresponding?to?columns?of?the?score?matrix.
%?????numRanks:?the?maximal?number?of?the?matching?ranks.?Optional.
%?
%?Outputs:
%?????cms:?the?cumulative?matching?scores.
%?
%?Version:?1.0
%?Date:?2014-07-22
%
%?Author:?Shengcai?Liao
%?Institute:?National?Laboratory?of?Pattern?Recognition
%???Institute?of?Automation?Chinese?Academy?of?Sciences
%?Email:?scliao@nlpr.ia.ac.cn
%%?preprocess
if?nargin?>=?4
????numRanks?=?min(100?min(size(score)));
end
if?~iscolumn(galLabels)
????galLabels?=?galLabels‘;
end
if?~isrow
- 上一篇:siltp 紋理特征提取代碼 matlab
- 下一篇:PMSM的matlab仿真
評論
共有 條評論