entropy_gray entropy_gray EntropyGray EntropyGray entropy_gray (算子)
名称
entropy_gray entropy_gray EntropyGray EntropyGray entropy_gray — 确定图像的熵和各向异性。
签名
def entropy_gray (regions : HObject, image : HObject) -> Tuple[Sequence[float], Sequence[float]]
def entropy_gray_s (regions : HObject, image : HObject) -> Tuple[float, float]
描述
算子 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
注意
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 。
执行信息
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
在元组级别上自动并行化。
参数
Regions Regions Regions Regions regions regions (输入对象) region(-array) → object HRegion HObject HRegion Hobject
Regions where the features are to be determined.
Image Image Image Image image image (输入对象) singlechannelimage → object HImage HObject HImage Hobject (byte)
灰度值图像。
Entropy Entropy Entropy Entropy entropy entropy (输出控制) 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 (输出控制) real(-array) → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Measure of the symmetry of gray value distribution.
复杂度
If F is the area of the region the runtime complexity is O(F + 255).
结果
算子 entropy_gray entropy_gray EntropyGray EntropyGray EntropyGray entropy_gray 返回值 2 (
H_MSG_TRUE )
if an
image with defined gray values is entered and the parameters are
correct.当输入为空(无可用输入图像)时可设置行为通过算子 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>) 。如有必要,则抛出异常。
替代
select_gray select_gray SelectGray SelectGray SelectGray select_gray
另见
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
模块
基础