direction op• Data kinds: normals → image2d
• Call: import reprconv; reprconv.normals_to_egi(normals, n_az=36, n_el=18) (or opsreprconv.get("normals_to_egi"))
Normals `(N,3) → the extended Gaussian image, an image2d of (n_el, n_az)`.
> The detailed description below is the original text — the summary and the headings are translated.
方向の 2-D ヒストグラム(Horn, *Extended Gaussian Images*, Proc. IEEE 72(12)
1984)。「どの向きの面がどれだけあるか」の地図で、平面が支配的な物体では
1 つの bin に山が立つ。不可逆 —— bin 幅ぶんの方向解像度を捨てる。
捨てた量は測れる: 最頻 bin の中心方向と入力の平均方向の角度差が量子化誤差で、
既定 (36, 18) では bin 幅 10 度に対し実測 3.7 度(`selftest` が出す)。
仰角の bin は `sin(el)` で等分する(等立体角)。度で等分すると極が過剰に
細かくなり、「北極に面が集中している」という嘘の山が立つ。
Args:
normals: (N, 3)。
n_az: 方位の bin 数(既定 36 = 10 度刻み)。
n_el: 仰角の bin 数(既定 18)。
Returns:
(n_el, n_az) float64 の計数マップ(行 = 仰角、列 = 方位)。
Raises:
ValueError: bin 数が 1 未満 / 上限超 / 入力不正。
• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).
• Operator provenance and references — the sources of the research/methods this op family came from.
• The canonical algorithm (author, year) and its uses are named in the family usage guide above.
• representation_conversion — py -3.11 examples/representation_conversion.py
image2d as input)direction)normals_to_angles · angles_to_normals
*Provenance: reprconv.py — REPRCONV operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.