moments_gray_planemoments_gray_planeMomentsGrayPlaneMomentsGrayPlane (Operator)

Name

moments_gray_planemoments_gray_planeMomentsGrayPlaneMomentsGrayPlane — Berechnung der Grauwertmomente und der Approximation durch eine Ebene.

Signatur

moments_gray_plane(Regions, Image : : : MRow, MCol, Alpha, Beta, Mean)

Herror moments_gray_plane(const Hobject Regions, const Hobject Image, double* MRow, double* MCol, double* Alpha, double* Beta, double* Mean)

Herror T_moments_gray_plane(const Hobject Regions, const Hobject Image, Htuple* MRow, Htuple* MCol, Htuple* Alpha, Htuple* Beta, Htuple* Mean)

void MomentsGrayPlane(const HObject& Regions, const HObject& Image, HTuple* MRow, HTuple* MCol, HTuple* Alpha, HTuple* Beta, HTuple* Mean)

void HImage::MomentsGrayPlane(const HRegion& Regions, HTuple* MRow, HTuple* MCol, HTuple* Alpha, HTuple* Beta, HTuple* Mean) const

void HImage::MomentsGrayPlane(const HRegion& Regions, double* MRow, double* MCol, double* Alpha, double* Beta, double* Mean) const

void HRegion::MomentsGrayPlane(const HImage& Image, HTuple* MRow, HTuple* MCol, HTuple* Alpha, HTuple* Beta, HTuple* Mean) const

void HRegion::MomentsGrayPlane(const HImage& Image, double* MRow, double* MCol, double* Alpha, double* Beta, double* Mean) const

static void HOperatorSet.MomentsGrayPlane(HObject regions, HObject image, out HTuple MRow, out HTuple MCol, out HTuple alpha, out HTuple beta, out HTuple mean)

void HImage.MomentsGrayPlane(HRegion regions, out HTuple MRow, out HTuple MCol, out HTuple alpha, out HTuple beta, out HTuple mean)

void HImage.MomentsGrayPlane(HRegion regions, out double MRow, out double MCol, out double alpha, out double beta, out double mean)

void HRegion.MomentsGrayPlane(HImage image, out HTuple MRow, out HTuple MCol, out HTuple alpha, out HTuple beta, out HTuple mean)

void HRegion.MomentsGrayPlane(HImage image, out double MRow, out double MCol, out double alpha, out double beta, out double mean)

Beschreibung

moments_gray_planemoments_gray_planeMomentsGrayPlaneMomentsGrayPlaneMomentsGrayPlane berechnet die Grauwertmomente und die Approximation der Grauwerte durch eine Ebene. Die Berechnung erfolgt nach folgender Formel: wobei die Fläche, , der Schwerpunkt, , und die normierten Momente von RegionsRegionsRegionsRegionsregions sind.

Die Parameter AlphaAlphaAlphaAlphaalpha, BetaBetaBetaBetabeta und MeanMeanMeanMeanmean beschreiben dabei eine Ebene über der Region: AlphaAlphaAlphaAlphaalpha gibt also die Steigung in Richtung der Zeilenachse (nach „unten“), BetaBetaBetaBetabeta die Steigung in Richtung der Spaltenachse (nach „rechts“) an.

Achtung

Der Operator moments_gray_planemoments_gray_planeMomentsGrayPlaneMomentsGrayPlaneMomentsGrayPlane 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 / direction / cyclic / uint2 / real)

Zugehörige Grauwerte.

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

Gemischte Momente der Zeile.

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

Gemischte Momente der Spalte.

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

Parameter Alpha der Ebenengleichung.

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

Parameter Beta der Ebenengleichung.

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

Mittlerer Grauwert.

Ergebnis

moments_gray_planemoments_gray_planeMomentsGrayPlaneMomentsGrayPlaneMomentsGrayPlane 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

draw_regiondraw_regionDrawRegionDrawRegionDrawRegion, gen_circlegen_circleGenCircleGenCircleGenCircle, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipse, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2, thresholdthresholdThresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing

Siehe auch

intensityintensityIntensityIntensityIntensity, moments_region_2ndmoments_region_2ndMomentsRegion2ndMomentsRegion2ndMomentsRegion2nd

Literatur

R. Haralick, L. Shapiro; „Computer and Robot Vision“; Addison-Wesley, 1992, pp 75-76

Modul

Foundation