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.