Friday, September 30, 2011

Batch processing | Steve on Image Processing

Batch processing | Steve on Image Processing: "files = dir('*.JPG');
for k = 1:numel(files)
rgb = imread(files(k).name);
rgb = rgb(1:1800, 520:2000, :);
rgb = imresize(rgb, 0.2, 'bicubic');
imwrite(rgb, ['cropped\' files(k).name]);
end"