图像变形场的B样条插值

问题描述 投票:1回答:1

我目前正在使用Python注册一些图像,但创建我自己的工具,因为当前的注册技术不适合我的目标。我想估计一个变形场的b样条,但我有问题将我读到的任何内容扩展到2d图像。

我已经有了两个图像之间匹配的点列表,以及位置处的变形场...我想使用b样条将变形场概括为图像中的每个点。

# Find control points in the image
# p is a vector 2xnumber of control points
p = find_control_points(live_im)

# Find deformation of control points
# d is 1xnumber of control points
d = det_best_match(mask_im, live_im, p)

我的图像是NxN,控制点p是图像中的位置。我正在考虑使用scipy.interpolate.BSpline,但你已经需要t,c,k来提供它。所有的例子都在1d,我想我有一个3d例子。我不能因为我的生活对数学有所了解。有没有人以前用过这个或者能看到这个功能是否可以实现?

python image registration spline bspline
1个回答
0
投票

对于B样条曲线/曲面,控制点不是曲线/曲面上的点。你确定你已经通过比较扭曲的图像和原始图像来了解它们吗?

© www.soinside.com 2019 - 2024. All rights reserved.