A = imread ('cameraman.tif');
B = imresize (A, 2);
C = imresize (A, 4);
D = imresize (A, 5.5);
E = imresize (A, 16);
brightA = A + 64;
darkA = A - 64;
figure;
subplot (1,3,1); imshow (brightA);
subplot (1,3,2); imshow (A);title ('256x256');
subplot (1,3,3); imshow (darkA);
brightB = B + 64;
darkB = B - 64;
figure;
subplot (1,3,1); imshow (brightB);
subplot (1,3,2); imshow (B);title ('512x512');
subplot (1,3,3); imshow (darkB);
brightC = C + 64;
darkC = C - 64;
figure;
subplot (1,3,1); imshow (brightC);
subplot (1,3,2); imshow (C);title ('1024x1024');
subplot (1,3,3); imshow (darkC);
brightD = D + 64;
darkD = D - 64;
figure;
subplot (1,3,1); imshow (brightD);
subplot (1,3,2); imshow (D);title ('1800x1400');
subplot (1,3,3); imshow (darkD);
brightE = E + 64;
darkE = E - 64;
figure;
subplot (1,3,1); imshow (brightE);
subplot (1,3,2); imshow (E);title ('4000x3000');
subplot (1,3,3); imshow (darkE);