intensity intensity Intensity Intensity intensity (Operator)
Name
intensity intensity Intensity Intensity intensity
— Calculate the mean and deviation of gray values.
Signature
def intensity (regions : HObject, image : HObject) -> Tuple[Sequence[float], Sequence[float]]
def intensity_s (regions : HObject, image : HObject) -> Tuple[float, float]
Description
The operator intensity intensity Intensity Intensity intensity
calculates the mean and the
deviation of the gray values in the input image within
Regions Regions Regions regions regions
. 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:
Attention
Note that the operator intensity intensity Intensity Intensity intensity
only considers
the given Regions Regions Regions regions regions
and ignores any previously set domain
of the input image Image Image Image image image
.
The calculation of 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.
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on tuple level.
Parameters
Regions Regions Regions regions regions
(input_object) region(-array) →
object HRegion HObject HObject Hobject
Regions in which the features are calculated.
Image Image Image image image
(input_object) singlechannelimage →
object HImage HObject HObject Hobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)
Gray value image.
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
(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).
Result
The operator intensity intensity Intensity Intensity intensity
returns the value 2 (
H_MSG_TRUE )
. The
behavior in case of empty input (no input images available) is set
via the operator
set_system(::'no_object_result',<Result>:) set_system("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>) set_system("empty_region_result",<Result>)
.
If necessary an exception is raised.
Possible Successors
threshold threshold Threshold Threshold threshold
Alternatives
select_gray select_gray SelectGray SelectGray select_gray
,
min_max_gray min_max_gray MinMaxGray MinMaxGray min_max_gray
See also
mean_image mean_image MeanImage MeanImage mean_image
,
gray_histo gray_histo GrayHisto GrayHisto gray_histo
,
gray_histo_abs gray_histo_abs GrayHistoAbs GrayHistoAbs gray_histo_abs
Module
Foundation