Main Content

对比度调整

对比度调整、直方图均衡化、去相关性拉伸

对比度调整将图像强度值重新映射到数据类型的整个显示范围。对比度良好的图像有明显的黑白区别。

举例来说,左边的图像对比度差,强度值限于范围的中间部分。右边的图像具有更高的对比度,强度值覆盖整个强度范围 [0, 255]。在高对比度图像中,高光看起来更亮,阴影看起来更暗。

本节描述的函数主要应用于灰度图像。不过,其中一些函数也可应用于彩色图像。有关这些函数如何处理彩色图像的信息,请参阅各函数的参考页。

Image with poor contrast and narrow histogram versus image with high contrast and wide histogram.

函数

imadjust调整图像强度值或颜色图
imadjustnAdjust intensity values in N-D volumetric image
imcontrastAdjust Contrast tool
imsharpenSharpen image using unsharp masking
imflatfield2-D image flat-field correction
imlocalbrightenBrighten low-light image (自 R2019b 起)
imreducehazeReduce atmospheric haze
locallapfiltFast local Laplacian filtering of images
localcontrastEdge-aware local contrast manipulation of images
localtonemapRender HDR image for viewing while enhancing local contrast
histeq使用直方图均衡增强对比度
adapthisteq对比度受限的自适应直方图均衡化 (CLAHE)
imhistmatchAdjust histogram of 2-D image to match histogram of reference image
imhistmatchnAdjust histogram of N-D image to match histogram of reference image
decorrstretchApply decorrelation stretch to multichannel image
stretchlim查找图像对比度拉伸的限值
intlutConvert integer values using lookup table
imnoise向图像添加噪声

主题