- 1、本文档共54页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
图像增强-灰度变换
灰度级的修正效果图 线性动态范围调整效果 非线性动态范围调整效果 * * * * * * * * * * * * * * (3) 的确定 由 可知,输出灰度级仅为5个级别: (4)计算对应每个 的 因为 映射到 ,所以有790个像素在输出输出图像上变成 * 映射到 ,所以有1023个像素取值 。 映射到 ,因此有850个像素取值 。 因为 和 都映射到 ,因此有656+329=985个像素取值 。 同理有245+122+81=488个像素变换 。 (5)计算 * (a) (b) (c) (d) ( a)和(b)分别是原始图像和其直方图 (c)和(d)分别是均衡化后图像和其直方图 直方图均衡化效果示例 : * imhist( I )imhist( I, n)imhist( X, map) 显示直方图MATLAB函数 imhist(I) : displays a histogram for the image I above a grayscale colorbar. The number of bins in the histogram is specified by the image type. If I is a grayscale image, imhist uses a default value of 256 bins. If I is a binary image, imhist uses two bins. imhist(I, n) : displays a histogram where n specifies the number of bins used in the histogram. n also specifies the length of the colorbar. If I is a binary image, n can only have the value 2. imhist(X, map) : displays a histogram for the indexed image X. This histogram shows the distribution of pixel values above a colorbar of the colormap map. The colormap must be at least as long as the largest index in X. The histogram has one bin for each entry in the colormap. * J = histeq(I, hgram)J = histeq(I, n)[J, T] = histeq(I,...)newmap = histeq(X, map, hgram)newmap = histeq(X, map) I = imread(tire.tif); J = histeq(I); imshow(I) figure, imshow(J) figure; imhist(I,64) figure; imhist(J,64) 直方图均衡化 Histogram Equalization * 【例4.2 】在MATLAB环境中,采用图像线性变换进行图像增强。 应用MATLAB的函数imadjust 将图像0.3×255~0.7×255灰度之间的值通过线性变换映射到0~255之间。 解:分别取:a=0.3×255,b=0.7×255, a=0,b=255。 * clear all; close all clc A=imread(pout.tif); %读入图像 imshow(A); %显示图像 figure, imhist(A); %显示图像的直方图 J1=imadjust(A,[0.3 0.7],[0,1 ]); %函数将图像在0.3*255~0.7*255灰度之间的值通
您可能关注的文档
最近下载
- (高清版)-B-T 4798.2-2021 环境条件分类 环境参数组分类及其严酷程度分级 第2部分:运输和装卸.pdf VIP
- 《插花与花艺设计》课件——项目四 礼仪插花.pptx VIP
- 《通信数据分析与实战》课件——第六章 Kafka 分布式发布订阅消息系统.pptx VIP
- GA∕T 1424-2017 法庭科学合成纤维物证检验 红外光谱法.pdf
- 大数据平台与编程第9章 分布式消息队列Kafka.pptx VIP
- 《学前儿童艺术教育》课程标准.docx VIP
- 卫生专业技术资格考试临床医学检验技术(中级379)基础知识强化训练精练试题解析.docx VIP
- 2025高考英语全国II卷试题分析及备考策略指导课件.pdf VIP
- 销售人员必备的素质.ppt
- 2025年机动车检测站授权签字人试题题库及参考答案(通用版).pptx
文档评论(0)