halcon_ext op• Data kinds: contour → contour
• Call: fullseye.apply(img, "hx_crop_contours", a=0.5, b=0.5) (2-D model = एक image + दो scalar knobs a,b∈[0,1])
• HALCON समकक्ष: crop_contours_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 पर):
▸ hx_crop_contours: knob a को बदलने का figure (docs site)
Knob b को बदलकर (0.1 / 0.5 / 0.9, दूसरा knob default पर):
▸ hx_crop_contours: knob b को बदलने का figure (docs site)
Stages (पहले आने वाले ops → यह op, बाएँ से क्रम में):
▸ hx_crop_contours: stages का figure (docs site)
दूसरी images पर भी (synthetic scene / photo / coins। ऊपर की row में inputs, नीचे की row में उनके outputs। Knobs default पर):
▸ hx_crop_contours: दूसरी images पर output (docs site)
Contour को केंद्र के a×b अनुपात वाले आयत तक crop करता है (केवल range के अंदर के points रखता है)।
हर contour के points में से केवल वे रखे जाते हैं जो image centre (H/2, W/2) से row direction में hh के भीतर और column direction में ww के भीतर हों, जिन contours में 1 भी point नहीं बचता उन्हें हटाकर बाकी लौटाए जाते हैं।
• a → रखी जाने वाली height का आधा hh = (0.3 + 0.6*a) * H/2 (पूरे का 30% से 90%)।
• b → रखी जाने वाली width का आधा ww = (0.3 + 0.6*b) * W/2 (पूरे का 30% से 90%)। a=b=1 पर भी किनारे का 5% हट जाता है।
यह केवल points को हटाता है, split नहीं करता, इसलिए rectangle से बाहर जाकर वापस आने वाले contour के बचे हुए points आपस में जुड़ जाते हैं (jump)। rectangle के बाहर को पूरी तरह ignore करना हो तो बाद में hx_split_contours लगाएँ। image के किनारे से margin तय करने वाला version hx_clip_contours है, 1 ही knob से square window बनाने वाला version xg_crop_contours है।
• gallery2d_halcon_ext 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 hx_crop_contours 0.50 0.50
▸ यह pipeline load करें · Load करके चलाएँ
• gallery2d_halcon_ext — py -3.11 examples/gallery2d_halcon_ext.py
contour को input के रूप में लेते हैं)identity · select_contours · smooth_contours · fit_line_contours · contours_to_region · count_contours · total_length · select_contours_xld
halcon_ext)hx_gen_circle · hx_gen_ellipse · hx_gen_rectangle2 · hx_gen_checker_region · hx_gen_grid_region · hx_gabor · hx_fit_surface1 · hx_fit_surface2
*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.