KlassenKlassenKlassenKlassen | | | | Operatoren

gen_cooc_matrixgen_cooc_matrixGenCoocMatrixgen_cooc_matrixGenCoocMatrixGenCoocMatrix (Operator)

Name

gen_cooc_matrixgen_cooc_matrixGenCoocMatrixgen_cooc_matrixGenCoocMatrixGenCoocMatrix — Berechnung der Co-Occurrence-Matrix einer Region in einem Bild.

Signatur

gen_cooc_matrix(Regions, Image : Matrix : LdGray, Direction : )

Herror gen_cooc_matrix(const Hobject Regions, const Hobject Image, Hobject* Matrix, const Hlong LdGray, const Hlong Direction)

Herror T_gen_cooc_matrix(const Hobject Regions, const Hobject Image, Hobject* Matrix, const Htuple LdGray, const Htuple Direction)

Herror gen_cooc_matrix(Hobject Regions, Hobject Image, Hobject* Matrix, const HTuple& LdGray, const HTuple& Direction)

HImage HRegion::GenCoocMatrix(const HImage& Image, const HTuple& LdGray, const HTuple& Direction) const

HImageArray HRegionArray::GenCoocMatrix(const HImage& Image, const HTuple& LdGray, const HTuple& Direction) const

void GenCoocMatrix(const HObject& Regions, const HObject& Image, HObject* Matrix, const HTuple& LdGray, const HTuple& Direction)

HImage HImage::GenCoocMatrix(const HRegion& Regions, Hlong LdGray, Hlong Direction) const

HImage HRegion::GenCoocMatrix(const HImage& Image, Hlong LdGray, Hlong Direction) const

void HOperatorSetX.GenCoocMatrix(
[in] IHUntypedObjectX* Regions, [in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*Matrix, [in] VARIANT LdGray, [in] VARIANT Direction)

IHImageX* HImageX.GenCoocMatrix(
[in] IHRegionX* Regions, [in] Hlong LdGray, [in] Hlong Direction)

IHImageX* HRegionX.GenCoocMatrix(
[in] IHImageX* Image, [in] Hlong LdGray, [in] Hlong Direction)

static void HOperatorSet.GenCoocMatrix(HObject regions, HObject image, out HObject matrix, HTuple ldGray, HTuple direction)

HImage HImage.GenCoocMatrix(HRegion regions, int ldGray, int direction)

HImage HRegion.GenCoocMatrix(HImage image, int ldGray, int direction)

Beschreibung

gen_cooc_matrixgen_cooc_matrixGenCoocMatrixgen_cooc_matrixGenCoocMatrixGenCoocMatrix ermittelt aus den Eingaberegionen, wie oft die Grauwerte i und j in einer bestimmten Richtung (0, 45, 90, 135 Grad) nebeneinander liegen, speichert diese Zahl in der Co-Occurrence-Matrix an den Stellen (i,j) und (j,i) ab (die Matrix ist also symmetrisch) und normiert am Schluss die Matrix mit der Zahl der Einträge. LdGrayLdGrayLdGrayLdGrayLdGrayldGray git die Anzahl der zu unterscheidenden Grauwerte (nämlich

) an.
Beispiel: Eingabebild mit Grauwerten: 0 0 3
          (normiert mit LdGray=2)     1 1 2
                                      1 2 3

        Co-Occurrence-Matrizen (nicht normiert):

                2 0 0 1         0 1 1 0
                0 2 2 0         1 0 1 1
                0 2 0 1         1 1 0 0
                1 0 1 0         0 1 0 0

                0 2 0 0         0 1 0 0
                2 2 1 0         1 2 0 1
                0 1 0 2         0 0 2 0
                0 0 2 0         0 1 0 0
 

Achtung

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

Parallelisierung

Parameter

RegionsRegionsRegionsRegionsRegionsregions (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Zu untersuchende Regionen.

ImageImageImageImageImageimage (input_object)  singlechannelimage objectHImageHImageHImageHImageXHobject (byte)

Bild das die Grauwerte liefert.

MatrixMatrixMatrixMatrixMatrixmatrix (output_object)  image(-array) objectHImageHImageHImageHImageXHobject * (real)

Co-Occurrence-Matrix (Matrizen).

LdGrayLdGrayLdGrayLdGrayLdGrayldGray (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Anzahl der zu unterscheidenden Grauwerte ( ).

Defaultwert: 6

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

Typischer Wertebereich: LdGray LdGray LdGray LdGray LdGray ldGray (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

DirectionDirectionDirectionDirectionDirectiondirection (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Richtung der Nachbarschaftsbeziehung.

Defaultwert: 0

Werteliste: 0, 45, 90, 135

Ergebnis

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

Vorgänger

draw_regiondraw_regionDrawRegiondraw_regionDrawRegionDrawRegion, gen_circlegen_circleGenCirclegen_circleGenCircleGenCircle, gen_ellipsegen_ellipseGenEllipsegen_ellipseGenEllipseGenEllipse, gen_rectangle1gen_rectangle1GenRectangle1gen_rectangle1GenRectangle1GenRectangle1, gen_rectangle2gen_rectangle2GenRectangle2gen_rectangle2GenRectangle2GenRectangle2, thresholdthresholdThresholdthresholdThresholdThreshold, erosion_circleerosion_circleErosionCircleerosion_circleErosionCircleErosionCircle, binomial_filterbinomial_filterBinomialFilterbinomial_filterBinomialFilterBinomialFilter, gauss_filtergauss_filterGaussFiltergauss_filterGaussFilterGaussFilter, smooth_imagesmooth_imageSmoothImagesmooth_imageSmoothImageSmoothImage, sub_imagesub_imageSubImagesub_imageSubImageSubImage

Alternativen

cooc_feature_imagecooc_feature_imageCoocFeatureImagecooc_feature_imageCoocFeatureImageCoocFeatureImage

Siehe auch

cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrix

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren