数字图像处理——影像融合

数字图像处理——影像融合

1. Brovey变换

for k = 1:bands1
    for i = 1:lines2
        for j = 1:samples2
            Image3(i,j,k) = Image2(i,j,k)*Image1(i,j,k)/sum(Image1(i,j,:));
        end
    end
end
figure(1)
subplot(1,3,1);
imshow(uint8(Image1));
title('高光谱影像');
subplot(1,3,2);
imshow(uint8(Image2));
title('全色影像');
subplot(1,3,3);
imshow(uint8(Image3));
title('Brovey变换融合后的影像');

在这里插入图片描述

2.乘积变换

for k =1:bands1
    for i = 1:lines2
        for j = 1:samples2
            Image3(i,j,k) = Image1(i,j,k)*Image2(i,j,k);
        end
    end
end
Image3 = round((Image3 - min(Image3))*255./(max(Image3) - min(Image3)));
figure(2)
subplot(1,3,1);
imshow(uint8(Image1));
title('高光谱影像');
subplot(1,3,2);
imshow(uint8(Image2));
title('全色影像');
subplot(1,3,3);
imshow(uint8(Image3));
title('乘积变换融合后的影像');

在这里插入图片描述

3.PCA变换

AY = PCA(Image1);
A = cell2mat(AY(1));
Y = round(cell2mat(AY(2)));
YY = matching(Image2(:,:,1),reshape(Y(1,:),[lines1,samples1]));
Y(1,:) = reshape(YY,[1,lines2*samples2]);
X = double(uint8(inv(A)* Y));
for i = 1:bands1
Image3(:,:,i) = reshape(X(i,:),[lines1,samples1]);
end
figure(3);
subplot(1,3,1);
imshow(uint8(Image1));
title('高光谱影像');
subplot(1,3,2);
imshow(uint8(Image2));
title('全色影像');
subplot(1,3,3);
imshow(uint8(Image3));
title('PCA融合后的影像');

在这里插入图片描述

4.HSI变换

HSI = RGB2HSI(Image1);
max = max(max(HSI(:,:,3)));
min = min(min(HSI(:,:,3)));
HSI(:,:,3) = round(HSI(:,:,3));
I = matching(Image2(:,:,1),HSI(:,:,3));
% I = Image2(:,:,1);
HSI(:,:,3) = I;
Image3 =HSI2RGB(HSI);
figure(4)
subplot(1,3,1);
imshow(uint8(Image1));
title('高光谱影像');
subplot(1,3,2);
imshow(uint8(Image2));
title('全色影像');
subplot(1,3,3);
imshow(uint8(Image3));
title('HSI变换融合后的影像');

在这里插入图片描述

  • 3
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值