gen_parallel_contour_xldgen_parallel_contour_xldGenParallelContourXldGenParallelContourXldgen_parallel_contour_xld (Operator)
Name
gen_parallel_contour_xldgen_parallel_contour_xldGenParallelContourXldGenParallelContourXldgen_parallel_contour_xld — Berechnen der Parallelkontur einer XLD-Kontur
Signatur
Beschreibung
gen_parallel_contour_xldgen_parallel_contour_xldGenParallelContourXldGenParallelContourXldgen_parallel_contour_xld berechnet zu jeder der
Eingabekonturen ContoursContoursContourscontourscontours eine parallele Kontur mit dem
Abstand DistanceDistanceDistancedistancedistance. Die berechneten Konturen werden in
ParallelContoursParallelContoursParallelContoursparallelContoursparallel_contours zurückgegeben. Zur Berechnung der
Parallelkontur wird der Normalenvektor der Eingabekontur in jedem
Konturpunkt benötigt. Der Parameter ModeModeModemodemode gibt an, wie die
Normalenvektoren bestimmt werden. Falls ModeModeModemodemode =
'gradient'"gradient""gradient""gradient""gradient", wird angenommen, dass die Eingabekonturen Kanten
sind, und die Normaleninformation aus der Gradientenrichtung der
Kante gewonnen (siehe edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixedges_sub_pix). Dazu muss bei der
Eingabekontur das Attribut 'edge_direction'"edge_direction""edge_direction""edge_direction""edge_direction" definiert sein
(siehe get_contour_attrib_xldget_contour_attrib_xldGetContourAttribXldGetContourAttribXldget_contour_attrib_xld).
Falls ModeModeModemodemode = 'contour_normal'"contour_normal""contour_normal""contour_normal""contour_normal", wird eine eventuell
schon vorhandene Normaleninformation zur Berechnung der Normalen
verwendet. Dazu muss das Konturattribut 'angle'"angle""angle""angle""angle" definiert
sein (siehe lines_gausslines_gaussLinesGaussLinesGausslines_gauss oder edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixedges_sub_pix). Falls
schließlich ModeModeModemodemode = 'regression_normal'"regression_normal""regression_normal""regression_normal""regression_normal", wird die
Normalenrichtung aus einer lokalen Regressionsgeraden in jedem
Konturpunkt bestimmt. Dabei werden die Normalenvektoren so
ausgerichtet, dass sie auf die rechte Seite der Kontur zeigen.
Dieser Modus kann, im Gegensatz zu den ersten zwei Modi, für alle
XLD-Konturen angewendet werden, ganz gleich wie sie erzeugt wurden.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
ContoursContoursContourscontourscontours (input_object) xld_cont-array → objectHXLDContHObjectHObjectHobject
Zu transformierende Konturen.
ParallelContoursParallelContoursParallelContoursparallelContoursparallel_contours (output_object) xld_cont-array → objectHXLDContHObjectHObjectHobject *
Parallelkonturen.
ModeModeModemodemode (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Modus, mit dem die Richtungsinformation gewonnen wird.
Default:
'regression_normal'
"regression_normal"
"regression_normal"
"regression_normal"
"regression_normal"
Wertevorschläge:
'gradient'"gradient""gradient""gradient""gradient", 'contour_normal'"contour_normal""contour_normal""contour_normal""contour_normal", 'regression_normal'"regression_normal""regression_normal""regression_normal""regression_normal"
DistanceDistanceDistancedistancedistance (input_control) number → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Abstand der Parallelkontur.
Default:
1
Wertevorschläge:
0.2, 0.4, 0.6, 0.8, 1, 2, 3, 4, 5, 7, 10, 15, 20, 30, 40, 50
Vorgänger
gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldgen_contours_skeleton_xld,
lines_gausslines_gaussLinesGaussLinesGausslines_gauss,
lines_facetlines_facetLinesFacetLinesFacetlines_facet,
edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixedges_sub_pix,
threshold_sub_pixthreshold_sub_pixThresholdSubPixThresholdSubPixthreshold_sub_pix
Nachfolger
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldgen_polygons_xld
Siehe auch
get_contour_xldget_contour_xldGetContourXldGetContourXldget_contour_xld
Modul
Foundation