flow_to_rgbimage — REPRCONV flow op

Data kinds: flow_densergbimage

Call: import reprconv; reprconv.flow_to_rgbimage(flow, index=None, scale=None) (or opsreprconv.get("flow_to_rgbimage"))

Usage

One slice of a dense scene flow → an `rgbimage` with hue = direction and value = speed.

> The detailed description below is the original text — the summary and the headings are translated.

光学フローの標準的な可視化(色相環)を 3-D フローの z スライスに当てる:

`hue = atan2(dy, dx)(度で 0-360)、value = |(dy, dx)| / scale`、

彩度は 1。dz は捨てる —— 面内成分だけの図であることを明示する

(捨てた成分を色に混ぜると「見えている色が何の量か」が誰にも言えなくなる)。

一方向。色相環の凡例は図の側で必ず一緒に焼くこと(色の意味が書いていない

フロー図は、綺麗なだけで読めない)。

Args:

flow: (3, D, H, W)。

index: 取り出す z スライス(既定 = 中央)。

scale: 明度 1.0 に対応する面内速さ(既定 = そのスライスの最大値。

0 なら全面黒を返す)。

Returns:

(H, W, 3) float64、値域 [0, 1]。

Raises:

ValueError: 密フローでない / index が範囲外 / scale <= 0。

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)

representation_conversionpy -3.11 examples/representation_conversion.py

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

Same category (flow)

flow_magnitude · flow_speed · flow_apply


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