% Automate modified for 2019 Bundi FLIR ONE RGB images
% Automatically process the images in dir
% ASA Salgadoe, modified 31/05/2019
% this is extended from automate.m
% calls the function canopyPorosityBatch.m
% automating the thresolding to give porosity values
% iterate all the images in the dir with given threshould, sqC and sqR
% get the porosity values for each input and write an excel file
% loading the images
disp('start');
startT=fix(clock);
% filePath='C:\Users\asalgado\UNE_Cloud_sync\PhD work\Pilot Test 2_Bundy\Analysis\Matlab\Porosity Work\Batch_images\MobileCam\RGBsmall_selected\Batch1,2&3\';
filePath='C:\Users\asalgado\UNE_Cloud_sync\PhD work\Pilot Test 3_Bundy\Analysis\Mobile_original\img_Trees(noReff)\RGB_shade\ChooseSet2\3. re_selection\';