KlassenKlassenKlassenKlassen | | | | Operatoren

gray_dilation_shapegray_dilation_shapeGrayDilationShapegray_dilation_shapeGrayDilationShapeGrayDilationShape (Operator)

Name

gray_dilation_shapegray_dilation_shapeGrayDilationShapegray_dilation_shapeGrayDilationShapeGrayDilationShape — 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)

Herror gray_dilation_shape(Hobject Image, Hobject* ImageMax, const HTuple& MaskHeight, const HTuple& MaskWidth, const HTuple& MaskShape)

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

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

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

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

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

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)

Beschreibung

gray_dilation_shapegray_dilation_shapeGrayDilationShapegray_dilation_shapeGrayDilationShapeGrayDilationShape transformiert die Grauwerte der Eingabebilder aus ImageImageImageImageImageimage mit Hilfe einer Filtermaske der Größe MaskHeightMaskHeightMaskHeightMaskHeightMaskHeightmaskHeight und MaskWidthMaskWidthMaskWidthMaskWidthMaskWidthmaskWidth der Form MaskShapeMaskShapeMaskShapeMaskShapeMaskShapemaskShape, in der das Maximum der Grauwerte berechnet wird. Das Ergebnis wird in ImageMaxImageMaxImageMaxImageMaxImageMaximageMax 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 ImageMaxImageMaxImageMaxImageMaxImageMaximageMax aus den beiden Zwischenergebnissen interpoliert. Es ist daher zu beachten, dass gray_dilation_shapegray_dilation_shapeGrayDilationShapegray_dilation_shapeGrayDilationShapeGrayDilationShape 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. An den Bildrändern wird eine Spiegelung der Randpunkte durchgeführt.

Achtung

Es ist zu beachten, dass gray_dilation_shapegray_dilation_shapeGrayDilationShapegray_dilation_shapeGrayDilationShapeGrayDilationShape 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_shapeGrayDilationShapegray_dilation_shapeGrayDilationShapeGrayDilationShape 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 Maxima berechnet werden sollen.

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

Bilder, die die Maxima 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

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

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_dilation_shapegray_dilation_shapeGrayDilationShapegray_dilation_shapeGrayDilationShapeGrayDilationShape liefert 2 (H_MSG_TRUE) zurück, wenn alle Parameter korrekt sind.

Alternativen

gray_dilationgray_dilationGrayDilationgray_dilationGrayDilationGrayDilation, gray_dilation_rectgray_dilation_rectGrayDilationRectgray_dilation_rectGrayDilationRectGrayDilationRect

Siehe auch

gray_opening_shapegray_opening_shapeGrayOpeningShapegray_opening_shapeGrayOpeningShapeGrayOpeningShape, gray_closing_shapegray_closing_shapeGrayClosingShapegray_closing_shapeGrayClosingShapeGrayClosingShape, gray_skeletongray_skeletonGraySkeletongray_skeletonGraySkeletonGraySkeleton

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren