entropy_grayentropy_grayEntropyGrayEntropyGrayentropy_gray (算子名称)

名称

entropy_grayentropy_grayEntropyGrayEntropyGrayentropy_gray — Determine the entropy and anisotropy of images.

参数签名

entropy_gray(区域, Image : : : Entropy, Anisotropy)

Herror entropy_gray(const Hobject 区域, const Hobject Image, double* Entropy, double* Anisotropy)

Herror T_entropy_gray(const Hobject 区域, const Hobject Image, Htuple* Entropy, Htuple* Anisotropy)

void EntropyGray(const HObject& 区域, const HObject& Image, HTuple* Entropy, HTuple* Anisotropy)

HTuple HImage::EntropyGray(const HRegion& 区域, HTuple* Anisotropy) const

double HImage::EntropyGray(const HRegion& 区域, double* Anisotropy) const

HTuple HRegion::EntropyGray(const HImage& Image, HTuple* Anisotropy) const

double HRegion::EntropyGray(const HImage& Image, double* Anisotropy) const

static void HOperatorSet.EntropyGray(HObject 区域, HObject image, out HTuple entropy, out HTuple anisotropy)

HTuple HImage.EntropyGray(HRegion 区域, out HTuple anisotropy)

double HImage.EntropyGray(HRegion 区域, out double anisotropy)

HTuple HRegion.EntropyGray(HImage image, out HTuple anisotropy)

double HRegion.EntropyGray(HImage image, out double anisotropy)

def entropy_gray(区域: HObject, image: HObject) -> Tuple[Sequence[float], Sequence[float]]

def entropy_gray_s(区域: HObject, image: HObject) -> Tuple[float, float]

描述

该算子 entropy_grayentropy_grayEntropyGrayEntropyGrayEntropyGrayentropy_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 区域区域区域区域区域区域 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 该算子 entropy_grayentropy_grayEntropyGrayEntropyGrayEntropyGrayentropy_gray only considers the given 区域区域区域区域区域区域 and ignores any previously set domain of the input image ImageImageImageImageimageimage.

运行信息

参数表

区域区域区域区域区域区域 (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Regions where the features are to be determined.

ImageImageImageImageimageimage (input_object)  singlechannelimage objectHImageHObjectHImageHobject (byte)

Gray value image.

EntropyEntropyEntropyEntropyentropyentropy (output_control)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Information content (entropy) of the gray values.

Assertion: 0 <= Entropy && Entropy <= 8

AnisotropyAnisotropyAnisotropyAnisotropyanisotropyanisotropy (output_control)  real(-array) HTupleSequence[float]HTupleHtuple (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).

结果

该算子 entropy_grayentropy_grayEntropyGrayEntropyGrayEntropyGrayentropy_gray 返回值 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 该算子 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.

可替代算子

select_grayselect_graySelectGraySelectGraySelectGrayselect_gray

参考其它

entropy_imageentropy_imageEntropyImageEntropyImageEntropyImageentropy_image, gray_histogray_histoGrayHistoGrayHistoGrayHistogray_histo, gray_histo_absgray_histo_absGrayHistoAbsGrayHistoAbsGrayHistoAbsgray_histo_abs, fuzzy_entropyfuzzy_entropyFuzzyEntropyFuzzyEntropyFuzzyEntropyfuzzy_entropy, fuzzy_perimeterfuzzy_perimeterFuzzyPerimeterFuzzyPerimeterFuzzyPerimeterfuzzy_perimeter

模块

Foundation