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

类型可衔接的下一个算子(可接受 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.