entropy_gray entropy_gray EntropyGray EntropyGray entropy_gray (Operator)
Name
entropy_gray entropy_gray EntropyGray EntropyGray entropy_gray
— Determine the entropy and anisotropy of images.
Signature
def entropy_gray (regions : HObject, image : HObject) -> Tuple[Sequence[float], Sequence[float]]
def entropy_gray_s (regions : HObject, image : HObject) -> Tuple[float, float]
Description
The operator entropy_gray entropy_gray EntropyGray EntropyGray EntropyGray entropy_gray
creates the histogram of
relative frequencies of the gray values in the input image and
calculates from these frequencies the entropy and the anisotropy
coefficient for each region from Regions Regions Regions Regions regions regions
according to the
following formulae:
Entropy:
Anisotropiy coefficient:
where
rel[i] histogram of relative gray value frequencies
i Gray value of input image (0..255)
and k Smallest possible gray value with sum(rel[i]) >= 0.5
Attention
Note that the operator entropy_gray entropy_gray EntropyGray EntropyGray EntropyGray entropy_gray
only considers
the given Regions Regions Regions Regions regions regions
and ignores any previously set domain
of the input image Image Image Image Image image image
.
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 regions
(input_object) region(-array) →
object HRegion HObject HRegion Hobject
Regions where the features are to be determined.
Image Image Image Image image image
(input_object) singlechannelimage →
object HImage HObject HImage Hobject (byte)
Gray value image.
Entropy Entropy Entropy Entropy entropy entropy
(output_control) real(-array) →
HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Information content (entropy) of the gray values.
Assertion:
0 <= Entropy && Entropy <= 8
Anisotropy Anisotropy Anisotropy Anisotropy anisotropy anisotropy
(output_control) real(-array) →
HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Measure of the symmetry of gray value distribution.
Complexity
If F is the area of the region the runtime complexity is O(F + 255).
Result
The operator entropy_gray entropy_gray EntropyGray EntropyGray EntropyGray entropy_gray
returns the value 2 (
H_MSG_TRUE )
if an
image with defined gray values is entered and the parameters are
correct. 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>) 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.
Alternatives
select_gray select_gray SelectGray SelectGray SelectGray select_gray
See also
entropy_image entropy_image EntropyImage EntropyImage EntropyImage entropy_image
,
gray_histo gray_histo GrayHisto GrayHisto GrayHisto gray_histo
,
gray_histo_abs gray_histo_abs GrayHistoAbs GrayHistoAbs GrayHistoAbs gray_histo_abs
,
fuzzy_entropy fuzzy_entropy FuzzyEntropy FuzzyEntropy FuzzyEntropy fuzzy_entropy
,
fuzzy_perimeter fuzzy_perimeter FuzzyPerimeter FuzzyPerimeter FuzzyPerimeter fuzzy_perimeter
Module
Foundation