gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldgen_polygons_xld (Operator)

Name

gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldgen_polygons_xld — Approximieren von Polygonen an XLD-Konturen.

Signatur

gen_polygons_xld(Contours : Polygons : Type, Alpha : )

Herror gen_polygons_xld(const Hobject Contours, Hobject* Polygons, const char* Type, double Alpha)

Herror T_gen_polygons_xld(const Hobject Contours, Hobject* Polygons, const Htuple Type, const Htuple Alpha)

void GenPolygonsXld(const HObject& Contours, HObject* Polygons, const HTuple& Type, const HTuple& Alpha)

HXLDPoly HXLDCont::GenPolygonsXld(const HString& Type, const HTuple& Alpha) const

HXLDPoly HXLDCont::GenPolygonsXld(const HString& Type, double Alpha) const

HXLDPoly HXLDCont::GenPolygonsXld(const char* Type, double Alpha) const

HXLDPoly HXLDCont::GenPolygonsXld(const wchar_t* Type, double Alpha) const   ( Nur Windows)

static void HOperatorSet.GenPolygonsXld(HObject contours, out HObject polygons, HTuple type, HTuple alpha)

HXLDPoly HXLDCont.GenPolygonsXld(string type, HTuple alpha)

HXLDPoly HXLDCont.GenPolygonsXld(string type, double alpha)

def gen_polygons_xld(contours: HObject, type: str, alpha: Union[float, int]) -> HObject

Beschreibung

Mit gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldgen_polygons_xld werden, unter Angabe eines Approximationsverfahrens TypeTypeTypetypetype und eines Schwellenwertes AlphaAlphaAlphaalphaalpha, XLD-Konturen, die in ContoursContoursContourscontourscontours 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 PolygonsPolygonsPolygonspolygonspolygons 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 AlphaAlphaAlphaalphaalpha Pixeleinheiten beträgt.

Ausführungsinformationen

Parameter

ContoursContoursContourscontourscontours (input_object)  xld_cont-array objectHXLDContHObjectHObjectHobject

Konturen, die approximiert werden sollen.

PolygonsPolygonsPolygonspolygonspolygons (output_object)  xld_poly-array objectHXLDPolyHObjectHObjectHobject *

Approximierende Polygone.

TypeTypeTypetypetype (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name des Polygonverfahrens.

Default: 'ramer' "ramer" "ramer" "ramer" "ramer"

Werteliste: 'ramer'"ramer""ramer""ramer""ramer"

AlphaAlphaAlphaalphaalpha (input_control)  number HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Schwellenwert der Polygonapproximation.

Default: 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_xldGenContoursSkeletonXldGenContoursSkeletonXldgen_contours_skeleton_xld, lines_gausslines_gaussLinesGaussLinesGausslines_gauss, lines_facetlines_facetLinesFacetLinesFacetlines_facet, edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixedges_sub_pix

Nachfolger

gen_parallels_xldgen_parallels_xldGenParallelsXldGenParallelsXldgen_parallels_xld, split_contours_xldsplit_contours_xldSplitContoursXldSplitContoursXldsplit_contours_xld

Siehe auch

get_region_polygonget_region_polygonGetRegionPolygonGetRegionPolygonget_region_polygon

Modul

Foundation