pairs_to_image2d — REPRCONV pairs op

• 数据种类:pairs → image2d

• 调用: import fullseye as fs; fs.ledger.pairs_to_image2d(pairs, shape=(64, 64))(要直接调用实现,import reprconv; reprconv.pairs_to_image2d(pairs, shape=(64, 64));从台账取用则 opsreprconv.get("pairs_to_image2d"))

用法

对 (N,2) → 散点密度图像 (H, W)。pairs 的第三个出口。

将列 0 映射到行方向、列 1 映射到列方向,各自按最小-最大归一化后落入 bin (2-D 直方图)。用于作为相图、相关图来查看,不可逆 (bin 宽度的量化 + 归一化会丢弃绝对值的尺度)。为了能恢复被丢弃的尺度而返回 extent……并不这样做 —— 一旦返回就不再是 image2d

了。如有需要,请使用 pairs_to_table 的 x_min 等。

常数列(最小 == 最大)集中到 0.5 的位置(避免除以 0,但为了不被解读为“密度集中在中央”,只立起 1 个 bin)。

Args:

pairs: (N, 2)。

shape: (H, W)。

Returns:

(H, W) float64,归一化到最大值 1.0 的密度。

Raises:

ValueError: 形状不正确 / 非有限 / shape 超过上限。

参考(示例数据、文献)

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

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

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

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

• representation_conversion — py -3.11 examples/representation_conversion.py

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

keypoints_from_image2d

同类别(pairs)

pairs_to_signal · pairs_to_table


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

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