dilation2dilation2Dilation2Dilation2 (Operator)

Name

dilation2dilation2Dilation2Dilation2 — Ausdehnen von Regionen (mit Bezugspunkt).

Signatur

dilation2(Region, StructElement : RegionDilation : Row, Column, Iterations : )

Herror dilation2(const Hobject Region, const Hobject StructElement, Hobject* RegionDilation, const Hlong Row, const Hlong Column, const Hlong Iterations)

Herror T_dilation2(const Hobject Region, const Hobject StructElement, Hobject* RegionDilation, const Htuple Row, const Htuple Column, const Htuple Iterations)

void Dilation2(const HObject& Region, const HObject& StructElement, HObject* RegionDilation, const HTuple& Row, const HTuple& Column, const HTuple& Iterations)

HRegion HRegion::Dilation2(const HRegion& StructElement, Hlong Row, Hlong Column, Hlong Iterations) const

static void HOperatorSet.Dilation2(HObject region, HObject structElement, out HObject regionDilation, HTuple row, HTuple column, HTuple iterations)

HRegion HRegion.Dilation2(HRegion structElement, int row, int column, int iterations)

Beschreibung

dilation2dilation2Dilation2Dilation2Dilation2 berechnet die Dilatation der Eingaberegionen mit einem strukturierenden Element (StructElementStructElementStructElementStructElementstructElement) und dem Bezugspunkt, der durch RowRowRowRowrow und ColumnColumnColumnColumncolumn charakterisiert wird. dilation2dilation2Dilation2Dilation2Dilation2 entspricht dem Operator dilation1dilation1Dilation1Dilation1Dilation1 mit dem Unterschied, dass der Bezugspunkt des strukturierenden Elementes frei gewählt werden kann. Der Parameter IterationsIterationsIterationsIterationsiterations bezeichnet die Anzahl der Iterationen, die mit dem strukturierenden Elemente ausgeführt werden sollen. Als Eingaberegion für die Iteration n wird die Ergebnisregion der Iteration (n-1) verwendet.

Bei Verwendung des leeren strukturierenden Elementes wird eine leere Region erzeugt.

Strukturierende Elemente (StructElementStructElementStructElementStructElementstructElement) können mit Operatoren wie gen_circlegen_circleGenCircleGenCircleGenCircle, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipse, draw_regiondraw_regionDrawRegionDrawRegionDrawRegion, gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygon, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPoints, etc. erzeugt werden.

Achtung

Eine Dilatation führt grundsätzlich zu einer Vergrößerung der Regionen. Eng benachbarte Regionen, die nach Ausführung des Operators zusammenstoßen oder sich überlappen werden weiterhin als zwei getrennte Regionen behandelt. Um eine Vereinigung zweier Regionen zu erreichen muss zuerst ein union1union1Union1Union1Union1 durchgeführt werden.

Ausführungsinformationen

Parameter

RegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHobject

Regionen die verarbeitet werden sollen.

StructElementStructElementStructElementStructElementstructElement (input_object)  region objectHRegionHRegionHobject

Strukturierendes Element für Dilation-Operation.

RegionDilationRegionDilationRegionDilationRegionDilationregionDilation (output_object)  region(-array) objectHRegionHRegionHobject *

Ergebnis der Dilation-Operation.

RowRowRowRowrow (input_control)  point.y HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeile des Bezugspunktes.

Defaultwert: 0

ColumnColumnColumnColumncolumn (input_control)  point.x HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Spalte des Bezugspunktes.

Defaultwert: 0

IterationsIterationsIterationsIterationsiterations (input_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Anzahl der Iterationen.

Defaultwert: 1

Wertevorschläge: 1, 2, 3, 4, 5, 7, 11, 17, 25, 32, 64, 128

Typischer Wertebereich: 1 ≤ Iterations Iterations Iterations Iterations iterations (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

Komplexität

Sei F1 die Fläche einer Eingaberegion und F2 die Fläche des strukturierenden Elementes, dann ist die Laufzeitkomplexität für ein Objekt:

Ergebnis

Bei korrekter Parametrisierung liefert die Funktion dilation2dilation2Dilation2Dilation2Dilation2 den Wert 2 (H_MSG_TRUE). Das Funktionsverhalten für die beiden Fälle leere und keine Eingaberegion lässt sich wie folgt kontrollieren:

Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

thresholdthresholdThresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing, connectionconnectionConnectionConnectionConnection, union1union1Union1Union1Union1, watershedswatershedsWatershedsWatershedsWatersheds, class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNorm, gen_circlegen_circleGenCircleGenCircleGenCircle, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipse, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2, draw_regiondraw_regionDrawRegionDrawRegionDrawRegion, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPoints, gen_region_polygon_filledgen_region_polygon_filledGenRegionPolygonFilledGenRegionPolygonFilledGenRegionPolygonFilled

Nachfolger

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain, add_channelsadd_channelsAddChannelsAddChannelsAddChannels, select_shapeselect_shapeSelectShapeSelectShapeSelectShape, area_centerarea_centerAreaCenterAreaCenterAreaCenter, connectionconnectionConnectionConnectionConnection

Alternativen

minkowski_add1minkowski_add1MinkowskiAdd1MinkowskiAdd1MinkowskiAdd1, minkowski_add2minkowski_add2MinkowskiAdd2MinkowskiAdd2MinkowskiAdd2, dilation1dilation1Dilation1Dilation1Dilation1

Siehe auch

erosion1erosion1Erosion1Erosion1Erosion1, erosion2erosion2Erosion2Erosion2Erosion2, openingopeningOpeningOpeningOpening, closingclosingClosingClosingClosing

Modul

Foundation