KlassenKlassenKlassenKlassen | | | | Operatoren

gray_closing_shapegray_closing_shapeGrayClosingShapegray_closing_shapeGrayClosingShapeGrayClosingShape (Operator)

Name

gray_closing_shapegray_closing_shapeGrayClosingShapegray_closing_shapeGrayClosingShapeGrayClosingShape — Grauwert-Closing mit einer ausgewählten Maske.

Signatur

gray_closing_shape(Image : ImageClosing : MaskHeight, MaskWidth, MaskShape : )

Herror gray_closing_shape(const Hobject Image, Hobject* ImageClosing, double MaskHeight, double MaskWidth, const char* MaskShape)

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

Herror gray_closing_shape(Hobject Image, Hobject* ImageClosing, const HTuple& MaskHeight, const HTuple& MaskWidth, const HTuple& MaskShape)

HImage HImage::GrayClosingShape(const HTuple& MaskHeight, const HTuple& MaskWidth, const HTuple& MaskShape) const

HImageArray HImageArray::GrayClosingShape(const HTuple& MaskHeight, const HTuple& MaskWidth, const HTuple& MaskShape) const

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

HImage HImage::GrayClosingShape(const HTuple& MaskHeight, const HTuple& MaskWidth, const HString& MaskShape) const

HImage HImage::GrayClosingShape(double MaskHeight, double MaskWidth, const HString& MaskShape) const

HImage HImage::GrayClosingShape(double MaskHeight, double MaskWidth, const char* MaskShape) const

void HOperatorSetX.GrayClosingShape(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*ImageClosing, [in] VARIANT MaskHeight, [in] VARIANT MaskWidth, [in] VARIANT MaskShape)

IHImageX* HImageX.GrayClosingShape(
[in] VARIANT MaskHeight, [in] VARIANT MaskWidth, [in] BSTR MaskShape)

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

HImage HImage.GrayClosingShape(HTuple maskHeight, HTuple maskWidth, string maskShape)

HImage HImage.GrayClosingShape(double maskHeight, double maskWidth, string maskShape)

Beschreibung

gray_closing_shapegray_closing_shapeGrayClosingShapegray_closing_shapeGrayClosingShapeGrayClosingShape führt ein Grauwert-Closing auf dem Bild ImageImageImageImageImageimage mit einem strukturierenden Element der Form MaskShapeMaskShapeMaskShapeMaskShapeMaskShapemaskShape mit der vertikalen Ausdehnung MaskHeightMaskHeightMaskHeightMaskHeightMaskHeightmaskHeight und der horizontalen Ausdehnung MaskWidthMaskWidthMaskWidthMaskWidthMaskWidthmaskWidth durch. Die Offsetwerte der Maske sind auf 0 festgelegt. Das Ergebnis wird in ImageClosingImageClosingImageClosingImageClosingImageClosingimageClosing zurückgeliefert.

Die Steuerparameter MaskHeightMaskHeightMaskHeightMaskHeightMaskHeightmaskHeight und MaskWidthMaskWidthMaskWidthMaskWidthMaskWidthmaskWidth werden, wenn sie vom Typ Integer sind und einen geraden Wert haben, auf den nächstgrößeren ungeraden Wert transformiert. Ist dagegen mindestens einer der beiden Parameter vom Typ Float, dann wird das Eingabebild ImageImageImageImageImageimage zunächst mit der jeweils nächstgrößeren und nächstkleineren ungeraden Maskengröße gefiltert und das Ergebnisbild ImageClosingImageClosingImageClosingImageClosingImageClosingimageClosing aus den beiden Zwischenergebnissen interpoliert. Es ist daher zu beachten, dass gray_closing_shapegray_closing_shapeGrayClosingShapegray_closing_shapeGrayClosingShapeGrayClosingShape für Maskengrößen von z.B. 4 und 4.0 unterschiedliche Ergebnisse liefert!

Im Falle der Maskenformen 'rhombus' und 'octagon' für Steuerparameter MaskShapeMaskShapeMaskShapeMaskShapeMaskShapemaskShape müssen die Werte für MaskHeightMaskHeightMaskHeightMaskHeightMaskHeightmaskHeight und MaskWidthMaskWidthMaskWidthMaskWidthMaskWidthmaskWidth gleich groß sein. Der Parameterwert 'octagon' für MaskShapeMaskShapeMaskShapeMaskShapeMaskShapemaskShape beschreibt eine gleichseitige, achteckige Maske, welche sich als Näherung von kreisförmigen Maskenstrukturen eignet. An den Bildrändern wird eine Spiegelung der Randpunkte durchgeführt.

Das Grauwert-Closing eines Bildes i mit einem strukturierenden Element s ist definiert als

d.h. eine Dilatation des Bildes mit s gefolgt von einer Erosion mit s (siehe gray_dilation_shapegray_dilation_shapeGrayDilationShapegray_dilation_shapeGrayDilationShapeGrayDilationShape und gray_erosion_shapegray_erosion_shapeGrayErosionShapegray_erosion_shapeGrayErosionShapeGrayErosionShape).

Achtung

Es ist zu beachten, dass gray_closing_shapegray_closing_shapeGrayClosingShapegray_closing_shapeGrayClosingShapeGrayClosingShape für Maskengrößen des Typs Float spürbar mehr Rechenzeit benötigt als für Maskengrößen des Typs Integer. Dies gilt insbesondere für rechteckige Masken mit unterschiedlicher Breite und Höhe!

gray_closing_shapegray_closing_shapeGrayClosingShapegray_closing_shapeGrayClosingShapeGrayClosingShape kann auf OpenCL-Geräten ausgeführt werden. Wird eine Maskengröße des Typs Float verwendet, kann das Ergebnis geringfügig von dem der CPU abweichen, da die Interpolation auf dem OpenCL-Gerät in einfacher Genauigkeit durchgeführt wird.

Parallelisierung

Parameter

ImageImageImageImageImageimage (input_object)  (multichannel-)image(-array) objectHImageHImageHImageHImageXHobject (byte* / uint2*) *erlaubt für Compute Devices

Bilder, für deren Grauwerte die Minima berechnet werden sollen.

ImageClosingImageClosingImageClosingImageClosingImageClosingimageClosing (output_object)  (multichannel-)image(-array) objectHImageHImageHImageHImageXHobject * (byte / uint2)

Bilder, die die Minima enthalten.

MaskHeightMaskHeightMaskHeightMaskHeightMaskHeightmaskHeight (input_control)  extent.y HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Höhe der Filtermaske.

Defaultwert: 11

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

Typischer Wertebereich: 1.0 ≤ MaskHeight MaskHeight MaskHeight MaskHeight MaskHeight maskHeight ≤ 511.0

MaskWidthMaskWidthMaskWidthMaskWidthMaskWidthmaskWidth (input_control)  extent.x HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Breite der Filtermaske.

Defaultwert: 11

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

Typischer Wertebereich: 1.0 ≤ MaskWidth MaskWidth MaskWidth MaskWidth MaskWidth maskWidth ≤ 511.0

MaskShapeMaskShapeMaskShapeMaskShapeMaskShapemaskShape (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Form der Maske.

Defaultwert: 'octagon' "octagon" "octagon" "octagon" "octagon" "octagon"

Werteliste: 'octagon'"octagon""octagon""octagon""octagon""octagon", 'rectangle'"rectangle""rectangle""rectangle""rectangle""rectangle", 'rhombus'"rhombus""rhombus""rhombus""rhombus""rhombus"

Ergebnis

gray_closing_shapegray_closing_shapeGrayClosingShapegray_closing_shapeGrayClosingShapeGrayClosingShape liefert 2 (H_MSG_TRUE) zurück, wenn alle Parameter korrekt sind.

Alternativen

gray_closinggray_closingGrayClosinggray_closingGrayClosingGrayClosing

Siehe auch

gray_dilation_shapegray_dilation_shapeGrayDilationShapegray_dilation_shapeGrayDilationShapeGrayDilationShape, gray_erosion_shapegray_erosion_shapeGrayErosionShapegray_erosion_shapeGrayErosionShapeGrayErosionShape, closingclosingClosingclosingClosingClosing

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren