Scale an Image
We can scale the image by a double precision constant but keep the image stored as integers. For
example,
duller = 0.5 * street2; % Scale image with a double constant but create an integer
whos duller
Name
Size
Bytes Class
Attributes
duller
480x640x3
921600 uint8
subplot(1,2,1);
image(street2);
axis off equal tight
title('Original'); % Display image
subplot(1,2,2);
image(duller);
axis off equal tight
title('Duller');
% Display image
Integer Arithmetic
4-23
Précédent

- 167/1450

Suivant