forked from glisanti/KCCAReId
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plotCMCcurve.m
34 lines (29 loc) · 1.05 KB
/
plotCMCcurve.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% (c) Copyright 2013-14 MICC - Media Integration and Communication Center,
% University of Florence. Giuseppe Lisanti <[email protected]> and
% Iacopo Masi <[email protected]>.
%
% plotCMCcurve(cmc,color,marker,stringTitle)
%
% The function plots the CMC curve associated wit the result.
%
% Input
%
% cmc: the cmc curve
% color: the color of the curve
% stringTitle: the title for this figure
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function plotCMCcurve(cmc,color,marker,stringTitle)
set(gca,'FontSize',20,'FontName','Times');
recorateY = cmc(:,2)./cmc(:,3);
rankscoreX = cmc(:,1);
plot(rankscoreX, recorateY.*100. ,[color ' ' marker '-'], ...
'Linewidth',4, 'MarkerSize', 7);% 'MarkerFaceColor',color);
title(['CMC - ' stringTitle],'FontSize',20,...
'FontName','Times');
% Create xlabel
xlabel('Rank Score','FontSize',20,'FontName','Times');
% Create ylabel
ylabel('Recognition Rate','FontSize',20,'FontName','Times');
grid on;
end