thinning thinning Thinning Thinning (Operator)
Name
thinning thinning Thinning Thinning
— Verdünnen einer Region um das Ergebnis von Hit-or-Miss.
Warnung
thinning thinning Thinning Thinning Thinning
ist veraltet und wird nur aus Gründen
der Rückwärtskompatibilität zur Verfügung gestellt.
Signatur
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
thinning thinning Thinning Thinning Thinning
berechnet die Verdünnung der Eingaberegionen
mit morphologischen Operationen. Dazu führt der Operator eine
Hit-or-Miss-Transformation (vgl. hit_or_miss hit_or_miss HitOrMiss HitOrMiss HitOrMiss
) durch und
entfernt die dabei gefundenen Punkte aus den Eingaberegionen. Der
Parameter Iterations Iterations Iterations Iterations iterations
bestimmt die Anzahl der Iterationen,
die durchgeführt werden.
Für die Wahl der strukturierende Elemente StructElement1 StructElement1 StructElement1 StructElement1 structElement1
und StructElement2 StructElement2 StructElement2 StructElement2 structElement2
sowie für Row Row Row Row row
und
Column Column Column Column column
gelten dieselben Empfehlungen wie bei
hit_or_miss hit_or_miss HitOrMiss HitOrMiss HitOrMiss
.
Strukturierende Elemente (StructElement1 StructElement1 StructElement1 StructElement1 structElement1
,
StructElement2 StructElement2 StructElement2 StructElement2 structElement2
) können mit Operatoren wie
gen_circle gen_circle GenCircle GenCircle GenCircle
, gen_rectangle1 gen_rectangle1 GenRectangle1 GenRectangle1 GenRectangle1
, gen_rectangle2 gen_rectangle2 GenRectangle2 GenRectangle2 GenRectangle2
,
gen_ellipse gen_ellipse GenEllipse GenEllipse GenEllipse
, draw_region draw_region DrawRegion DrawRegion DrawRegion
,
gen_region_polygon gen_region_polygon GenRegionPolygon GenRegionPolygon GenRegionPolygon
, gen_region_points gen_region_points GenRegionPoints GenRegionPoints GenRegionPoints
, etc. erzeugt
werden.
Ausführungsinformationen
Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
Automatisch parallelisiert auf Tupelebene.
Parameter
Region Region Region Region region
(input_object) region(-array) →
object HRegion HRegion Hobject
Regionen, die verarbeitet werden sollen.
StructElement1 StructElement1 StructElement1 StructElement1 structElement1
(input_object) region →
object HRegion HRegion Hobject
Strukturierendes Element für den Vordergrund
StructElement2 StructElement2 StructElement2 StructElement2 structElement2
(input_object) region →
object HRegion HRegion Hobject
Strukturierendes Element für den Hintergrund
RegionThin RegionThin RegionThin RegionThin regionThin
(output_object) region(-array) →
object HRegion HRegion Hobject *
Das Ergebnis des Thinning-Operators.
Row Row Row Row row
(input_control) point.y →
HTuple HTuple Htuple (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
Column Column Column Column column
(input_control) point.x →
HTuple HTuple Htuple (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
Iterations Iterations Iterations Iterations iterations
(input_control) integer →
HTuple HTuple Htuple (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
thinning thinning Thinning Thinning Thinning
den Wert 2 (H_MSG_TRUE). Das Funktionsverhalten für
die beiden Fälle leere und keine Eingaberegion lässt sich wie
folgt kontrollieren:
keine Region:
set_system('no_object_result',<RegionResult>)
leere Region:
set_system('empty_region_result',<RegionResult>)
Andernfalls wird eine Fehlerbehandlung durchgeführt.
Vorgänger
threshold threshold Threshold Threshold Threshold
,
regiongrowing regiongrowing Regiongrowing Regiongrowing Regiongrowing
,
connection connection Connection Connection Connection
,
union1 union1 Union1 Union1 Union1
,
watersheds watersheds Watersheds Watersheds Watersheds
,
class_ndim_norm class_ndim_norm ClassNdimNorm ClassNdimNorm ClassNdimNorm
,
gen_circle gen_circle GenCircle GenCircle GenCircle
,
gen_ellipse gen_ellipse GenEllipse GenEllipse GenEllipse
,
gen_rectangle1 gen_rectangle1 GenRectangle1 GenRectangle1 GenRectangle1
,
gen_rectangle2 gen_rectangle2 GenRectangle2 GenRectangle2 GenRectangle2
,
draw_region draw_region DrawRegion DrawRegion DrawRegion
,
gen_region_points gen_region_points GenRegionPoints GenRegionPoints GenRegionPoints
,
gen_region_polygon_filled gen_region_polygon_filled GenRegionPolygonFilled GenRegionPolygonFilled GenRegionPolygonFilled
Nachfolger
reduce_domain reduce_domain ReduceDomain ReduceDomain ReduceDomain
,
select_shape select_shape SelectShape SelectShape SelectShape
,
area_center area_center AreaCenter AreaCenter AreaCenter
,
connection connection Connection Connection Connection
Alternativen
thinning_golay thinning_golay ThinningGolay ThinningGolay ThinningGolay
,
thinning_seq thinning_seq ThinningSeq ThinningSeq ThinningSeq
Siehe auch
hit_or_miss hit_or_miss HitOrMiss HitOrMiss HitOrMiss
Modul
Foundation