图片的加减乘除

%%%%加

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,[]);

 

上一篇:将8位的tif图片改为png图片


下一篇:Geoserver发布.tif后缀多级