blend — SHAPE2D morph op

Data kinds: image2d × image2dimage2d

Call: import fullseye as fs; fs.ledger.blend(a, b, alpha) (to call the implementation directly, import imagemorph; imagemorph.blend(a, b, alpha); from the registry, opsshape2d.get("blend"))

Usage

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

クロスディゾルブ (1-alpha)·a + alpha·b(a,b は同 shape・[0,1])。

画素ごとの線形補間。対応点でのワープはしないので、目や輪郭がずれた

2 枚では二重像になる ―― 特徴を 1 つに重ねたいなら `morph`。

• `a, b: (H, W) または (H, W, C)`、同じ形。float64 に変換する。

NaN は 0、+Inf は 1、-Inf は 0 に無言で置き換える(例外は出ない)。

値域の検査はせず、結果を `[0, 1]` にクリップするだけなので、0〜255 の

画像を渡すと白飛びした絵が返る。

• `alpha: 合成比。[0, 1] に**無言でクリップ**(0 で a、1 で b`)。

• 返り値: 入力と同形の float64、`[0, 1]`。

• 失敗: `ValueError`(次元が 2/3 でない、空、形の不一致)。

`morph_sequence` の各フレームは、ワープ後の 2 枚をこれと同じ式で混ぜている。

Detailed usage guide

shape_description_2d 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)

image_morphpy -3.11 examples/image_morph.py

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

warp_tps_image · warp_piecewise_affine · morph · morph_sequence

Same category (morph)

add_frame_corners · warp_tps_image · warp_piecewise_affine · morph · morph_sequence


*Provenance: imagemorph.py — SHAPE2D 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.