shape_trans_xldshape_trans_xldShapeTransXldShapeTransXldshape_trans_xld (Operator)
Name
shape_trans_xldshape_trans_xldShapeTransXldShapeTransXldshape_trans_xld — Transformation der Form von Konturen oder Polygonen.
Signatur
Herror shape_trans_xld(const Hobject XLD, Hobject* XLDTrans, const char* Type)
Herror T_shape_trans_xld(const Hobject XLD, Hobject* XLDTrans, const Htuple Type)
def shape_trans_xld(xld: HObject, type: str) -> HObject
Beschreibung
shape_transshape_transShapeTransShapeTransShapeTransshape_trans dient zur Transformation von
Konturen oder Polygonen in Abhängigkeit von TypeTypeTypeTypetypetype:
- 'convex'
Konvexe Hülle.
- 'ellipse'
Ellipse mit den gleichen Momenten und Fläche wie die Eingabekontur.
Es ist darauf zu achten, dass sich die geschlossene Eingabekontur bzw. das
geschlossene Eingabepolygon nicht selbst schneidet, da die zurückgelieferte
Ellipse ansonsten nicht aussagekräftig ist (Ob sich die Eingabekontur bzw.
das Eingabepolygon selbst schneidet oder nicht, lässt sich mit
test_self_intersection_xldtest_self_intersection_xldTestSelfIntersectionXldTestSelfIntersectionXldTestSelfIntersectionXldtest_self_intersection_xld überprüfen).
- 'outer_circle'
Kleinster umschließender Kreis.
- 'rectangle1'
Kleinstes umschließendes Rechteck parallel zu den Koordinatenachsen.
- 'rectangle2'
Kleinstes umschließendes Rechteck.
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
XLDXLDXLDXLDXLDxld (input_object) xld(-array) → objectHXLDHObjectHXLDHobject
Zu transformierende Konturen bzw. Polygone.
XLDTransXLDTransXLDTransXLDTransXLDTransxldtrans (output_object) xld(-array) → objectHXLDHObjectHXLDHobject *
Transformierte Konturen bzw. Polygone.
TypeTypeTypeTypetypetype (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Art der Transformation.
Defaultwert:
'convex'
"convex"
"convex"
"convex"
"convex"
"convex"
Werteliste: 'convex'"convex""convex""convex""convex""convex", 'ellipse'"ellipse""ellipse""ellipse""ellipse""ellipse", 'outer_circle'"outer_circle""outer_circle""outer_circle""outer_circle""outer_circle", 'rectangle1'"rectangle1""rectangle1""rectangle1""rectangle1""rectangle1", 'rectangle2'"rectangle2""rectangle2""rectangle2""rectangle2""rectangle2"
Ergebnis
shape_trans_xldshape_trans_xldShapeTransXldShapeTransXldShapeTransXldshape_trans_xld liefert den Wert 2 (H_MSG_TRUE), falls die
Parameterwerte korrekt sind. Das Verhalten bei leerer Eingabe
(keine Eingabekontur vorhanden) lässt sich mittels
set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>) festlegen.
Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.
Vorgänger
gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXldgen_contours_skeleton_xld,
edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPixedges_sub_pix,
threshold_sub_pixthreshold_sub_pixThresholdSubPixThresholdSubPixThresholdSubPixthreshold_sub_pix,
gen_contour_polygon_xldgen_contour_polygon_xldGenContourPolygonXldGenContourPolygonXldGenContourPolygonXldgen_contour_polygon_xld,
test_self_intersection_xldtest_self_intersection_xldTestSelfIntersectionXldTestSelfIntersectionXldTestSelfIntersectionXldtest_self_intersection_xld
Alternativen
smallest_circle_xldsmallest_circle_xldSmallestCircleXldSmallestCircleXldSmallestCircleXldsmallest_circle_xld,
smallest_rectangle1_xldsmallest_rectangle1_xldSmallestRectangle1XldSmallestRectangle1XldSmallestRectangle1Xldsmallest_rectangle1_xld,
smallest_rectangle2_xldsmallest_rectangle2_xldSmallestRectangle2XldSmallestRectangle2XldSmallestRectangle2Xldsmallest_rectangle2_xld,
elliptic_axis_xldelliptic_axis_xldEllipticAxisXldEllipticAxisXldEllipticAxisXldelliptic_axis_xld
Siehe auch
smallest_circle_xldsmallest_circle_xldSmallestCircleXldSmallestCircleXldSmallestCircleXldsmallest_circle_xld,
smallest_rectangle1_xldsmallest_rectangle1_xldSmallestRectangle1XldSmallestRectangle1XldSmallestRectangle1Xldsmallest_rectangle1_xld,
smallest_rectangle2_xldsmallest_rectangle2_xldSmallestRectangle2XldSmallestRectangle2XldSmallestRectangle2Xldsmallest_rectangle2_xld,
elliptic_axis_xldelliptic_axis_xldEllipticAxisXldEllipticAxisXldEllipticAxisXldelliptic_axis_xld
Modul
Foundation