transport_cost — COLORTRANSPORT plan_use op

Data kinds: transport_plan × matrixscalar

Call: import colortransport; colortransport.transport_cost(plan, cost) (or opscolortransport.get("transport_cost"))

Usage

Total cost of a transport plan, `<plan, cost>`. The op that consumes a plan.

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

計画は「行和・列和が周辺分布に一致する」という意味を持つ行列で、普通の

`matrix` として扱うと質量保存が黙って壊れる。ここは計画としての検査

(非負・和が 1 前後)を通してから費用を出す。

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 scalar as input)

Same category (plan_use)

apply_transport


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