de boor bspline algorithm
4 次查看(过去 30 天)
显示 更早的评论
hi guys, I'm using de boor b-spline algorithm written by Levente Hunyadi. My question is: Why does he using a 3D Matrix? I don't know if can i share the code here, but his code is downloadable here: bspline The file is bspline_deboor.m
thanks :D
2 个评论
John D'Errico
2016-7-10
Why not ask him? Given this is a fairly large set of functions, that is a question the author can answer far more easily than we could.
回答(1 个)
Bruno Luong
2024-3-17
A very late answer, but as I deal myself with de Boor algorithm I look what exists out there.
If the question concerns the 3D array Pk in bspline_deboor.m then
- the first dimension is the dimension of control points (1, 2 or 3)
- the second and third fimensions are double indices of sub-intervals (or knot indices). In wikipedia it's (i,r) of d_{i,r} where the recursion formula occurs.
Usually optimized implementation people don't keep track of the indice r, since only the last r is used, and remove this index during the recursion, so only 2D is needed, see Wiki pedia link "Optimization" section.
This code b-spline algorithm written by Levente Hunyadi wastes a little bit of memory but it's fine and have clarity.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Splines 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!