morph op• Data kinds: image2d × image2d × pairs × pairs → images
• Call: import fullseye as fs; fs.ledger.morph_sequence(imgA, imgB, ptsA, ptsB, n=7, method='affine', lam=0.0, with_corners=True) (implementation को सीधे call करना हो तो import imagemorph; imagemorph.morph_sequence(imgA, imgB, ptsA, ptsB, n=7, method='affine', lam=0.0, with_corners=True), registry से लेना हो तो opsshape2d.get("morph_sequence"))
alpha को 0→1 तक n step में बदलकर बना morph क्रम (A से B तक smooth रूप से बदलते frame)।
return value: लंबाई n की list। पहला A से और अंतिम B से मेल खाता है।
alpha = linspace(0, 1, n) के हर मान पर बस morph(imgA, imgB, ptsA, ptsB, alpha, method, lam, with_corners) call करता है। हर frame के 3 चरण हैं: (1) मध्य points (1-α) ptsA + α ptsB बनाना, (2) A और B को अलग-अलग वहाँ warp करना,
(3) α से cross-dissolve करना। हर frame में 2 warps, इसलिए
लागत n के अनुपात में है (n=7 पर 14 बार)।
• imgA, imgB: (H, W[, C]), समान shape, [0, 1]। NaN/Inf चुपचाप 0 / 1 से बदल दिए जाते हैं।
• ptsA, ptsB: (K, 2) के (x, y), समान संख्या और समान क्रम के corresponding points।
• n: 2 या अधिक (1 या कम पर ValueError)। int में काटा जाता है।
• method: "affine" (Delaunay piecewise affine, तेज़) / "tps" (thin-plate spline, smooth)। इसके अलावा कुछ भी हो तो ValueError। lam TPS का smoothing coefficient है (0 पर सटीक interpolation)।
• with_corners: True पर add_frame_corners को दोनों point sets में जोड़कर frame के बाहर के छेद रोकता है।
• return value: n float64 arrays की list (images type)। [0, 1] में पहले से clip।
केवल 1 image चाहिए (उदा. α = 0.5 का मध्य चेहरा) तो सीधे morph।
• shape_description_2d family guide
• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।
• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।
• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।
• image_morph — py -3.11 examples/image_morph.py
images को input के रूप में लेते हैं)—
morph)add_frame_corners · warp_tps_image · warp_piecewise_affine · blend · morph
*Provenance: imagemorph.py — SHAPE2D operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.