warp_tps_image — SHAPE2D morph op

• 数据种类:image2d × pairs × pairs → image2d

• 调用: import fullseye as fs; fs.ledger.warp_tps_image(img, src_pts, dst_pts, lam=0.0, order=1)(要直接调用实现,import imagemorph; imagemorph.warp_tps_image(img, src_pts, dst_pts, lam=0.0, order=1);从台账取用则 opsshape2d.get("warp_tps_image"))

用法

用薄板样条将 img 的 src_pts 移动到 dst_pts 的平滑变形。

拟合输出坐标 → 输入坐标的逆映射 TPS(dst→src),在整个输出网格上求值并采样。lam=0 时在控制点上严格对应(特征正确落位),lam>0 时使变形平滑。比分段仿射更平滑,但要付出全部像素×控制点的核求值成本。

参数、返回值与 warp_piecewise_affine 相同。

详细使用指南

• shape_description_2d 族使用指南

参考(示例数据、文献)

• 示例数据目录(下载 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_piecewise_affine · blend · morph · morph_sequence

同类别(morph)

add_frame_corners · warp_piecewise_affine · blend · morph · morph_sequence


*Provenance: imagemorph.py — SHAPE2D 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.