thinningthinningThinningThinning (Operator)

Name

thinningthinningThinningThinning — Verdünnen einer Region um das Ergebnis von Hit-or-Miss.

Warnung

thinningthinningThinningThinningThinning ist veraltet und wird nur aus Gründen der Rückwärtskompatibilität zur Verfügung gestellt.

Signatur

thinning(Region, StructElement1, StructElement2 : RegionThin : Row, Column, Iterations : )

Herror thinning(const Hobject Region, const Hobject StructElement1, const Hobject StructElement2, Hobject* RegionThin, const Hlong Row, const Hlong Column, const Hlong Iterations)

Herror T_thinning(const Hobject Region, const Hobject StructElement1, const Hobject StructElement2, Hobject* RegionThin, const Htuple Row, const Htuple Column, const Htuple Iterations)

void Thinning(const HObject& Region, const HObject& StructElement1, const HObject& StructElement2, HObject* RegionThin, const HTuple& Row, const HTuple& Column, const HTuple& Iterations)

HRegion HRegion::Thinning(const HRegion& StructElement1, const HRegion& StructElement2, Hlong Row, Hlong Column, Hlong Iterations) const

static void HOperatorSet.Thinning(HObject region, HObject structElement1, HObject structElement2, out HObject regionThin, HTuple row, HTuple column, HTuple iterations)

HRegion HRegion.Thinning(HRegion structElement1, HRegion structElement2, int row, int column, int iterations)

Beschreibung

thinningthinningThinningThinningThinning berechnet die Verdünnung der Eingaberegionen mit morphologischen Operationen. Dazu führt der Operator eine Hit-or-Miss-Transformation (vgl. hit_or_misshit_or_missHitOrMissHitOrMissHitOrMiss) durch und entfernt die dabei gefundenen Punkte aus den Eingaberegionen. Der Parameter IterationsIterationsIterationsIterationsiterations bestimmt die Anzahl der Iterationen, die durchgeführt werden.

Für die Wahl der strukturierende Elemente StructElement1StructElement1StructElement1StructElement1structElement1 und StructElement2StructElement2StructElement2StructElement2structElement2 sowie für RowRowRowRowrow und ColumnColumnColumnColumncolumn gelten dieselben Empfehlungen wie bei hit_or_misshit_or_missHitOrMissHitOrMissHitOrMiss.

Strukturierende Elemente (StructElement1StructElement1StructElement1StructElement1structElement1, StructElement2StructElement2StructElement2StructElement2structElement2) 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.

Ausführungsinformationen

Parameter

RegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHobject

Regionen, die verarbeitet werden sollen.

StructElement1StructElement1StructElement1StructElement1structElement1 (input_object)  region objectHRegionHRegionHobject

Strukturierendes Element für den Vordergrund

StructElement2StructElement2StructElement2StructElement2structElement2 (input_object)  region objectHRegionHRegionHobject

Strukturierendes Element für den Hintergrund

RegionThinRegionThinRegionThinRegionThinregionThin (output_object)  region(-array) objectHRegionHRegionHobject *

Das Ergebnis des Thinning-Operators.

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

Zeile des Bezugspunkts.

Defaultwert: 0

Typischer Wertebereich: 0 ≤ Row Row Row Row row ≤ 511 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

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

Spalte des Bezugspunkts.

Defaultwert: 0

Typischer Wertebereich: 0 ≤ Column Column Column Column column ≤ 511 (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

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

Anzahl der Iterationen.

Defaultwert: 1

Wertevorschläge: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 17, 20, 30, 40, 50

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

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

Komplexität

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

Ergebnis

Bei korrekter Parametrisierung liefert die Funktion thinningthinningThinningThinningThinning 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, select_shapeselect_shapeSelectShapeSelectShapeSelectShape, area_centerarea_centerAreaCenterAreaCenterAreaCenter, connectionconnectionConnectionConnectionConnection

Alternativen

thinning_golaythinning_golayThinningGolayThinningGolayThinningGolay, thinning_seqthinning_seqThinningSeqThinningSeqThinningSeq

Siehe auch

hit_or_misshit_or_missHitOrMissHitOrMissHitOrMiss

Modul

Foundation