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
0024 WBCmn(prefix,001,nFiles,3,1);
0025 disp('...Done');
0026 end
0027
0028
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