de boor bspline algorithm

조회 수: 11 (최근 30일)
Graziano Fuccio
Graziano Fuccio 2016년 7월 10일
답변: Bruno Luong 2024년 3월 17일
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
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.
Graziano Fuccio
Graziano Fuccio 2016년 7월 10일
I asked him, but im not sure which he answer me :(

댓글을 달려면 로그인하십시오.

답변 (1개)

Bruno Luong
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.

카테고리

Help CenterFile Exchange에서 Splines에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by