您的位置:程序门 -> vc/mfc -> 图形处理/算法



bezier曲线拟合


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


bezier曲线拟合[无满意答案结贴,结贴人:wuzhiwen]
发表于:2007-10-31 09:55:34 楼主
麻烦大家给我一个bezier曲线算法的源码!
发表于:2007-10-31 09:56:151楼 得分:0
google
发表于:2007-10-31 09:57:582楼 得分:0
http://www.360media360.com/bbs/archiver/?tid-296.html
发表于:2007-10-31 09:58:393楼 得分:0
http://blog.csdn.net/hongweijin/archive/2004/10/23/148071.aspx
发表于:2007-10-31 10:00:414楼 得分:0
楼上的,你给的是绘制的!

而我所需要的曲线拟合啊!不是绘制!

我现在是用鼠标在桌面上画,把移动的轨迹点,用bezier拟合出来
发表于:2007-10-31 10:13:265楼 得分:0
自己算不行吗?
发表于:2007-10-31 10:15:146楼 得分:0
其实就是在曲线的四个控制点中,改变其中一个控制点后的曲线变化。
以上的例子中,有输入中间控制点的。
发表于:2007-10-31 11:11:057楼 得分:0
需要自己算控制点的,我不会算
发表于:2007-10-31 11:14:198楼 得分:0
c/c++ code
protected void onpaint(paintevent e) { point [] pt = new point[4]; rectangle rc = this.getclientrect(); int right = rc.getright(); int bottom = rc.getbottom(); pt[0] = new point(right / 4, bottom / 2); pt[1] = new point(right / 2, bottom / 4); pt[2] = new point(right / 2, 3 * bottom / 4); pt[3] = new point(3 * right / 4, bottom / 2); e.graphics.drawbezier(pt); } protected void onresize(event e) { this.invalidate(); }
发表于:2007-10-31 12:06:059楼 得分:0
windows程序设计   有例子
发表于:2007-10-31 13:20:1110楼 得分:0
如果你是问怎么拟合出bezier曲线,建议自己去翻图形学的书,每本都有。
发表于:2007-10-31 13:25:3411楼 得分:0
我只有一个拟largrange合的。bezier的看看算法原理不就可以写了么?

看看这上面有没有:
http://www.chiaai.org/


快速检索

最新资讯
热门点击