contour op• Data kinds: contour → region
• Call: fullseye.apply(img, "gen_region_polygon_xld", a=0.5, b=0.5) (2-D model = एक image + दो scalar knobs a,b∈[0,1])
• HALCON समकक्ष: gen_region_polygon_xld (अर्थ और parameters समझने के लिए HALCON reference उपयोगी है)

*Figure synthetic 128×128 input पर सच में चलाकर मिला output है। बाईं ओर input, दाईं ओर output। Point clouds ऊपर से देखे गए scatter के रूप में (brightness = z), 1-D series line के रूप में, volumes z दिशा में maximum-intensity projection के रूप में, videos बीच के frame के रूप में, complex images amplitude के रूप में, और जो return values चित्र नहीं बन सकते वे स्वयं values के रूप में दिखाए जाते हैं।*
Knob a को बदलकर (0.1 / 0.5 / 0.9, दूसरा knob default पर):
▸ gen_region_polygon_xld: knob a को बदलने का figure (docs site)
*Knob b output नहीं बदलता (मापा गया: 0.1 / 0.5 / 0.9 पर एक जैसा)।*
Stages (पहले आने वाले ops → यह op, बाएँ से क्रम में):
▸ gen_region_polygon_xld: stages का figure (docs site)
दूसरी images पर भी (synthetic scene / photo / coins। ऊपर की row में inputs, नीचे की row में उनके outputs। Knobs default पर):
▸ gen_region_polygon_xld: दूसरी images पर output (docs site)
XLD contour (polygon के vertices की sequence) को region (pixel mask) में बदलता है। Contour points को सबसे नज़दीकी pixel पर लगाकर, 1+2a बार binary dilation से रेखा को मोटा करके जोड़ता है। b इस्तेमाल नहीं होता।
HALCON के gen_region_polygon_xld (XLD polygon के अंदर के हिस्से को भरकर region बनाने वाला operation) से अलग, यह implementation polygon के अंदर के हिस्से को नहीं भरता, बल्कि केवल contour रेखा को ही dilation से मोटा करने वाला सन्निकटन है — बंद न होने वाले या स्वयं को काटने वाले contours में परिणाम वास्तविक आंतरिक भराई से मेल नहीं खाता।
• gallery2d_contour_measure family guide
• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।
• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।
• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।
नीचे का program सच में चलता है, यह जाँचा गया है (figure वाला ही input)। Studio की help में यह block buttons बन जाता है, जिनसे इसे वहीं load करके चलाया जा सकता है।
threshold 0.50 0.50 sk_find_contours 0.50 0.50 gen_region_polygon_xld 0.50 0.50
▸ यह pipeline load करें · Load करके चलाएँ
• gallery2d_contour_measure — py -3.11 examples/gallery2d_contour_measure.py
region को input के रूप में लेते हैं)identity · reg_erode · reg_dilate · reg_open · reg_close · fill_holes · select_largest · remove_small
contour)select_contours · smooth_contours · fit_line_contours · contours_to_region · sk_find_contours · edges_sub_pix · lines_gauss · select_contours_xld
*Provenance: ops.py — 2D operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.