matlab histeq函数介绍

Histeq

       Enhance contrast using histogram equalization

       该函数通过直方图均衡化来增加对比度

Syntax

      J = histeq(I,hgram)

Description

      Histeq enhances the contrast of images by transforming the values in an intensity image, or the values in the colormap of an indexed image, so that the histogram of  the output image approximately matches a specified histogram.

      Histeq函数通过改变一副亮度图像灰度值或者一副索引图像的灰度值来增加图像的对比度,以达到输出图像的直方图近似于规定的直方图。

      J = histeq(I,hgram) transforms the intensity image I so that the histogram of the output intensity image J with length(hgram) bins approximately matches hgram. The

vector hgram should contain integer counts for equally spaced bins with intensity values in the appropriate range: [0, 1] for images of class double, [0, 255] for images

of class uint8, and [0, 65535] for images of class uint16. histeq automatically scales hgram so that sum(hgram) = prod(size(I)). The histogram of J will better match

hgram when length(hgram) is much smaller than the number of discrete levels in I.

    J = histeq(I,hgram)改变灰度图像以达到输出图像J的直方图接近于参数hgram(该参数为规定直方图)。向量hgram应该包含等区间的适当灰度值的数目(就是灰度区间,比如uint8图像,将256个灰度级化为32个区间,每个区间连续8个灰度级),灰度值的范围为:双精度图像灰度值范围为[0-1],unit8图像灰度值范围为[0-255],unit16图像的灰度值范围为[0-65535],histeq自动调整hgram以达到标准图像hgram的和等于原图像的像素数(也就是说两幅图像的像素数要相等,即将标准图像的像素数目调整的和原图像像素数目一样),当规定直方图J的长度比原图像I的灰度级数目小时,J的直方图将会更好的匹配规定直方图hgram

       翻译的很烂,以后还需多多努力,虽然很多东西能够意会但是还是难以表达。

  • 10
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值