十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
一,使用函数imadjust
clc
clear
f=imread('乳房.png');
%生成负片
g1=imadjust(f,[0,1],[1,0]);
%将0.5到0.75之间的灰度扩展到0-1之间
g2=imadjust(f,[0.5,0.75],[0,1]);
%gamma=2时
g3=imadjust(f,[],[],2);
g4=imadjust(f,stretchlim(f),[1 0]);
%绘图
subplot(331),imshow(f)
title('原片')
subplot(332),imshow(g1)
title('负片')
subplot(333),imshow(g2)
title('0.5-0.75')
subplot(334),imshow(g3)
title('gamma=2')
subplot(335),imshow(g4)
title('增强负片')
运行结果
二,利用对数变换减小动态范围
h=imread('光点.png');
g5=im2uint8(mat2gray(log(1+double(h))));
subplot(1,2,1),imshow(h)
subplot(1,2,2),imshow(g5)
运行结果
三,
你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧