vx_phase — VX gradient op

• Data kinds: image2d × image2d → image2d

• Call: import fullseye as fs; fs.ledger.vx_phase(gx, gy, *, mapping) (to call the implementation directly, import vxcore; vxcore.vx_phase(gx, gy, *, mapping); from the registry, opsvx.get("vx_phase"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

勾配の位相(3.41 節): ϕ = atan2(gy, gx) を 0 ≤ ϕ < 2π に移し、0〜255 に写す(REQ-0364)。出力 U8。

*mapping*(必須): 規格は写し方の丸めを書いていない。`"floor"` = ⌊ϕ·256/(2π)⌋(0 ≤ 値 ≤ 255 が自動で成り立つ)、

`"round"` = ⌊ϕ·256/(2π) + 0.5⌋ mod 256(2π の手前は 0 に巻く)。gx = gy = 0 の画素は atan2 の約束で ϕ = 0。

Raises `ValueError`: S16 の 2-D でない / 形が違う / mapping が一覧に無い。

Detailed usage guide

• openvx_ports family guide

References (sample data, literature)

• 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.

Runnable examples (verified samples that actually call this op)

• (none yet)

Ops the type connects to (they accept image2d as input)

vx_sobel3x3 · vx_magnitude · vx_table_lookup · vx_histogram · vx_nonmax_suppression · vx_warp_affine · vx_warp_perspective · vx_remap

Same category (gradient)

vx_sobel3x3 · vx_magnitude


*Provenance: vxcore.py — VX 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.