apply_transport — COLORTRANSPORT plan_use op

Data kinds: transport_plan × signalsignal

Call: import colortransport; colortransport.apply_transport(plan, target_values) (or opscolortransport.get("apply_transport"))

Usage

Pull `target_values` back onto the source points through a transport plan (the barycentric map).

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

各行(送り元)について、運んだ質量で重み付けした行き先の値の平均を返す。

これが「計画を使って絵を直す」入口 ―― 計画を作るだけで使い道が無いと、

:func:sinkhorn の出力は台帳の袋小路になる(この repo が繰り返し踏んできた

「入口はあるが消費 op が無い型」の形)。

質量ゼロの行は行き先が無い ―― 0 で埋めると「黒い画素」が黙って混ざるので

`ValueError`。

Background guides (the physics and conventions behind this op)

colorimetry — 測色と分光の知識 — 色は「分光 × 光源 × 観測者」でしか決まらない

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)

color_transportpy -3.11 examples/color_transport.py

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

wasserstein_1d · transport_plan_1d · sinkhorn · sinkhorn_distance · sinkhorn_divergence

Same category (plan_use)

transport_cost


*Provenance: colortransport.py — COLORTRANSPORT 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.