各种插值方法


三次样条插值,拉格朗日插值,牛顿插值,B样条插值,cardinal样条插值。使用Romberg积分求弧长,使用二分法在曲线上找特定弧长的点
资源截图
代码片段和文件信息
// Bezier.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “Bezier.h“
#include “BezierDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CBezierApp

BEGIN_MESSAGE_MAP(CBezierApp CWinApp)
//{{AFX_MSG_MAP(CBezierApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CBezierApp construction

CBezierApp::CBezierApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CBezierApp object

CBezierApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CBezierApp initialization

BOOL CBezierApp::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

GdiplusStartup(&gdiplusToken &gdiplusStartupInput NULL);

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CBezierDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

int CBezierApp::ExitInstance() 
{
// TODO: Add your specialized code here and/or call the base class
GdiplusShutdown(gdiplusToken);
return CWinApp::ExitInstance();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      39456  2016-04-28 15:16  三次样条插值Bezier.aps

     文件       1501  2009-02-05 14:29  三次样条插值Bezier.clw

     文件       2303  2009-02-05 10:23  三次样条插值Bezier.cpp

     文件       4446  2009-02-05 14:29  三次样条插值Bezier.dsp

     文件       1441  2009-02-05 10:23  三次样条插值Bezier.h

     文件      82944  2009-02-04 20:15  三次样条插值Bezier.ncb

     文件      51712  2009-02-04 20:15  三次样条插值Bezier.opt

     文件        918  2009-02-05 14:29  三次样条插值Bezier.plg

     文件       7482  2016-04-28 15:16  三次样条插值Bezier.rc

     文件       8340  2016-04-28 14:25  三次样条插值Bezier.vcxproj

     文件       2911  2016-04-28 14:25  三次样条插值Bezier.vcxproj.filters

     文件        143  2016-04-18 16:28  三次样条插值Bezier.vcxproj.user

     文件      14577  2016-04-28 15:37  三次样条插值BezierDlg.cpp

     文件       2885  2016-04-28 15:36  三次样条插值BezierDlg.h

     文件      13410  2016-05-10 16:48  三次样条插值Bspline.cpp

     文件       2384  2016-05-05 09:59  三次样条插值Bspline.h

     文件       9714  2016-05-04 14:02  三次样条插值CardinalSplineInterpolation.cpp

     文件       3032  2016-04-19 20:43  三次样条插值CardinalSplineInterpolation.h

     文件       7569  2016-04-19 18:20  三次样条插值CardinalSplineInterpolation1.cpp

     文件       3084  2016-04-19 18:20  三次样条插值CardinalSplineInterpolation1.h

     文件        535  2001-12-31 15:17  三次样条插值CubicSplineAndBezier.dsw

     文件      82944  2009-02-05 14:29  三次样条插值CubicSplineAndBezier.ncb

     文件      53760  2009-02-05 14:29  三次样条插值CubicSplineAndBezier.opt

     文件   53432320  2016-05-11 21:09  三次样条插值CubicSplineAndBezier.sdf

     文件        878  2016-04-18 16:28  三次样条插值CubicSplineAndBezier.sln

    ..A..H.     40960  2016-05-11 21:09  三次样条插值CubicSplineAndBezier.suo

     文件       9069  2016-05-10 18:14  三次样条插值CubicSplineInterpolation.cpp

     文件       2858  2016-04-25 09:10  三次样条插值CubicSplineInterpolation.h

     文件       4455  2016-04-25 14:31  三次样条插值DebugBezier.Build.CppClean.log

     文件     126464  2016-05-10 16:48  三次样条插值DebugBezier.exe

............此处省略104个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)