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_xldGenParallelContourXldGenParallelContourXldGenParallelContourXldgen_parallel_contour_xld berechnet zu jeder der
Eingabekonturen ContoursContoursContoursContourscontourscontours eine parallele Kontur mit dem
Abstand DistanceDistanceDistanceDistancedistancedistance. Die berechneten Konturen werden in
ParallelContoursParallelContoursParallelContoursParallelContoursparallelContoursparallel_contours zurückgegeben. Zur Berechnung der
Parallelkontur wird der Normalenvektor der Eingabekontur in jedem
Konturpunkt benötigt. Der Parameter ModeModeModeModemodemode gibt an, wie die
Normalenvektoren bestimmt werden. Falls ModeModeModeModemodemode =
'gradient'"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_pixEdgesSubPixEdgesSubPixEdgesSubPixedges_sub_pix). Dazu muss bei der
Eingabekontur das Attribut 'edge_direction'"edge_direction""edge_direction""edge_direction""edge_direction""edge_direction" definiert sein
(siehe get_contour_attrib_xldget_contour_attrib_xldGetContourAttribXldGetContourAttribXldGetContourAttribXldget_contour_attrib_xld).
Falls ModeModeModeModemodemode = 'contour_normal'"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""angle" definiert
sein (siehe lines_gausslines_gaussLinesGaussLinesGaussLinesGausslines_gauss oder edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPixedges_sub_pix). Falls
schließlich ModeModeModeModemodemode = 'regression_normal'"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
ContoursContoursContoursContourscontourscontours (input_object) xld_cont-array → objectHXLDContHObjectHXLDContHobject
Zu transformierende Konturen.
ParallelContoursParallelContoursParallelContoursParallelContoursparallelContoursparallel_contours (output_object) xld_cont-array → objectHXLDContHObjectHXLDContHobject *
Parallelkonturen.
ModeModeModeModemodemode (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Modus, mit dem die Richtungsinformation gewonnen wird.
Defaultwert:
'regression_normal'
"regression_normal"
"regression_normal"
"regression_normal"
"regression_normal"
"regression_normal"
Wertevorschläge: 'gradient'"gradient""gradient""gradient""gradient""gradient", 'contour_normal'"contour_normal""contour_normal""contour_normal""contour_normal""contour_normal", 'regression_normal'"regression_normal""regression_normal""regression_normal""regression_normal""regression_normal"
DistanceDistanceDistanceDistancedistancedistance (input_control) number → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Abstand der Parallelkontur.
Defaultwert: 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_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXldgen_contours_skeleton_xld,
lines_gausslines_gaussLinesGaussLinesGaussLinesGausslines_gauss,
lines_facetlines_facetLinesFacetLinesFacetLinesFacetlines_facet,
edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPixedges_sub_pix,
threshold_sub_pixthreshold_sub_pixThresholdSubPixThresholdSubPixThresholdSubPixthreshold_sub_pix
Nachfolger
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXldgen_polygons_xld
Siehe auch
get_contour_xldget_contour_xldGetContourXldGetContourXldGetContourXldget_contour_xld
Modul
Foundation