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

gen_parallel_contour_xld(Contours : ParallelContours : Mode, Distance : )

Herror gen_parallel_contour_xld(const Hobject Contours, Hobject* ParallelContours, const char* Mode, double Distance)

Herror T_gen_parallel_contour_xld(const Hobject Contours, Hobject* ParallelContours, const Htuple Mode, const Htuple Distance)

void GenParallelContourXld(const HObject& Contours, HObject* ParallelContours, const HTuple& Mode, const HTuple& Distance)

HXLDCont HXLDCont::GenParallelContourXld(const HString& Mode, const HTuple& Distance) const

HXLDCont HXLDCont::GenParallelContourXld(const HString& Mode, double Distance) const

HXLDCont HXLDCont::GenParallelContourXld(const char* Mode, double Distance) const

HXLDCont HXLDCont::GenParallelContourXld(const wchar_t* Mode, double Distance) const   (Nur Windows)

static void HOperatorSet.GenParallelContourXld(HObject contours, out HObject parallelContours, HTuple mode, HTuple distance)

HXLDCont HXLDCont.GenParallelContourXld(string mode, HTuple distance)

HXLDCont HXLDCont.GenParallelContourXld(string mode, double distance)

def gen_parallel_contour_xld(contours: HObject, mode: str, distance: Union[float, int]) -> HObject

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

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