Home > detect > WBCreg.m

WBCreg

PURPOSE ^

SYNOPSIS ^

function WBCreg(dataFolder,remote)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function WBCreg(dataFolder,remote)
0002 
0003 if (remote==0)
0004     iPath = 'C:\Research\DataSets\LILLYwbcrollingapc\';
0005 else
0006     iPath = '/v1/rich/DataSets/LILLYwbcrollingapc/';
0007 end
0008 
0009 iFolder = strcat(iPath,dataFolder)
0010 
0011 prefix = dataFolder;
0012 
0013 
0014 cd(iFolder);
0015 try
0016     iString = strcat('MN/',dataFolder,'001.mn.png');
0017     bg =  imread(iString);
0018 
0019 catch
0020     disp('Applying Motion Normalization...');
0021     list = dir('*.bmp');
0022     nFiles = length(list);
0023     % Run the Motion Normalization code
0024     WBCmn(prefix,001,nFiles,3,1);
0025     disp('...Done');
0026 end
0027 
0028 % create background
0029 try
0030     cd(iFolder);
0031     bg = imread('BG.png');
0032 catch
0033     bg = WBCbg(iFolder);
0034     disp('...Done BG');
0035 end
0036 
0037 end

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