scale_image_maxscale_image_maxScaleImageMaxScaleImageMaxscale_image_max (算子)
名称
scale_image_maxscale_image_maxScaleImageMaxScaleImageMaxscale_image_max — 在 0 到 255 的值范围内扩展的最大灰度值。
签名
def scale_image_max(image: HObject) -> HObject
描述
算子 scale_image_maxscale_image_maxScaleImageMaxScaleImageMaxScaleImageMaxscale_image_max calculates the minimum and
maximum and scales the image to the maximum value range of a byte image.
This way the dynamics (value range) is fully exploited.
The number of different gray scales does not change,
but in general the visual impression is enhanced.
The gray values of images of the 'real'"real""real""real""real""real", 'int2'"int2""int2""int2""int2""int2",
'uint2'"uint2""uint2""uint2""uint2""uint2", 'int4'"int4""int4""int4""int4""int4", and 'int8'"int8""int8""int8""int8""int8" type
are scaled to the range 0 to 255
and returned as 'byte'"byte""byte""byte""byte""byte" images.
注意
The output always is an image of the type 'byte'"byte""byte""byte""byte""byte".
请注意,若使用域缩减后的图像作为输入,滤波器算子可能会返回意外结果。请参阅 滤波器 一章
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 在元组级别上自动并行化。
- 在通道级别上自动并行化。
参数
ImageImageImageImageimageimage (输入对象) (multichannel-)image(-array) → objectHImageHObjectHImageHobject (byte / int2 / uint2 / int4 / int8 / real)
Image to be scaled.
ImageScaleMaxImageScaleMaxImageScaleMaxImageScaleMaximageScaleMaximage_scale_max (输出对象) image(-array) → objectHImageHObjectHImageHobject * (byte)
contrast enhanced image.
可能的后继
disp_imagedisp_imageDispImageDispImageDispImagedisp_image
替代
equ_histo_imageequ_histo_imageEquHistoImageEquHistoImageEquHistoImageequ_histo_image,
equ_histo_image_rectequ_histo_image_rectEquHistoImageRectEquHistoImageRectEquHistoImageRectequ_histo_image_rect,
scale_imagescale_imageScaleImageScaleImageScaleImagescale_image,
illuminateilluminateIlluminateIlluminateIlluminateilluminate,
convert_image_typeconvert_image_typeConvertImageTypeConvertImageTypeConvertImageTypeconvert_image_type
另见
min_max_graymin_max_grayMinMaxGrayMinMaxGrayMinMaxGraymin_max_gray,
gray_histogray_histoGrayHistoGrayHistoGrayHistogray_histo
模块
基础