简体   繁体   English

图像变形场的B样条插值

[英]B-spline interpolation of deformation field for images

I am currently registering some images with Python, but creating my own tool to do so, as the current registration techniques do not suit my goal. 我目前正在使用Python注册一些图片,但是创建了自己的工具来这样做,因为当前的注册技术不符合我的目标。 I want to estimate b-splines of a deformation field but I am having issues extending anything I read about it to 2d images. 我想估计变形场的b样条曲线,但是我在将所学内容扩展到2d图像时遇到了问题。

I already have a list of points that are matched between two images, and the deformation field at the locations...I want to use b-splines to generalize the deformation field to every point in the image. 我已经有了两个图像之间匹配的点的列表,以及这些位置处的变形场...我想使用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)

I have an image that is NxN and control points p that are the locations in the image. 我有一个NxN的图像,而控制点p是图像中的位置。 I was thinking about using scipy.interpolate.BSpline but you already need t, c, k to provide to it. 我正在考虑使用scipy.interpolate.BSpline,但您已经需要t,c,k来提供它了。 All the examples are in 1d, and I guess I have a 3d example. 所有示例都在1d中,我想我有3d示例。 I cannot for the life of me figure anything out regarding the maths. 我一生无法解决关于数学的任何问题。 Has anyone used this before or could see if this is even achieve-able with this function? 有没有人以前使用过此功能,或者是否可以使用此功能实现此功能?

For B-spline curves/surfaces, control points are not the points on the curve/surface. 对于B样条曲线/曲面,控制点不是曲线/曲面上的点。 You sure you already know them just by comparing the distorted image with the original? 您确定仅通过将变形的图像与原始图像进行比较就已经知道它们吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM