MATLAB图像处理之图像增强实战三

这段代码展示了从‘paris.lan’文件中读取真彩色图像,并进行直方图显示、三维散点图、对比度调整和去相关拉伸等图像处理操作。最后,使用红外、红色和绿色生成CIR图像并进行去相关拉伸,以提升图像质量。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

truecolor = multibandread(‘paris.lan’, [512, 512, 7],…
‘uint8=>uint8’,128, ‘bil’, ‘ieee-le’, …
{‘Band’,‘Direct’,[3 2 1]});%生成真彩色多分辨率彩色图像
figure
imshow(truecolor);%显示真彩色图像
title(‘Truecolor Composite (Un-enhanced)’)
text(size(truecolor,2), size(truecolor,1) + 15,…
‘Image courtesy of Space Imaging, LLC’,…
‘FontSize’, 7, ‘HorizontalAlignment’, ‘right’)
figure; subplot(121)
imhist(truecolor(:,:,1))%显示红色分辨率下的直方图
title(‘Histogram of the Red Band (Band 3)’)
r = truecolor(:,:,1);%红色分量
g = truecolor(:,:,2);%绿色分量
b = truecolor(:,:,3);%蓝色分量
subplot(122); plot3(r(😃,g(😃,b(😃,’.’)%在三维空间中显示三种颜色的分量
grid(‘on’); xlabel(‘Red (Band 3)’); ylabel(‘Green (Band 2)’);
zlabel(‘Blue (Band 1)’) ;title(‘Scatterplot of the Visible Bands’)
stretched_truecolor = imadjust(truecolor,…
stretchlim(truecolor));%调整颜色对比度
figure
imshow(stretched_truecolor)%显示对比度调整后的图像
title(‘Truecolor Composite after Contrast Stretch’)
figure

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值