gray_closing_rectgray_closing_rectGrayClosingRectGrayClosingRect (Operator)

Name

gray_closing_rectgray_closing_rectGrayClosingRectGrayClosingRect — Grauwert-Closing mit einer rechteckigen Filtermaske.

Signatur

gray_closing_rect(Image : ImageClosing : MaskHeight, MaskWidth : )

Herror gray_closing_rect(const Hobject Image, Hobject* ImageClosing, const Hlong MaskHeight, const Hlong MaskWidth)

Herror T_gray_closing_rect(const Hobject Image, Hobject* ImageClosing, const Htuple MaskHeight, const Htuple MaskWidth)

void GrayClosingRect(const HObject& Image, HObject* ImageClosing, const HTuple& MaskHeight, const HTuple& MaskWidth)

HImage HImage::GrayClosingRect(Hlong MaskHeight, Hlong MaskWidth) const

static void HOperatorSet.GrayClosingRect(HObject image, out HObject imageClosing, HTuple maskHeight, HTuple maskWidth)

HImage HImage.GrayClosingRect(int maskHeight, int maskWidth)

Beschreibung

gray_closing_rectgray_closing_rectGrayClosingRectGrayClosingRectGrayClosingRect führt ein Grauwert-Closing auf dem Bild ImageImageImageImageimage mit Hilfe einer rechteckigen Filtermaske (MaskHeightMaskHeightMaskHeightMaskHeightmaskHeight, MaskWidthMaskWidthMaskWidthMaskWidthmaskWidth) durch. Das Ergebnis wird in ImageClosingImageClosingImageClosingImageClosingimageClosing zurückgeliefert. Die Steuerparameter MaskHeightMaskHeightMaskHeightMaskHeightmaskHeight,MaskWidthMaskWidthMaskWidthMaskWidthmaskWidth werden, wenn sie einen geraden Wert haben, auf den nächstgrößeren ungeraden Wert transformiert. An den Bildrändern wird eine Spiegelung der Randpunkte durchgeführt.

Das Grauwert-Closing eines Bildes i mit dem rechteckigen strukturierenden Element s ist definiert als d.h. eine Dilatation des Bildes mit s gefolgt von einer Erosion mit s (siehe gray_dilation_rectgray_dilation_rectGrayDilationRectGrayDilationRectGrayDilationRect und gray_erosion_rectgray_erosion_rectGrayErosionRectGrayErosionRectGrayErosionRect).

Achtung

Beachten Sie, dass Filteroperatoren eventuell unerwartete Resultate ausgeben, wenn ein Bild mit einer reduzierten Domäne als Input übergeben wird. Weitere Informationen können im Kapitel Filter gefunden werden.

Ausführungsinformationen

Parameter

ImageImageImageImageimage (input_object)  (multichannel-)image(-array) objectHImageHImageHobject (byte / direction / cyclic / uint2 / int2 / int4 / real)

Eingabebild.

ImageClosingImageClosingImageClosingImageClosingimageClosing (output_object)  (multichannel-)image(-array) objectHImageHImageHobject * (byte / direction / cyclic / uint2 / int2 / int4 / real)

Ergebnisbild.

MaskHeightMaskHeightMaskHeightMaskHeightmaskHeight (input_control)  extent.y HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Höhe der Filtermaske.

Defaultwert: 11

Wertevorschläge: 3, 5, 7, 9, 11, 13, 15

Typischer Wertebereich: 3 ≤ MaskHeight MaskHeight MaskHeight MaskHeight maskHeight ≤ 511

Minimale Schrittweite: 2

Empfohlene Schrittweite: 2

Restriktion: odd(MaskHeight)

MaskWidthMaskWidthMaskWidthMaskWidthmaskWidth (input_control)  extent.x HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Breite der Filtermaske.

Defaultwert: 11

Wertevorschläge: 3, 5, 7, 9, 11, 13, 15

Typischer Wertebereich: 3 ≤ MaskWidth MaskWidth MaskWidth MaskWidth maskWidth ≤ 511

Minimale Schrittweite: 2

Empfohlene Schrittweite: 2

Restriktion: odd(MaskWidth)

Ergebnis

Sind die Parameterwerte korrekt, dann liefert gray_closing_rectgray_closing_rectGrayClosingRectGrayClosingRectGrayClosingRect den Wert 2 (H_MSG_TRUE). Das Verhalten bei leerer Eingabe (keine Eingabebilder vorhanden) lässt sich mittels 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>) festlegen. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Alternativen

gray_closinggray_closingGrayClosingGrayClosingGrayClosing, gray_closing_shapegray_closing_shapeGrayClosingShapeGrayClosingShapeGrayClosingShape

Siehe auch

closing_rectangle1closing_rectangle1ClosingRectangle1ClosingRectangle1ClosingRectangle1, gray_dilation_rectgray_dilation_rectGrayDilationRectGrayDilationRectGrayDilationRect, gray_erosion_rectgray_erosion_rectGrayErosionRectGrayErosionRectGrayErosionRect

Modul

Foundation