Home > analysis > WBCexperiment_3.m

WBCexperiment_3

PURPOSE ^

% SETUP

SYNOPSIS ^

function [TPR PPV] = WBCexperiment_3()

DESCRIPTION ^

% SETUP

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [TPR PPV] = WBCexperiment_3()
0002 %% SETUP
0003 tic;
0004 P = initParam('wbc');
0005 % load _param/_wbc;
0006 wbc.experiment(1).name = 'AdaBoost Base line';
0007 mapper = BCMapper(P.IFOLDERS);
0008 %% RUN DETECTION
0009 for seq = 1: length(P.IFOLDERS)
0010     fprintf('\nAnalyzing at sequence %s', P.IFOLDERS(seq).Name);
0011     for exp = 1: length(wbc.experiment)
0012         wbc.experiment(exp).sequence(seq).name = P.IFOLDERS(seq).Name;
0013         wbc.experiment(exp).sequence(seq).frames = [];
0014     end
0015     for subSeq = 1: size(P.IFOLDERS(seq).Ra,1)        
0016         frStart = P.IFOLDERS(seq).Ra(subSeq,1);
0017         frEnd   = P.IFOLDERS(seq).Ra(subSeq,2);
0018         for fr = frStart: frEnd                        
0019             bwAdb = mapper.read(seq,'DT',fr);
0020             cells  = labelcell(bwAdb , fr, P.THR_SIZE);
0021             wbc.experiment(end).sequence(seq).frames = [wbc.experiment(end).sequence(seq).frames; cells];
0022         end
0023     end    
0024     % SAVE frames
0025 %     frames = struct2frames(wbc.experiment(end).sequence(seq), P.IFOLDERS(seq).Direction);
0026 %     framesFilename = strcat(P.IFOLDERS(seq).Name,'/_frames.mat');
0027 %     save(framesFilename,'frames');
0028     % SAVE frame_list
0029 %     frame_list = convertFrame2Framelist(frames);
0030 %     frame_list_filename = strcat(P.IFOLDERS(seq).Name,'/_frame_list.mat');
0031 %     save(frame_list_filename,'frame_list');
0032 end
0033 
0034 
0035 %% RUN ANALYSIS
0036 % first load GT file
0037 load _param/_report
0038 [TPR PPV] = WBCanalysis_3(wbc,SS);
0039

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