其他分享
首页 > 其他分享> > 图片的加减乘除

图片的加减乘除

作者:互联网

%%%%加

clear all
clc
A = imread('Noisy_image1.jpg');
B = imread('Noisy_image2.jpg');
C = imread('Noisy_image3.jpg');
D = imread('Noisy_image4.jpg');
E = imread('Noisy_image5.jpg');
F = imread('Noisy_image6.jpg');
G = imread('Noisy_image7.jpg');
H = imread('Noisy_image8.jpg');
I = imlincomb(1,A,1,B,1,C,1,D,1,E,1,F,1,G);   %%%该函数可以多个图像一起相加,()之中的数字代表线性组合的系数
figure(1),imshow(I,[]);

%%%减

clear all
clc
A = imread('Fig1.tif');
B = imread('Fig2.tif');
C = imsubtract(A,B);
figure(1),imshow(C,[]);
 

%%%乘

clear all
clc
A = imread('Fig1 C.tif');
B = imread('Fig2C.tif');
C = imdivide(A,B);
figure(1),imshow(C,[]);
%%%%除

clear all
clc
A =imread('Fig1CH.tif'); 
B = imread('Fig2CH.tif');
C = immultiply(A,B);
figure(1),imshow(C,[]);

 

标签:加减乘除,figure,imshow,jpg,imread,tif,Noisy,图片
来源: https://blog.csdn.net/qq_57813398/article/details/116892228