gray_featuresgray_featuresGrayFeaturesGrayFeaturesgray_features (算子名称)

名称

gray_featuresgray_featuresGrayFeaturesGrayFeaturesgray_features — Calculates gray value features for a set of regions.

参数签名

gray_features(区域, Image : : 特征 : Value)

Herror gray_features(const Hobject 区域, const Hobject Image, const char* 特征, double* Value)

Herror T_gray_features(const Hobject 区域, const Hobject Image, const Htuple 特征, Htuple* Value)

void GrayFeatures(const HObject& 区域, const HObject& Image, const HTuple& 特征, HTuple* Value)

HTuple HRegion::GrayFeatures(const HImage& Image, const HTuple& 特征) const

double HRegion::GrayFeatures(const HImage& Image, const HString& 特征) const

double HRegion::GrayFeatures(const HImage& Image, const char* 特征) const

double HRegion::GrayFeatures(const HImage& Image, const wchar_t* 特征) const   ( Windows only)

static void HOperatorSet.GrayFeatures(HObject 区域, HObject image, HTuple 特征, out HTuple value)

HTuple HRegion.GrayFeatures(HImage image, HTuple 特征)

double HRegion.GrayFeatures(HImage image, string 特征)

def gray_features(区域: HObject, image: HObject, 特征: MaybeSequence[str]) -> Sequence[float]

def gray_features_s(区域: HObject, image: HObject, 特征: MaybeSequence[str]) -> float

描述

gray_featuresgray_featuresGrayFeaturesGrayFeaturesGrayFeaturesgray_features has a set of regions (区域区域区域区域区域区域) as input. For each of these regions the features (特征特征特征特征特征特征) are calculated and returned in ValueValueValueValuevaluevalue.

Possible values for 特征特征特征特征特征特征:

注意

Several features are processed in the order in which they are entered.

Note that the operator gray_featuresgray_featuresGrayFeaturesGrayFeaturesGrayFeaturesgray_features only considers the given 区域区域区域区域区域区域 and ignores any previously set domain of the input image ImageImageImageImageimageimage.

运行信息

参数表

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

Regions to be examined.

ImageImageImageImageimageimage (input_object)  singlechannelimage objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)

Gray value image.

特征特征特征特征特征特征 (input_control)  string(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Names of the features.

Default: 'mean' "mean" "mean" "mean" "mean" "mean"

List of values: 'alpha'"alpha""alpha""alpha""alpha""alpha", 'anisotropy'"anisotropy""anisotropy""anisotropy""anisotropy""anisotropy", 'area'"area""area""area""area""area", 'beta'"beta""beta""beta""beta""beta", 'column'"column""column""column""column""column", 'deviation'"deviation""deviation""deviation""deviation""deviation", 'entropy'"entropy""entropy""entropy""entropy""entropy", 'fuzzy_entropy'"fuzzy_entropy""fuzzy_entropy""fuzzy_entropy""fuzzy_entropy""fuzzy_entropy", 'fuzzy_perimeter'"fuzzy_perimeter""fuzzy_perimeter""fuzzy_perimeter""fuzzy_perimeter""fuzzy_perimeter", 'max'"max""max""max""max""max", 'mean'"mean""mean""mean""mean""mean", 'median'"median""median""median""median""median", 'min'"min""min""min""min""min", 'moments_column'"moments_column""moments_column""moments_column""moments_column""moments_column", 'moments_row'"moments_row""moments_row""moments_row""moments_row""moments_row", 'phi'"phi""phi""phi""phi""phi", 'plane_deviation'"plane_deviation""plane_deviation""plane_deviation""plane_deviation""plane_deviation", 'ra'"ra""ra""ra""ra""ra", 'rb'"rb""rb""rb""rb""rb", 'row'"row""row""row""row""row"

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

Values of the features.

Complexity

If F is the area of the region and N the number of features the runtime complexity is O(F * N).

结果

The operator gray_featuresgray_featuresGrayFeaturesGrayFeaturesGrayFeaturesgray_features returns the value 2 ( H_MSG_TRUE) if the input image has the defined gray values and the parameters are correct. If necessary an exception is raised.

可能的前置算子

connectionconnectionConnectionConnectionConnectionconnection, mean_imagemean_imageMeanImageMeanImageMeanImagemean_image, entropy_imageentropy_imageEntropyImageEntropyImageEntropyImageentropy_image, sobel_ampsobel_ampSobelAmpSobelAmpSobelAmpsobel_amp, median_separatemedian_separateMedianSeparateMedianSeparateMedianSeparatemedian_separate

可能的后置算子

select_grayselect_graySelectGraySelectGraySelectGrayselect_gray, shape_transshape_transShapeTransShapeTransShapeTransshape_trans, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, count_objcount_objCountObjCountObjCountObjcount_obj

参考其它

select_grayselect_graySelectGraySelectGraySelectGrayselect_gray, deviation_imagedeviation_imageDeviationImageDeviationImageDeviationImagedeviation_image, entropy_grayentropy_grayEntropyGrayEntropyGrayEntropyGrayentropy_gray, intensityintensityIntensityIntensityIntensityintensity, mean_imagemean_imageMeanImageMeanImageMeanImagemean_image, min_max_graymin_max_grayMinMaxGrayMinMaxGrayMinMaxGraymin_max_gray, select_objselect_objSelectObjSelectObjSelectObjselect_obj

模块

Foundation