thinningthinningThinningThinningthinning (Operator)

Name

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

Warnung

thinningthinningThinningThinningThinningthinning 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)

def thinning(region: HObject, struct_element_1: HObject, struct_element_2: HObject, row: int, column: int, iterations: int) -> HObject

Beschreibung

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

Für die Wahl der strukturierende Elemente StructElement1StructElement1StructElement1StructElement1structElement1struct_element_1 und StructElement2StructElement2StructElement2StructElement2structElement2struct_element_2 sowie für RowRowRowRowrowrow und ColumnColumnColumnColumncolumncolumn gelten dieselben Empfehlungen wie bei hit_or_misshit_or_missHitOrMissHitOrMissHitOrMisshit_or_miss.

Strukturierende Elemente (StructElement1StructElement1StructElement1StructElement1structElement1struct_element_1, StructElement2StructElement2StructElement2StructElement2structElement2struct_element_2) können mit Operatoren wie gen_circlegen_circleGenCircleGenCircleGenCirclegen_circle, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1gen_rectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2gen_rectangle2, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipsegen_ellipse, draw_regiondraw_regionDrawRegionDrawRegionDrawRegiondraw_region, gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygongen_region_polygon, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPointsgen_region_points, etc. erzeugt werden.

Ausführungsinformationen

Parameter

RegionRegionRegionRegionregionregion (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Regionen, die verarbeitet werden sollen.

StructElement1StructElement1StructElement1StructElement1structElement1struct_element_1 (input_object)  region objectHRegionHObjectHRegionHobject

Strukturierendes Element für den Vordergrund

StructElement2StructElement2StructElement2StructElement2structElement2struct_element_2 (input_object)  region objectHRegionHObjectHRegionHobject

Strukturierendes Element für den Hintergrund

RegionThinRegionThinRegionThinRegionThinregionThinregion_thin (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Das Ergebnis des Thinning-Operators.

RowRowRowRowrowrow (input_control)  point.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeile des Bezugspunkts.

Defaultwert: 0

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

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

ColumnColumnColumnColumncolumncolumn (input_control)  point.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Spalte des Bezugspunkts.

Defaultwert: 0

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

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

IterationsIterationsIterationsIterationsiterationsiterations (input_control)  integer HTupleintHTupleHtuple (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 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 thinningthinningThinningThinningThinningthinning den Wert 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

thresholdthresholdThresholdThresholdThresholdthreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, connectionconnectionConnectionConnectionConnectionconnection, union1union1Union1Union1Union1union1, watershedswatershedsWatershedsWatershedsWatershedswatersheds, class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNormclass_ndim_norm, gen_circlegen_circleGenCircleGenCircleGenCirclegen_circle, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipsegen_ellipse, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1gen_rectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2gen_rectangle2, draw_regiondraw_regionDrawRegionDrawRegionDrawRegiondraw_region, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPointsgen_region_points, gen_region_polygon_filledgen_region_polygon_filledGenRegionPolygonFilledGenRegionPolygonFilledGenRegionPolygonFilledgen_region_polygon_filled

Nachfolger

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

Alternativen

thinning_golaythinning_golayThinningGolayThinningGolayThinningGolaythinning_golay, thinning_seqthinning_seqThinningSeqThinningSeqThinningSeqthinning_seq

Siehe auch

hit_or_misshit_or_missHitOrMissHitOrMissHitOrMisshit_or_miss

Modul

Foundation