本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。

对比度调整

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

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

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

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

函数

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
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
stretchlimFind limits to contrast stretch image
intlutConvert integer values using lookup table
imnoiseAdd noise to image

主题

Gamma Correction

Gamma correction enables nonlinear mapping of intensity values during contrast adjustment.

Interactive Contrast Adjustment

The Adjust Contrast tool in Image Viewer app enables interactive contrast and brightness adjustment.

Adjust Image Contrast in Image Viewer App

You can adjust image contrast by manipulating the histogram of intensity values or by setting the window and level.

Specify Contrast Adjustment Limits

You can specify the range of the input and output values. Optionally, you can set the range automatically based on a histogram of the image.

Adjust Image Intensity Values to Specified Range

This example shows how to increase the contrast in a grayscale image by remapping the data values to fill the entire available intensity range [0, 255].

直方图均衡化

直方图均衡化通过将输出图像的直方图映射到指定的直方图来自动调整图像强度。

Adaptive Histogram Equalization

Adaptive histogram equalization adjusts image intensity in small regions in the image.

Enhance Color Separation Using Decorrelation Stretching

Decorrelation stretching enhances the color separation of an image to improve visual interpretation and make feature discrimination easier.

特色示例