ppf_pose_hypotheses — 3D match_pose op

• 数据种类:table × points → table

• 调用: import fullseye as fs; fs.ledger.ppf_pose_hypotheses(model: 'dict', scene_points, scene_normals=None, top_n: 'int' = 5, ref_fraction: 'float' = 0.3, refine: 'bool' = True, k_normals: 'int' = 16, seed: 'int' = 0) -> 'list[PoseHypothesis]'(要直接调用实现,import ppf; ppf.ppf_pose_hypotheses(model: 'dict', scene_points, scene_normals=None, top_n: 'int' = 5, ref_fraction: 'float' = 0.3, refine: 'bool' = True, k_normals: 'int' = 16, seed: 'int' = 0) -> 'list[PoseHypothesis]';从台账取用则 ops3d.get("ppf_pose_hypotheses"))

• GPU:无(仅 CPU 参考实现)

用法

返回 PPF 投票得分最高的 N 个位姿,而不是将投票压缩为单个位姿。

> 以下的详细说明为原文 —— 摘要与标题已翻译。

model is the reusable descriptor from ppf_model. Each result is

a PoseHypothesis containing R, t, raw votes, a bounded score, inlier fraction and ICP RMSE. The score is inlier_fraction / (1 + rmse / model_diameter); it is used only for ranking and is not a calibrated probability. The inlier distance is two PPF distance steps. With refine=False RMSE is measured from the voted pose rather than reported as NaN.

Empty/non-finite input, bad normals, invalid top_n/ref_fraction and an accumulator with no votes raise ValueError. The returned list can contain symmetry-equivalent or same-instance poses; pass it to pose_nms_symmetry when those should be merged.

既存 PPF 表から最良1件へ潰さず上位 N 姿勢を返す。返りは R、t、票、順位用 score、インライア率、ICP RMSE を持つ。空、非有限値、法線不正、無投票は fail-closed。対称で等価な候補の統合は pose_nms_symmetry が担う。

Examples

>>> import numpy as np

>>> x = np.linspace(-1.0, 1.0, 6)

>>> model_points = np.array([(a, b, 0.2*a*b) for a in x for b in x])

>>> normals = np.tile([0.0, 0.0, 1.0], (len(model_points), 1))

>>> descriptor = ppf_model(model_points, normals, angle_bins=24)

>>> t_true = np.array([0.3, -0.2, 1.4])

>>> scene = model_points + t_true

>>> poses = ppf_pose_hypotheses(descriptor, scene, normals, top_n=2, seed=3)

>>> bool(np.linalg.norm(poses[0].t - t_true) < 1e-6)

True

参考(示例数据、文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

可运行的示例(实际调用该算子并已验证的样例)

• bop_pose_stage1 — py -3.11 examples_3d/bop_pose_stage1.py

类型可衔接的下一个算子(可接受 table 作为输入)

pose_nms_symmetry · fuse_to_voxel · mesh_select_lod

同类别(match_pose)

match_phase_3d · match_pca · find_surface_pose · pose_nms_symmetry · moment_axes · match_logpolar_z


*Provenance: ppf.py — 3D 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

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