intensity intensity Intensity Intensity intensity (算子名称)
名称
intensity intensity Intensity Intensity intensity — Calculate the mean and deviation of gray values.
参数签名
def intensity (区域 : HObject, image : HObject) -> Tuple[Sequence[float], Sequence[float]]
def intensity_s (区域 : HObject, image : HObject) -> Tuple[float, float]
描述
该算子 intensity intensity Intensity Intensity Intensity intensity calculates the mean and the
deviation of the gray values in the input image within
区域 区域 区域 区域 区域 区域 . If R is a region, p a pixel from R with
the gray value g(p) and F the plane (F = |R|), the features
are defined by:
注意
Note that 该算子 intensity intensity Intensity Intensity Intensity intensity only considers
the given 区域 区域 区域 区域 区域 区域 and ignores any previously set domain
of the input image Image Image Image Image image image .
The calculation of Deviation Deviation Deviation Deviation deviation deviation does not follow the usual
definition if the region of the image contains only one pixel. In
this case 0.0 is returned.
运行信息
多线程类型:可重入(与非独占操作符并行运行)。
多线程作用域:全局(可以从任何线程调用)。
在元组级别自动并行化。
参数表
区域 区域 区域 区域 区域 区域 (input_object) region(-array) → object HRegion HObject HRegion Hobject
Regions in which the features are calculated.
Image Image Image Image image image (input_object) singlechannelimage → object HImage HObject HImage Hobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)
Gray value image.
Mean Mean Mean Mean mean mean (output_control) real(-array) → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Mean gray value of a region.
Deviation Deviation Deviation Deviation deviation deviation (output_control) real(-array) → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Deviation of gray values within a region.
Complexity
If F is the area of the region, the runtime complexity is
O(F).
结果
该算子 intensity intensity Intensity Intensity Intensity intensity 返回值 2 (
H_MSG_TRUE )
. The
behavior in case of empty input (no input images available) is set
via 该算子
set_system(::'no_object_result',<Result>:) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) set_system("no_object_result",<Result>) ,
the behavior in case of empty region is set via
set_system(::'empty_region_result',<Result>:) set_system("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) set_system("empty_region_result",<Result>) .
If necessary an exception is raised.
可能的后置算子
threshold threshold Threshold Threshold Threshold threshold
可替代算子
select_gray select_gray SelectGray SelectGray SelectGray select_gray ,
min_max_gray min_max_gray MinMaxGray MinMaxGray MinMaxGray min_max_gray
参考其它
mean_image mean_image MeanImage MeanImage MeanImage mean_image ,
gray_histo gray_histo GrayHisto GrayHisto GrayHisto gray_histo ,
gray_histo_abs gray_histo_abs GrayHistoAbs GrayHistoAbs GrayHistoAbs gray_histo_abs
模块
Foundation