%% performance graphics
clc; clear all; close all


P(1,:)=[73.2 4.7100E-05];
P(2,:)=[76.7 7.0971E-05];
P(3,:)=[80.4 1.1413E-04];
P(4,:)=[82.3 1.8083E-04];
P(5,:)=[83.6 2.6440E-04];
P(6,:)=[87.2 4.2674E-04];
P(7,:)=[88.3 6.4392E-04];
P(8,:)=[90.4 9.7547E-04];
P(9,:)=[91.2 1.5000E-03];


figure(1); semilogx(P(:,2),P(:,1));

axis tight;
grid on; 
title('Detector Performance');

xlabel('False Positives per Window')
ylabel('Detection rate %')
hold on;

P2(1,:)=[69.5 4.5845E-5];
P2(2,:)=[73.2 7.4235E-05];
P2(3,:)=[78 1.2187E-04];
P2(4,:)=[81.3 1.9758E-04];
P2(5,:)=[84.1 3.1440E-04];
P2(6,:)=[86.2 4.9241E-04];
P2(7,:)=[89.2 7.8094E-04];
P2(8,:)=[90.2 0.0012];

h2=semilogx(P2(:,2),P2(:,1));
set(h2,'color',[1 0 0]);

legend('15000 features detector','10000 features detector');
h=line([1E-4 1E-4],[0 100]);
set(h,'color',[0 0 0]);

hold off