Home > helper > temp.m

temp

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 load _param/_report;
0002 load _param/_iFolders;
0003 P = initParam();
0004 
0005 for i = 1: 6
0006     frames = unique(SS(i).GT.frames(:,1));
0007     rmScore = zeros(0,1);
0008     for fr = 1: length(frames)
0009         clc; disp(['Processing dataset: ',iFolders(i).Name,' frame: ',num2str(fr),'...']);
0010         frame = frames(fr);
0011         
0012         % get image
0013         imName = get_im_name(iFolders(i).Name,frame, P.EXTENSION);
0014         imPath = strcat(P.IPATH,'/',iFolders(i).Name,'/MN/',imName);
0015         im = imread(imPath);
0016         
0017         % get GT positions
0018         gtPosition   = SS(i).GT.frames(SS(i).GT.frames(:,1)==frame,:);
0019         
0020         % get radial mean confidence Image
0021         imConfidence = radial_mean(im,P.KERNEL_SIZE);
0022         
0023         score = zeros(1,size(gtPosition,1));
0024         for nPos = 1: size(gtPosition,1)
0025            col = gtPosition(nPos,2);
0026            row = gtPosition(nPos,3);
0027            score(nPos) = imConfidence(row,col);
0028         end
0029         
0030         rmScore = [rmScore score];
0031     end
0032     SS(i).GT.rmScore = vertcat(frames, rmScore);
0033 end
0034 
0035 save _param/_report SS;

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