实验一:matlab简介与图像运算
imadd:
Z = imadd(X,Y) adds each element in array X to the corresponding
element in array Y and returns the sum in the corresponding element
of the output array Z. X and Y are real, nonsparse, numeric arrays
or logical arrays with the same size and class, or Y is a scalar
double. Z has the same size and class as X unless X is logical, in
which case Z is double.
Example 1
Add two images together:
I = imread('rice.png');
J = imread('cameraman.tif');
K = imadd(I,J);
figure, imshow(K)
Example 2
Add a constant to an image:
I = imread('rice.png');
Iplus50 = imadd(I,50);
figure, imshow(I), figure, imsh