cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImage (Operator)

Name

cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImage — Berechnung der Co-Occurrence-Matrix und daraus abgeleiteter Grauwertmerkmale.

Signatur

cooc_feature_image(Regions, Image : : LdGray, Direction : Energy, Correlation, Homogeneity, Contrast)

Herror cooc_feature_image(const Hobject Regions, const Hobject Image, const Hlong LdGray, const Hlong Direction, double* Energy, double* Correlation, double* Homogeneity, double* Contrast)

Herror T_cooc_feature_image(const Hobject Regions, const Hobject Image, const Htuple LdGray, const Htuple Direction, Htuple* Energy, Htuple* Correlation, Htuple* Homogeneity, Htuple* Contrast)

void CoocFeatureImage(const HObject& Regions, const HObject& Image, const HTuple& LdGray, const HTuple& Direction, HTuple* Energy, HTuple* Correlation, HTuple* Homogeneity, HTuple* Contrast)

HTuple HImage::CoocFeatureImage(const HRegion& Regions, Hlong LdGray, const HTuple& Direction, HTuple* Correlation, HTuple* Homogeneity, HTuple* Contrast) const

double HImage::CoocFeatureImage(const HRegion& Regions, Hlong LdGray, Hlong Direction, double* Correlation, double* Homogeneity, double* Contrast) const

HTuple HRegion::CoocFeatureImage(const HImage& Image, Hlong LdGray, const HTuple& Direction, HTuple* Correlation, HTuple* Homogeneity, HTuple* Contrast) const

double HRegion::CoocFeatureImage(const HImage& Image, Hlong LdGray, Hlong Direction, double* Correlation, double* Homogeneity, double* Contrast) const

static void HOperatorSet.CoocFeatureImage(HObject regions, HObject image, HTuple ldGray, HTuple direction, out HTuple energy, out HTuple correlation, out HTuple homogeneity, out HTuple contrast)

HTuple HImage.CoocFeatureImage(HRegion regions, int ldGray, HTuple direction, out HTuple correlation, out HTuple homogeneity, out HTuple contrast)

double HImage.CoocFeatureImage(HRegion regions, int ldGray, int direction, out double correlation, out double homogeneity, out double contrast)

HTuple HRegion.CoocFeatureImage(HImage image, int ldGray, HTuple direction, out HTuple correlation, out HTuple homogeneity, out HTuple contrast)

double HRegion.CoocFeatureImage(HImage image, int ldGray, int direction, out double correlation, out double homogeneity, out double contrast)

Beschreibung

Der Aufruf von cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImageCoocFeatureImage entspricht der Hintereinanderausführung von gen_cooc_matrixgen_cooc_matrixGenCoocMatrixGenCoocMatrixGenCoocMatrix und cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixCoocFeatureMatrix. Wenn mehrere Richtungsmatrizen der Co-Occurrence-Matrix hintereinander ausgewertet werden sollen, ist es günstiger, die Matrix mit gen_cooc_matrixgen_cooc_matrixGenCoocMatrixGenCoocMatrixGenCoocMatrix zu erstellen und danach cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixCoocFeatureMatrix für die Ergebnismatrix aufzurufen. Bei dem Parameter DirectionDirectionDirectionDirectiondirection wird die Richtung der Nachbarschaft in Winkel oder 'mean'"mean""mean""mean""mean" übergeben. Bei 'mean'"mean""mean""mean""mean" wird der Mittelwert aller vier Richtungen berechnet.

Achtung

Der Operator cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImageCoocFeatureImage berücksichtigt nur die mittels RegionsRegionsRegionsRegionsregions übergebenen Regionen und ignoriert jede Domäne, die zuvor für das Eingabebild ImageImageImageImageimage festgelegt wurde.

Ausführungsinformationen

Parameter

RegionsRegionsRegionsRegionsregions (input_object)  region(-array) objectHRegionHRegionHobject

Zu untersuchende Regionen.

ImageImageImageImageimage (input_object)  singlechannelimage objectHImageHImageHobject (byte)

Zugehörige Grauwerte.

LdGrayLdGrayLdGrayLdGrayldGray (input_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Anzahl der zu unterscheidenden Grauwerte ( ).

Defaultwert: 6

Werteliste: 1, 2, 3, 4, 5, 6, 7, 8

DirectionDirectionDirectionDirectiondirection (input_control)  integer HTupleHTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)

Auszuwertende Richtung in der Matrix.

Defaultwert: 0

Werteliste: 0, 45, 90, 135, 'mean'"mean""mean""mean""mean"

EnergyEnergyEnergyEnergyenergy (output_control)  real(-array) HTupleHTupleHtuple (real) (double) (double) (double)

Energie der Grauwerte.

CorrelationCorrelationCorrelationCorrelationcorrelation (output_control)  real(-array) HTupleHTupleHtuple (real) (double) (double) (double)

Korrelation der Grauwerte.

HomogeneityHomogeneityHomogeneityHomogeneityhomogeneity (output_control)  real(-array) HTupleHTupleHtuple (real) (double) (double) (double)

Lokale Homogenität der Grauwerte.

ContrastContrastContrastContrastcontrast (output_control)  real(-array) HTupleHTupleHtuple (real) (double) (double) (double)

Kontrast der Grauwerte.

Ergebnis

cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImageCoocFeatureImage liefert den Wert 2 (H_MSG_TRUE), falls ein Bild mit definierten Grauwerten ('byte'"byte""byte""byte""byte") eingegeben wird und die Parameter korrekt sind. Das Verhalten bei leerer Eingabe (keine Eingabebilder) wird mit 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>), das bei leerer Region mit 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>) festgelegt. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

gen_cooc_matrixgen_cooc_matrixGenCoocMatrixGenCoocMatrixGenCoocMatrix

Alternativen

cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixCoocFeatureMatrix

Siehe auch

intensityintensityIntensityIntensityIntensity, min_max_graymin_max_grayMinMaxGrayMinMaxGrayMinMaxGray, entropy_grayentropy_grayEntropyGrayEntropyGrayEntropyGray, select_grayselect_graySelectGraySelectGraySelectGray

Modul

Foundation