gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldgen_polygons_xld (Operator)
Name
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldgen_polygons_xld — Approximieren von Polygonen an XLD-Konturen.
Signatur
def gen_polygons_xld(contours: HObject, type: str, alpha: Union[float, int]) -> HObject
Beschreibung
Mit gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXldgen_polygons_xld werden, unter Angabe eines
Approximationsverfahrens TypeTypeTypeTypetypetype und eines Schwellenwertes
AlphaAlphaAlphaAlphaalphaalpha, XLD-Konturen, die in ContoursContoursContoursContourscontourscontours
abgespeichert sind, approximiert. Es werden Polygone berechnet, mit
deren Stützpunkten die Konturen angenähert werden können. Es
können dabei sowohl offene als auch geschlossene Konturen
approximiert werden. Die gewonnenen Stützpunkte werden in dem
Parameter PolygonsPolygonsPolygonsPolygonspolygonspolygons zurückgegeben.
Es steht das Verfahren von Ramer, in welchem die Konturen so
approximiert werden, dass der euklidische Abstand eines jeden
Konturpunktes von der Polygonlinie höchstens AlphaAlphaAlphaAlphaalphaalpha
Pixeleinheiten beträgt.
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
Konturen, die approximiert werden sollen.
PolygonsPolygonsPolygonsPolygonspolygonspolygons (output_object) xld_poly-array → objectHXLDPolyHObjectHXLDPolyHobject *
Approximierende Polygone.
TypeTypeTypeTypetypetype (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name des Polygonverfahrens.
Defaultwert:
'ramer'
"ramer"
"ramer"
"ramer"
"ramer"
"ramer"
Werteliste: 'ramer'"ramer""ramer""ramer""ramer""ramer"
AlphaAlphaAlphaAlphaalphaalpha (input_control) number → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Schwellenwert der Polygonapproximation.
Defaultwert: 2.0
Wertevorschläge: 1.0, 1.5, 2.0, 3.0, 4.0
Restriktion: Alpha > 0.0
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
Nachfolger
gen_parallels_xldgen_parallels_xldGenParallelsXldGenParallelsXldGenParallelsXldgen_parallels_xld,
split_contours_xldsplit_contours_xldSplitContoursXldSplitContoursXldSplitContoursXldsplit_contours_xld
Siehe auch
get_region_polygonget_region_polygonGetRegionPolygonGetRegionPolygonGetRegionPolygonget_region_polygon
Modul
Foundation