Questions tagged [bspline]

A B-spline (basis spline) is the generalization of the Bézier curve which has minimal support with respect to a given degree, smoothness, and domain partition.

A B-spline (basis spline) is the generalization of the Bézier curve which has minimal support with respect to a given degree, smoothness, and domain partition.

190 questions
0
votes
1 answer

How do I fix the bug in my b-spline implementation: The figure always has a point on 0,0 coordinate

I have implemented Cox deboor's algorithm. However, my b-spline curve always has a point at 0,0 position, making the curve look strange. I am giving below code from scipy with a correct figure, followed by my own implementation which creates the…
Maelstorm
  • 580
  • 2
  • 10
  • 29
0
votes
0 answers

Interpolation along a BSpline

I have a very simple Bspline-- it's two points, in/out normals pointing at each other. In fact, just a line. I wrote a little for-next loop to get positions along the spline, like so: for (float…
KiraHoneybee
  • 495
  • 3
  • 12
0
votes
0 answers

Use B Spline Function on Networkx Graph

I created some Graphs with networkx and now I want to smooth the connections of them with a B-Spline function. I found an very helpful post here for that: B-Spline But if I want to do it like that the order of the points is very important. For some…
0
votes
0 answers

How can I add this external library in my C code?

I have the following C code: #include #include #include #include #include #include #include void pusher(int part, int ntime,long double x[3], long double v[3], long double…
jokerp
  • 157
  • 1
  • 8
0
votes
1 answer

Is it possible that the number of basic functions is more than the number of observations in spline regression?

I want to run regression spline with B-spline basis function. The data is structured in such a way that the number of observations is less than the number of basis functions and I get a good result. But I`m not sure if this is the correct case. Do I…
Bahareh
  • 1
  • 3
0
votes
1 answer

Cannot reconstruct scipy's spline

I am constructing a spine that interpolates well some data I have and I want to store this in a database. I thought that this would be straightforward since I can just take the knots and the coefficients and just create a new spline with them.…
tst
  • 1,117
  • 2
  • 10
  • 21
0
votes
1 answer

Smooth curve fitting with 2D noise data

I am having some trouble with smoothing position data in 2D. I am having a sensor name GNSS which produces position data but GNSS is not accurate and it creates a lot of noise data even it was stable in one place. Here is the sample coordinate in…
0
votes
1 answer

"predict" function in R does not predict on test set

I was trying to fit the data on the training set, and then apply it to the full set to see the result. But the problem is that I have to use a data.frame to store the x and y, since I am planning on using bootstrap. I was doing some testing like…
user9102437
  • 600
  • 1
  • 10
  • 24
0
votes
0 answers

How to export polar graph into piecewise Bezier curves/SVG path in Python

How do I converted a digitalized curve into a list of piecewise Bezier curves for export into SVG PATH. I have a sampled signal which I'd like to present as a polar graph in SVG with Bezier curves. How do I curve fit this with Bezier curves and…
pkuhar
  • 581
  • 6
  • 17
0
votes
0 answers

B-Spline tries to connect itself to the origin when t ~= 1.0

I have a few functions that I have written to calculate a B-spline curve, already given the control points and the desired order. They work fine, however when I input a parameter value of t that is near or equal to 1.0, the points that get plotted…
Gary Allen
  • 1,218
  • 1
  • 13
  • 28
0
votes
0 answers

When I want to draw B-spline curves I have a loop problem

I want to draw b spline curves. I used the binomial expansion for this and I created a function that calculates factorial. int faktoriyel(int don) { int a=1; if(don!=0) { for(int i=don-1; i>0; i--) { …
0
votes
1 answer

Why scipy's splrep shows error on input data?

While using scipy's splrep function to fit a cubic B-Spline for the below given data points, the output comes out to be an array of zeros and it says error with input data. I have checked the conditions written in the doc and input seems sane…
Legolas
  • 653
  • 1
  • 9
  • 17
0
votes
1 answer

Bspline should be redrawn, without deleting all of the rest of the window

In my mousefunc i call a function bspline. It works like this: With your mouse you can put controllpoints and according to these points the bspline is drawn.So if you have drawn three points a curve between those points is displayed. By adding…
buddy
  • 821
  • 2
  • 12
  • 30
0
votes
0 answers

What is a non rational function and how to choose its degree?

I am trying to approximate a surface from a set of given points in 3D space in sets like [[X1,Y1,Z1],[X2,Y2,Z2],.....] and I found this very nice library called geomdl this approximates the surface quite well. but I am not able to understand its…
0
votes
1 answer

How to combine Rational B-spline Surfaces?

How to combine Rational B-spline Surfaces into one or fewer? How do metrics such as tolerance, u/v degree, u/v span influence the final result, if any?
June Wang
  • 499
  • 2
  • 6
  • 20