ction lowhigh = stretchlim(varargin)
%STRETCHLIM Find limits to contrast stretch an image.
% LOW_HIGH = STRETCHLIM(I,TOL) returns a pair of intensities that can be
% used by IMADJUST to increase the contrast of an image.
%
% TOL = [LOW_FRACT HIGH_FRACT] specifies the fraction of the image to
% saturate at low and high intensities.
%
% If TOL is a scalar, TOL = LOW_FRACT, and HIGH_FRACT = 1 - LOW_FRACT,
% which saturates equal fractions at low and high intensities.
%
% If you omit the argument, TOL defaults to [0.01 0.99], saturating 2%.
%
% If TOL = 0, LOW_HIGH = [min(I(:)) max(I(:))].
%
% LOW_HIGH = STRETCHLIM(RGB,TOL) returns a 2-by-3 matrix of intensity
% pairs to saturate each plane of the RGB image. TOL specifies the same
% fractions of saturation for each plane.
%
% Class Support
% -------------
% The input image can be of class uint8, uint16, or double. The output
% intensities are of class double and have values b
matlab的stretchlim函数
最新推荐文章于 2022-09-16 16:54:00 发布
stretchlim函数用于寻找图像对比度拉伸的限制值,以增加图像的对比度。该函数根据输入参数容忍度TOL来确定饱和图像的低亮和高亮部分。默认情况下,TOL=[0.01 0.99],将2%的图像像素饱和。对于RGB图像,该函数会对每个颜色通道应用相同的饱和度。通过与imadjust函数结合使用,可以有效调整图像的亮度和对比度。

最低0.47元/天 解锁文章
4366

被折叠的 条评论
为什么被折叠?



