gray_dilation_shapegray_dilation_shapeGrayDilationShapeGrayDilationShapegray_dilation_shape (Operator)

Name

gray_dilation_shapegray_dilation_shapeGrayDilationShapeGrayDilationShapegray_dilation_shape — Maximum der Grauwerte in einer ausgewählten Maske.

Signatur

gray_dilation_shape(Image : ImageMax : MaskHeight, MaskWidth, MaskShape : )

Herror gray_dilation_shape(const Hobject Image, Hobject* ImageMax, double MaskHeight, double MaskWidth, const char* MaskShape)

Herror T_gray_dilation_shape(const Hobject Image, Hobject* ImageMax, const Htuple MaskHeight, const Htuple MaskWidth, const Htuple MaskShape)

void GrayDilationShape(const HObject& Image, HObject* ImageMax, const HTuple& MaskHeight, const HTuple& MaskWidth, const HTuple& MaskShape)

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

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

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

HImage HImage::GrayDilationShape(double MaskHeight, double MaskWidth, const wchar_t* MaskShape) const   ( Nur Windows)

static void HOperatorSet.GrayDilationShape(HObject image, out HObject imageMax, HTuple maskHeight, HTuple maskWidth, HTuple maskShape)

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

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

def gray_dilation_shape(image: HObject, mask_height: Union[int, float], mask_width: Union[int, float], mask_shape: str) -> HObject

Beschreibung

gray_dilation_shapegray_dilation_shapeGrayDilationShapeGrayDilationShapegray_dilation_shape transformiert die Grauwerte der Eingabebilder aus ImageImageImageimageimage mit Hilfe einer Filtermaske der Größe MaskHeightMaskHeightMaskHeightmaskHeightmask_height und MaskWidthMaskWidthMaskWidthmaskWidthmask_width der Form MaskShapeMaskShapeMaskShapemaskShapemask_shape, in der das Maximum der Grauwerte berechnet wird. Das Ergebnis wird in ImageMaxImageMaxImageMaximageMaximage_max zurückgeliefert.

Die Steuerparameter MaskHeightMaskHeightMaskHeightmaskHeightmask_height und MaskWidthMaskWidthMaskWidthmaskWidthmask_width 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 ImageImageImageimageimage zunächst mit der jeweils nächstgrößeren und nächstkleineren ungeraden Maskengröße gefiltert und das Ergebnisbild ImageMaxImageMaxImageMaximageMaximage_max aus den beiden Zwischenergebnissen interpoliert. Es ist daher zu beachten, dass gray_dilation_shapegray_dilation_shapeGrayDilationShapeGrayDilationShapegray_dilation_shape für Maskengrößen von z.B. 4 und 4.0 unterschiedliche Ergebnisse liefert!

Im Falle der Maskenformen 'rhombus' und 'octagon' für Steuerparameter MaskShapeMaskShapeMaskShapemaskShapemask_shape müssen die Werte für MaskHeightMaskHeightMaskHeightmaskHeightmask_height und MaskWidthMaskWidthMaskWidthmaskWidthmask_width gleich groß sein. An den Bildrändern wird eine Spiegelung der Randpunkte durchgeführt.

Achtung

Es ist zu beachten, dass gray_dilation_shapegray_dilation_shapeGrayDilationShapeGrayDilationShapegray_dilation_shape 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_dilation_shapegray_dilation_shapeGrayDilationShapeGrayDilationShapegray_dilation_shape 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.

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) objectHImageHObjectHObjectHobject (byte* / uint2*) *erlaubt für Compute Devices

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

ImageMaxImageMaxImageMaximageMaximage_max (output_object)  (multichannel-)image(-array) objectHImageHObjectHObjectHobject * (byte / uint2)

Bilder, die die Maxima enthalten.

MaskHeightMaskHeightMaskHeightmaskHeightmask_height (input_control)  extent.y HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Höhe der Filtermaske.

Default: 11

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

Wertebereich: 1.0 ≤ MaskHeight MaskHeight MaskHeight maskHeight mask_height

MaskWidthMaskWidthMaskWidthmaskWidthmask_width (input_control)  extent.x HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Breite der Filtermaske.

Default: 11

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

Wertebereich: 1.0 ≤ MaskWidth MaskWidth MaskWidth maskWidth mask_width

MaskShapeMaskShapeMaskShapemaskShapemask_shape (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Form der Maske.

Default: 'octagon' "octagon" "octagon" "octagon" "octagon"

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

Ergebnis

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

Alternativen

gray_dilationgray_dilationGrayDilationGrayDilationgray_dilation, gray_dilation_rectgray_dilation_rectGrayDilationRectGrayDilationRectgray_dilation_rect

Siehe auch

gray_opening_shapegray_opening_shapeGrayOpeningShapeGrayOpeningShapegray_opening_shape, gray_closing_shapegray_closing_shapeGrayClosingShapeGrayClosingShapegray_closing_shape, gray_skeletongray_skeletonGraySkeletonGraySkeletongray_skeleton

Modul

Foundation