Home > analysis > fnF_vs_fpF.m

fnF_vs_fpF

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 load _param/_wbc;
0002 P = initParam('wbc');
0003 
0004 %% Get FP - F category
0005 fid = fopen('_sample/WBC_FP_PROBLEMS.txt');
0006 C = textscan(fid,'%u %s');
0007 headers = {'id','type'};
0008 S = cell2struct(C,headers,2);
0009 fpInd = S.id(char(S.type)=='U');
0010 FP = wbc.experiment.FP(fpInd,:);
0011 
0012 %% Get FN - F category
0013 fid = fopen('_sample/WBC_FN_PROBLEMS.txt');
0014 C = textscan(fid,'%u %s');
0015 headers = {'id','type'};
0016 S = cell2struct(C,headers,2);
0017 fnInd = S.id(char(S.type)=='U');
0018 FN = wbc.experiment.FN(fnInd,:);
0019 
0020 
0021 %% PROCESSING
0022  % Loop each folder
0023     for seq = 1: length(wbc.experiment.sequence)
0024         % Loop each sub sequence
0025         for s = 1: size(P.IFOLDERS(seq).Ra,1)
0026             % Loop through each frame in a sub sequence
0027             frStart = P.IFOLDERS(seq).Ra(s,1);
0028             frEnd   = P.IFOLDERS(seq).Ra(s,2);
0029             for fr = frStart: frEnd
0030                 %% PLOT FN WITH CATEGORY
0031                 fn = FN(FN(:,1)==seq & FN(:,2)==fr,:);            
0032                 plotfigure(P.IFOLDERS(seq).Name,fr,'.mn.png', fn , 'FN_U','y');
0033                 
0034                 fp = FP(FP(:,1)==seq & FP(:,2)==fr,:);              
0035                 plotfigure(P.IFOLDERS(seq).Name,fr,'.mn.png', fp , 'FP_U','r');
0036                 
0037             end
0038         end
0039     end

Generated on Thu 17-Mar-2011 14:45:51 by m2html © 2005