morph op• 資料種類:image2d × pairs × pairs → image2d
• 呼叫: import fullseye as fs; fs.ledger.warp_piecewise_affine(img, src_pts, dst_pts, order=1)(要直接呼叫實作,import imagemorph; imagemorph.warp_piecewise_affine(img, src_pts, dst_pts, order=1);從台帳取用則 opsshape2d.get("warp_piecewise_affine"))
將 img 中 src_pts 處的內容移動到 dst_pts 的分段仿射變形。
對 dst_pts 做 Delaunay 三角剖分,求出各輸出像素所屬三角形中的重心座標,以相同的重心座標映射到 src_pts 一側的對應三角形,做逆映射取樣。凸包外側(不屬於任何三角形的像素)以恆等(原位置)取樣,因此把四角加入對應點(add_frame_corners)即可無空洞地覆蓋整幅影像。
參數:
img: (H,W) 或 (H,W,C),[0,1]。
src_pts, dst_pts: (K,2) 的 (x,y)。數量相同、順序相同的對應點。
order: 內插階數(1=雙線性)。
回傳值: 與 img 同 shape、[0,1] 的 float64。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者、年份)與用途見上面的族使用指南。
• shape2d_morph_descriptor_tour — py -3.11 examples/shape2d_morph_descriptor_tour.py
image2d 作為輸入)warp_tps_image · blend · morph · morph_sequence
morph)add_frame_corners · warp_tps_image · blend · morph · morph_sequence
*Provenance: imagemorph.py — SHAPE2D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.