gray_histo_abs — 计算灰度值分布。
gray_histo_abs(Regions, Image : : Quantization : AbsoluteHisto)
算子 gray_histo_abs calculates for the image
(Image) within Regions the absolute
(AbsoluteHisto) ) histogram of the gray values.
The parameter Quantization defines, how many frequencies of
neighbored gray values are added for one frequency value. The resulting
histogram AbsoluteHisto is a tuple, whose indices are mapped on the
gray values of the input image Image and whose elements contain the
frequencies of the gray values. The indices i of the frequency value
are calculated from the gray values g and the quantization q as follows:
For unsigned image types:
For signed image types:
whereas MIN denotes the minimal gray value, e.g., -128 for an int1 image type. Therefore, the size of the tuple results from the ratio of the full domain of gray values and the quantization, e.g., for images of int2 in . The origin gray value of the signed image types int1 resp. int2 is mapped on the index 128 resp. 32768, negative resp. positive gray values have smaller resp. greater indices.
Note that the operator gray_histo_abs only considers
the given Regions and ignores any previously set domain
of the input image Image。
Regions (输入对象) region(-array) → object
Region in which the histogram is to be calculated.
Image (输入对象) singlechannelimage → object (byte / cyclic / direction / int1 / int2 / uint2)
Image the gray value distribution of which is to be calculated.
Quantization (输入控制) number → (real / integer)
Quantization of the gray values.
默认值: 1.0
建议值: 1.0, 2.0, 3.0, 5.0, 10.0
限制:
Quantization >= 1.0
AbsoluteHisto (输出控制) histogram-array → (integer)
Absolute frequencies of the gray values.
算子 gray_histo_abs 返回值 2 (
H_MSG_TRUE)
if the image
has defined gray values and the parameters are correct.当输入为空(无可用输入图像)时可设置行为通过算子 set_system(::'no_object_result',<Result>:), the behavior
in case of empty region is set via
set_system(::'empty_region_result',<Result>:)。如有必要,则抛出异常。
histo_to_thresh,
gen_region_histo
min_max_gray,
intensity,
gray_histo,
gray_histo_range
disp_image,
histo_2dim,
scale_image_max,
entropy_gray
基础