Hello all,
I have read some tutorials for bezier curve such as this one http://www.codeproject.com/KB/recipes/BezirCurves.aspx.
The basic idea to create bezier curve is to use some control points and make decision how many new points need to be created. And then interpolate those new points.
Here is the question:
Assume I have 1000 points and I would like to interpolate 2000 points more. The number of control points I want to use is 5. The parameter t is in the range of [0, 1].
Givens points P0, P1, P2, P3, P4, P5, P6, ...P1000. I can use P0-P4 to generate new points, then what's next? use P5-P9 to generate new points??? I can immediately see there is a sudden transform between P4 and P5.
How can I solve this issue?
Thank you
///////////////////////////////////////////////////// Hello Stargazer712,
I understand your comments until it reaches the implementation method.
Assume we have the following points:
A1->A2->A3->A4->A5->A6->A7->A8 initial points
You said that we need to add a new point at the midpoint of every other pair.
My question is what the order of the new point is?
Let use use this annotation (A1+A3)/2 == A12
Now generated new points are
A13 A24 A35 A46 A57 A68 (this is what you mean "every other pair"?
Where should I insert those points into the original list?
The contour I am working on is extracted from binary image. The generated contour is zig-zag shape. After I apply this smooth method, it shape doesn't improve too much. I think the major reason is that the neighbors are near each other and make the interpolation not that useful.
Thank you
////////////////////////////////////////////////////