cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixcooc_feature_matrix共生特征矩阵(算子)

名称

cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixcooc_feature_matrix — 根据共生矩阵计算灰度值特征。

签名

cooc_feature_matrix(CoocMatrix : : : Energy, Correlation, Homogeneity, Contrast)

Herror cooc_feature_matrix(const Hobject CoocMatrix, double* Energy, double* Correlation, double* Homogeneity, double* Contrast)

Herror T_cooc_feature_matrix(const Hobject CoocMatrix, Htuple* Energy, Htuple* Correlation, Htuple* Homogeneity, Htuple* Contrast)

void CoocFeatureMatrix(const HObject& CoocMatrix, HTuple* Energy, HTuple* Correlation, HTuple* Homogeneity, HTuple* Contrast)

double HImage::CoocFeatureMatrix(double* Correlation, double* Homogeneity, double* Contrast) const

static void HOperatorSet.CoocFeatureMatrix(HObject coocMatrix, out HTuple energy, out HTuple correlation, out HTuple homogeneity, out HTuple contrast)

double HImage.CoocFeatureMatrix(out double correlation, out double homogeneity, out double contrast)

def cooc_feature_matrix(cooc_matrix: HObject) -> Tuple[float, float, float, float]

描述

算子 cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixCoocFeatureMatrixcooc_feature_matrix 从共生矩阵(CoocMatrixCoocMatrixCoocMatrixCoocMatrixcoocMatrixcooc_matrix)中计算能量(EnergyEnergyEnergyEnergyenergyenergy)、相关性(CorrelationCorrelationCorrelationCorrelationcorrelationcorrelation)、局部均匀性(HomogeneityHomogeneityHomogeneityHomogeneityhomogeneityhomogeneity)和对比度(ContrastContrastContrastContrastcontrastcontrast)。

算子 cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixCoocFeatureMatrixcooc_feature_matrix 根据参数 LdGrayLdGrayLdGrayLdGrayldGrayld_grayDirectionDirectionDirectionDirectiondirectiondirection 指示的方向矩阵,从 gen_cooc_matrixgen_cooc_matrixGenCoocMatrixGenCoocMatrixGenCoocMatrixgen_cooc_matrix 生成的输入矩阵对应部分中,按下列公式计算灰度值特征:

其中

CoocMatrixCoocMatrixCoocMatrixCoocMatrixcoocMatrixcooc_matrix 的宽度,

共生矩阵的元素,

注意

输入图像的区域将被忽略。

执行信息

参数

CoocMatrixCoocMatrixCoocMatrixCoocMatrixcoocMatrixcooc_matrix (输入对象)  singlechannelimage(-array) objectHImageHObjectHImageHobject (real)

共生矩阵。

EnergyEnergyEnergyEnergyenergyenergy (输出控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

灰度值的均匀性。

CorrelationCorrelationCorrelationCorrelationcorrelationcorrelation (输出控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

灰度值的相关性。

HomogeneityHomogeneityHomogeneityHomogeneityhomogeneityhomogeneity (输出控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

灰度值的局部均匀性。

ContrastContrastContrastContrastcontrastcontrast (输出控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

灰度值对比度。

结果

算子 cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixCoocFeatureMatrixcooc_feature_matrix 返回值 2 (H_MSG_TRUE),当传入的图像具有定义的灰度值且参数正确。当输入为空(无可用输入图像)时,可设置行为通过算子 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>)。如有必要,则抛出异常。

可能的前趋

gen_cooc_matrixgen_cooc_matrixGenCoocMatrixGenCoocMatrixGenCoocMatrixgen_cooc_matrix

替代

cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImageCoocFeatureImagecooc_feature_image

另见

intensityintensityIntensityIntensityIntensityintensity, min_max_graymin_max_grayMinMaxGrayMinMaxGrayMinMaxGraymin_max_gray, entropy_grayentropy_grayEntropyGrayEntropyGrayEntropyGrayentropy_gray, select_grayselect_graySelectGraySelectGraySelectGrayselect_gray

模块

基础