intersection_region_contour_xldintersection_region_contour_xldIntersectionRegionContourXldIntersectionRegionContourXldintersection_region_contour_xld (Operator)
Name
intersection_region_contour_xldintersection_region_contour_xldIntersectionRegionContourXldIntersectionRegionContourXldintersection_region_contour_xld — Schneiden einer Kontur mit einer Region.
Signatur
def intersection_region_contour_xld(region: HObject, contour: HObject, mode: str) -> HObject
Beschreibung
Der Operator intersection_region_contour_xldintersection_region_contour_xldIntersectionRegionContourXldIntersectionRegionContourXldintersection_region_contour_xld schneidet die Kontur
ContourContourContourcontourcontour mit der Region RegionRegionRegionregionregion und gibt die Teile der
Kontur, die innerhalb der Region sind, in ContourIntersectionContourIntersectionContourIntersectioncontourIntersectioncontour_intersection
zurück.
Mit ModeModeModemodemode kann die Art der Schnittbestimmung angegeben werden.
Die folgenden Werte sind möglich:
- 'lines'"lines""lines""lines""lines" (Default):
-
Im Modus 'lines'"lines""lines""lines""lines" werden die einzelnen Liniensegmente der
Eingabekontur subpixelgenau mit der Region geschnitten. Dieser Modus
ist in der Regel langsamer als 'points'"points""points""points""points", aber genauer.
Liniensegmente, die nur teilweise innerhalb der Region liegen,
werden gegebenenfalls in mehrere Teilsegmente
zerlegt.
- 'points'"points""points""points""points":
Im Modus 'points'"points""points""points""points" werden stets vollständige Liniensegmente von
ContourContourContourcontourcontour betrachtet. Wenn sowohl der Start- als auch der Endpunkt
eines Liniensegments innerhalb der Region ist, wird das Liniensegment
in die Ausgabe übernommen.
Dieser Modus ist schneller als 'lines'"lines""lines""lines""lines", allerdings auch
ungenauer, insbesondere, wenn die Kontur nur grob abgetastet ist.
So wird ignoriert, falls ein Liniensegment zwischen Start- und Endpunkt
die Region verlässt. Ebenfalls kann ein Liniensegment zwar größtenteils
innerhalb der Region liegen, aber trotzdem nicht in die Ausgabe übernommen
werden, wenn der Start- oder Endpunkt nicht in der Region liegen.
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
RegionRegionRegionregionregion (input_object) region → objectHRegionHObjectHObjectHobject
Eingaberegion.
ContourContourContourcontourcontour (input_object) xld_cont-array → objectHXLDContHObjectHObjectHobject
Eingabekonturen.
ContourIntersectionContourIntersectionContourIntersectioncontourIntersectioncontour_intersection (output_object) xld_cont-array → objectHXLDContHObjectHObjectHobject *
Selektierter Teil der Eingabekontur.
ModeModeModemodemode (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Zu verwendender Modus.
Default:
'lines'
"lines"
"lines"
"lines"
"lines"
Werteliste:
'lines'"lines""lines""lines""lines", 'points'"points""points""points""points"
Vorgänger
thresholdthresholdThresholdThresholdthreshold,
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,
gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldgen_contour_region_xld,
zero_crossing_sub_pixzero_crossing_sub_pixZeroCrossingSubPixZeroCrossingSubPixzero_crossing_sub_pix,
threshold_sub_pixthreshold_sub_pixThresholdSubPixThresholdSubPixthreshold_sub_pix
Alternativen
intersection_closed_contours_xldintersection_closed_contours_xldIntersectionClosedContoursXldIntersectionClosedContoursXldintersection_closed_contours_xld,
intersection_closed_polygons_xldintersection_closed_polygons_xldIntersectionClosedPolygonsXldIntersectionClosedPolygonsXldintersection_closed_polygons_xld
Siehe auch
intersection_closed_contours_xldintersection_closed_contours_xldIntersectionClosedContoursXldIntersectionClosedContoursXldintersection_closed_contours_xld,
intersection_closed_polygons_xldintersection_closed_polygons_xldIntersectionClosedPolygonsXldIntersectionClosedPolygonsXldintersection_closed_polygons_xld,
gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldgen_region_contour_xld
Modul
Foundation