blend op• Data kinds: image2d × image2d × mask → image2d
• Call: import colortransport; colortransport.poisson_blend(src, dst, mask, offset=(0, 0)) (or opscolortransport.get("poisson_blend"))
Seamless compositing that carries the gradient field (Pérez, Gangnet & Blake, SIGGRAPH 2003).
> The detailed description below is the original text — the summary and the headings are translated.
`mask の内部で **src の勾配**を保ちつつ、**境界で dst` の値**に
一致する像を解く。よって出力は次の 2 つを構成上満たし、
それが正しさの検算になる:
• 内部のラプラシアンが `src` のラプラシアンと一致(解の残差ぶんまで)
• マスクの外は `dst` と厳密に一致(1 画素も触らない)
貼った物の色は変わる。 それが目的の処理だが、「貼った物体の色を測る」
用途にそのまま流すと測っているのは貼り先の色になる。返り値は
`(blended, info) で、info["changed_pixels"]` と
`info["max_shift"]` が実際にどれだけ動いたかを言う。
Parameters
----------
src : array_like
貼る絵。`(H, W) または (H, W, C)`。
dst : array_like
貼り先。`src` 以上の大きさ。
mask : array_like
`src と同じ (H, W)` の真偽値。縁に接していてはいけない
(境界条件が取れないため明示的に拒否する)。
offset : (int, int)
`dst の中で src の左上を置く (row, col)`。
Returns
-------
(ndarray, dict)
• colorimetry — 測色と分光の知識 — 色は「分光 × 光源 × 観測者」でしか決まらない
• 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.
• color_transport — py -3.11 examples/color_transport.py
image2d as input)blend)—
*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.