crop_rectangle2 — MV resample op

• Data kinds: image2d → image2d

• Call: import fullseye as fs; fs.ledger.crop_rectangle2(image, row, col, phi, length1, length2) -> 'np.ndarray' (implementation को सीधे call करना हो तो import image_gen; image_gen.crop_rectangle2(image, row, col, phi, length1, length2) -> 'np.ndarray', registry से लेना हो तो opsmv.get("crop_rectangle2"))

• HALCON समकक्ष: crop_rectangle2 (अर्थ और parameters समझने के लिए HALCON reference उपयोगी है)

• GPU: नहीं (केवल CPU reference implementation)

उपयोग

घूमे आयत के भीतर को रैखिक इंटरपोलेशन से पढ़कर अक्ष-संरेखित छवि के रूप में काटता है।

> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।

矩形は中心 (row, col)、長軸の半分 length1、短軸の半分 length2、向き phi [rad]。向きはこの repo の矩形(gen_rectangle2_contour_xld)と同じで、phi が正だと長軸は右へ進むほど行が増える。出力は (2 length2 + 1, 2 length1 + 1)。空の入力(image が 0 要素)は ValueError。

उपयोग की विस्तृत guide

• machine_vision_classics family guide

संदर्भ (sample data, साहित्य)

• 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 में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• machine_vision_tour — py -3.11 examples/machine_vision_tour.py

• poc_mixed_case_depalletizing — py -3.11 examples/poc_mixed_case_depalletizing.py

• poc_real_stereo_multiscanline — py -3.11 examples/poc_real_stereo_multiscanline.py

वे अगले ops जिनसे type जुड़ता है (image2d को input के रूप में लेते हैं)

binocular_disparity_ms · binocular_distance_ms · reconstruct_surface_stereo · map_image · rectify_to_world_plane · change_radial_distortion_image · atan2_image · area_center_gray

इसी category के (resample)

map_image · rectify_to_world_plane · change_radial_distortion_image


*Provenance: image_gen.py — MV operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.