matlab histeq函数介绍
2017-04-23 12:41
1011 查看
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。
翻译的非常烂,以后还需多多努力,尽管非常多东西可以意会可是还是难以表达。
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。
翻译的非常烂,以后还需多多努力,尽管非常多东西可以意会可是还是难以表达。
相关文章推荐
- 查看Matlab内部函数代码二种方法介绍
- [matlab]分块函数blkproc和inline函数介绍
- Matlab中函数句柄@的作用及介绍
- MATLAB函数介绍
- matlab 中机器学习工具箱中分类器下介绍SVM新函数一个例子
- Matlab—寻找峰值函数介绍
- 转 matlab卷积函数介绍 conv filter conv2
- Matlab中函数句柄(function handle)的作用及介绍
- Matlab中函数句柄@的作用及介绍
- Matlab中函数句柄@的作用及介绍
- matlab函数句柄介绍
- Matlab中double,im2double,mat2gray函数使用方法介绍
- Matlab中函数句柄@的作用及介绍
- matlab 中atan2函数的介绍
- 【转】Matlab的HMM(隐马尔可夫模型)相关函数介绍
- Matlab中double,im2double,mat2gray函数使用方法介绍
- 根据MATLAB的histeq函数改写的运行在OpenCV下的直方图规定化
- 图像处理中矩形标记图像中某一块区域matlab中rectangle函数介绍
- 根据MATLAB的histeq函数改写的运行在OpenCV下的直方图规定化C源码!
- Matlab的常用函数及指令简单介绍