% m10067_1.m % % ECE-1467 Data for a problem in Homework set 1 % % By Chuck DiMarzio % Northeastern University % January 2002 % [data,map]=imread('m10067_1.tif','tiff'); figure;plot(1:length(map),map,'.'); title('colormap'); xlabel('Data Value'); ylabel('Display Value (0-1)'); % % Zoom on the first % figure and notice that there are % 255 integer values for the greylevel in % the picture % The map shows that the 3 colors are all % mapped to the same values, because this is % a greyscale image. % % Now display the image for gamma=[1,2,.5,.25]; figure; imagesc(1:size(data,1),1:size(data,2),... ((double(data)/256).^gamma)*256); colormap('bone'); colorbar; title(strcat('Gamma = ',num2str(gamma))); end;