morph op• Data kinds: image2d × image2d × pairs × pairs → image2d
• Call: import imagemorph; imagemorph.morph(imgA, imgB, ptsA, ptsB, alpha, method='affine', lam=0.0, with_corners=True) (or opsshape2d.get("morph"))
> This operator's description has not been translated yet. The original text follows as it is.
2 枚の画像 A, B を対応点でモーフし、比率 alpha の中間画像を作る。
手順(Beier–Neely 流のメッシュ・モーフ):
1. 中間形状 mid = (1-alpha)·ptsA + alpha·ptsB を作る。
2. A を ptsA→mid へ、B を ptsB→mid へワープ(両者の特徴を mid に揃える)。
3. warp(A), warp(B) を alpha でクロスディゾルブ。
alpha=0 で A、alpha=1 で B に一致する。単純な blend(A,B,alpha) と違い、
目・鼻などの特徴が二重像にならず 1 つに重なる(=「本物の中間」)。
引数:
imgA, imgB: (H,W[,C])、同 shape、[0,1]。
ptsA, ptsB: (K,2) の (x,y)。A と B の対応点(同数・同順)。
alpha: 合成比率 [0,1]。
method: "affine"(区分アフィン, 速い)か "tps"(滑らか)。
lam: TPS の平滑化係数(method="tps" のとき)。
with_corners: True で四隅を固定点に足し、端の穴を防ぐ。
返り値: (H,W[,C]) の中間画像([0,1])。
• shape_description_2d family guide
• 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.
• image_morph — py -3.11 examples/image_morph.py
image2d as input)warp_tps_image · warp_piecewise_affine · blend · morph_sequence
morph)add_frame_corners · warp_tps_image · warp_piecewise_affine · blend · 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.