gen_parallel_contour_xldgen_parallel_contour_xldGenParallelContourXldGenParallelContourXld (Operator)

Name

gen_parallel_contour_xldgen_parallel_contour_xldGenParallelContourXldGenParallelContourXld — 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)

Beschreibung

gen_parallel_contour_xldgen_parallel_contour_xldGenParallelContourXldGenParallelContourXldGenParallelContourXld berechnet zu jeder der Eingabekonturen ContoursContoursContoursContourscontours eine parallele Kontur mit dem Abstand DistanceDistanceDistanceDistancedistance. Die berechneten Konturen werden in ParallelContoursParallelContoursParallelContoursParallelContoursparallelContours zurückgegeben. Zur Berechnung der Parallelkontur wird der Normalenvektor der Eingabekontur in jedem Konturpunkt benötigt. Der Parameter ModeModeModeModemode gibt an, wie die Normalenvektoren bestimmt werden. Falls ModeModeModeModemode = '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_pixEdgesSubPixEdgesSubPixEdgesSubPix). Dazu muss bei der Eingabekontur das Attribut 'edge_direction'"edge_direction""edge_direction""edge_direction""edge_direction" definiert sein (siehe get_contour_attrib_xldget_contour_attrib_xldGetContourAttribXldGetContourAttribXldGetContourAttribXld). Falls ModeModeModeModemode = '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" definiert sein (siehe lines_gausslines_gaussLinesGaussLinesGaussLinesGauss oder edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPix). Falls schließlich ModeModeModeModemode = '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

ContoursContoursContoursContourscontours (input_object)  xld_cont-array objectHXLDContHXLDContHobject

Zu transformierende Konturen.

ParallelContoursParallelContoursParallelContoursParallelContoursparallelContours (output_object)  xld_cont-array objectHXLDContHXLDContHobject *

Parallelkonturen.

ModeModeModeModemode (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Modus, mit dem die Richtungsinformation gewonnen wird.

Defaultwert: 'regression_normal' "regression_normal" "regression_normal" "regression_normal" "regression_normal"

Wertevorschläge: 'gradient'"gradient""gradient""gradient""gradient", 'contour_normal'"contour_normal""contour_normal""contour_normal""contour_normal", 'regression_normal'"regression_normal""regression_normal""regression_normal""regression_normal"

DistanceDistanceDistanceDistancedistance (input_control)  number HTupleHTupleHtuple (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_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXld, lines_gausslines_gaussLinesGaussLinesGaussLinesGauss, lines_facetlines_facetLinesFacetLinesFacetLinesFacet, edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPix, threshold_sub_pixthreshold_sub_pixThresholdSubPixThresholdSubPixThresholdSubPix

Nachfolger

gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXld

Siehe auch

get_contour_xldget_contour_xldGetContourXldGetContourXldGetContourXld

Modul

Foundation