crop_rectangle2 — MV resample op

• 資料種類:image2d → image2d

• 呼叫: import fullseye as fs; fs.ledger.crop_rectangle2(image, row, col, phi, length1, length2) -> 'np.ndarray'(要直接呼叫實作,import image_gen; image_gen.crop_rectangle2(image, row, col, phi, length1, length2) -> 'np.ndarray';從台帳取用則 opsmv.get("crop_rectangle2"))

• HALCON 對應:crop_rectangle2(其含義與參數可參考 HALCON 手冊)

• GPU:無(僅 CPU 參考實作)

用法

以線性內插讀取旋轉矩形內部,並裁切為軸對齊影像。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

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

詳細使用指南

• machine_vision_classics 族使用指南

參考(範例資料、文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

• 演算法的正典(作者、年份)與用途見上面的族使用指南。

可執行的範例(實際呼叫該運算子並已驗證的樣例)

• 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

型別可銜接的下一個運算子(可接受 image2d 作為輸入)

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

同類別(resample)

map_image · rectify_to_world_plane · change_radial_distortion_image


*Provenance: image_gen.py — MV 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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