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 参照実装のみ)
回転矩形の内側を線形補間で読み、軸に沿った画像として切り出す(crop_rectangle2)。
矩形は中心 (row, col)、長軸の半分 length1、短軸の半分 length2、向き phi [rad]。向きはこの repo の矩形(gen_rectangle2_contour_xld)と同じで、phi が正だと長軸は右へ進むほど行が増える。出力は (2 length2 + 1, 2 length1 + 1)。空の入力(image が 0 要素)は ValueError。
• machine_vision_classics ファミリ ガイド
• サンプルデータ カタログ(DL URL / ライセンス) — 2-D は skimage.data(BSD/public)+ 合成、3-D は実データ源(Stanford/PDS 等)の DL URL。
• 演算子の来歴・参考文献 — この op 族の元になった研究/手法の出典。
• アルゴリズムの正典(著者・年)と用途は上記ファミリ使い方ガイドに記載。
• 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 operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.