clear


%%%%%%%%%%%%
% Read the sensor map; all in grayscale.

sens=double(rgb2gray(imread('sensors_all.png')))/256;


%%%%%%%%%%%%
% Make data: image patches


makesens(sens, [60 400], [60 -20], 50, 10, 'data/50', 'ROAD');
makesens(sens, [450 700], [-20 -25], 50, 10, 'data/50', 'BLDG');
makesens(sens, [120 70], [50 -5], 50, 10, 'data/50', 'PARK');
makesens(sens, [500 350], [-30 10], 50, 10, 'data/50', 'TREES');
makesens(sens, [250 20], [10 75], 50, 10, 'data/50', 'ALL');

makesens(sens, [60 400], [60 -20], 100, 10, 'data/100', 'ROAD');
makesens(sens, [450 700], [-20 -25], 100, 10, 'data/100', 'BLDG');
makesens(sens, [120 70], [50 -5], 100, 10, 'data/100', 'PARK');
makesens(sens, [500 350], [-30 10], 100, 10, 'data/100', 'TREES');
makesens(sens, [250 20], [10 75], 100, 10, 'data/100', 'ALL');


