function imageSet = PerformPreProcessing(original, preprocessingType) % imageSet = PerformPreProcessing(original, preprocessingType). % This function performs pre-processing operations on the image set and % returns the filtered image set. % The following pre-processing types are handled % 1 - No pre-processing % 2 - Averaging the images along 3 images - (15 mins) % 3 - Averaging the images along 12 images - (1 Hour) % 4 - Getting the difference between consecutive frames % 5 - Getting the difference between consecutive hourly averages. % Author : Sasakthi Abeysinghe, Timothy Simpson % Date : 04/05/2006 disp('Pre-Processing images'); switch preprocessingType case 1 imageSet = original; case 2 imageSet = AverageImageSet(original, 3); case 3 imageSet = AverageImageSet(original, 12); case 4 imageSet = FrameDifferences(original); case 5 imageSet = FrameDifferences(AverageImageSet(original, 12)); end disp('Pre-processing complete');