ClassesClassesClassesClasses | | | | Operators

cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrix (Operator)

Name

cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrix — Calculate gray value features from a co-occurrence matrix.

Signature

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)

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

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

double HImageArray::CoocFeatureMatrix(HTuple* Correlation, HTuple* Homogeneity, HTuple* Contrast) const

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

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

void HOperatorSetX.CoocFeatureMatrix(
[in] IHUntypedObjectX* CoocMatrix, [out] VARIANT* Energy, [out] VARIANT* Correlation, [out] VARIANT* Homogeneity, [out] VARIANT* Contrast)

double HImageX.CoocFeatureMatrix(
[out] double* Correlation, [out] double* Homogeneity, [out] double* Contrast)

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)

Description

The operator calculates from a co-occurence matrix (CoocMatrixCoocMatrixCoocMatrixCoocMatrixCoocMatrixcoocMatrix) the energy (EnergyEnergyEnergyEnergyEnergyenergy), correlation (CorrelationCorrelationCorrelationCorrelationCorrelationcorrelation), local homogeneity (HomogeneityHomogeneityHomogeneityHomogeneityHomogeneityhomogeneity) and contrast (ContrastContrastContrastContrastContrastcontrast).

The operator cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrix calculates the gray value features from the part of the input matrix generated by gen_cooc_matrixgen_cooc_matrixGenCoocMatrixgen_cooc_matrixGenCoocMatrixGenCoocMatrix corresponding to the direction matrix indicated by the parameters LdGray and Direction according to the following formulae:

  Energy:
                              width   width
                              ----    ----
                              \       \
              Energy  =       /       /     cij  *  cij
                              ----    ----
                              i=0     j=0

                              (Measure for image homogeneity)

  Correlation:
                              width  width
                              ----   ----
                              \      \
                              /      /      (i - ux) * (j - uy) * cij
                              ----   ----
                              i=0    j=0
              Correlation  =  -----------------------------------------
                                             sx  *  sy

                              (Measure for gray value dependencies)

  Local homogeneity:

                              width  width
                              ----   ----
                              \      \            1
              Homogeneity  =  /      /      ------------- * cij
                              ----   ----   1 + (i - j)^2
                              i=0    j=0

  Contrast:

                              width   width
                              ----    ----
                              \       \
              Contrast  =     /       /     (i - j)^2  *  cij
                              ----    ----
                              i=0     j=0

                      (Measure for the size of the intensity differences)

      where

              width           2^LdGray - 1

              cij             Entry of co-occurrence matrix

                              width   width
                              ----    ----
                              \       \
              ux              /       /     i  *  cij
                              ----    ----
                              i=0     j=0

                              width   width
                              ----    ----
                              \       \
              uy              /       /     j  *  cij
                              ----    ----
                              i=0     j=0

                              width   width
                              ----    ----
                              \       \
              sx^2            /       /     (i - ux)^2  * cij
                              ----    ----
                              i=0     j=0

                              width   width
                              ----    ----
                              \       \
              sy^2            /       /     (i - uy)^2  *  cij
                              ----    ----
                              i=0     j=0

Attention

The region of the input image is disregarded.

Parallelization

Parameters

CoocMatrixCoocMatrixCoocMatrixCoocMatrixCoocMatrixcoocMatrix (input_object)  singlechannelimage(-array) objectHImageHImageHImageHImageXHobject (real)

Co-occurrence matrix.

EnergyEnergyEnergyEnergyEnergyenergy (output_control)  real HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Homogeneity of the gray values.

CorrelationCorrelationCorrelationCorrelationCorrelationcorrelation (output_control)  real HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Correlation of gray values.

HomogeneityHomogeneityHomogeneityHomogeneityHomogeneityhomogeneity (output_control)  real HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Local homogeneity of gray values.

ContrastContrastContrastContrastContrastcontrast (output_control)  real HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Gray value contrast.

Result

The operator cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrix returns the value 2 (H_MSG_TRUE) if an image with defined gray values is passed 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>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>). If necessary an exception is raised.

Possible Predecessors

gen_cooc_matrixgen_cooc_matrixGenCoocMatrixgen_cooc_matrixGenCoocMatrixGenCoocMatrix

Alternatives

cooc_feature_imagecooc_feature_imageCoocFeatureImagecooc_feature_imageCoocFeatureImageCoocFeatureImage

See also

intensityintensityIntensityintensityIntensityIntensity, min_max_graymin_max_grayMinMaxGraymin_max_grayMinMaxGrayMinMaxGray, entropy_grayentropy_grayEntropyGrayentropy_grayEntropyGrayEntropyGray, select_grayselect_graySelectGrayselect_graySelectGraySelectGray

Module

Foundation


ClassesClassesClassesClasses | | | | Operators