资源简介
该文档在MFC的框架中实现了图像的圆心提取程序,内含待处理的图像,可以作为初学者练习使用。程序用到OpenCV库的一些简单函数
代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “圆心坐标提取.h“
#include “MainFrm.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainframe
IMPLEMENT_DYNCREATE(CMainframe CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction
CMainframe::CMainframe()
{
// TODO: add member initialization code here
}
CMainframe::~CMainframe()
{
}
int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1; // fail to create
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1; // fail to create
}
// TODO: Delete these three lines if you don‘t want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}
BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics
#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}
void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 18975 2013-01-16 22:09 圆心坐标提取\1.jpg
文件 20330 2013-01-17 18:15 圆心坐标提取\Debug\MainFrm.obj
文件 0 2013-01-17 18:15 圆心坐标提取\Debug\MainFrm.sbr
文件 106053 2013-01-17 18:15 圆心坐标提取\Debug\StdAfx.obj
文件 1374953 2013-01-17 18:15 圆心坐标提取\Debug\StdAfx.sbr
文件 271360 2013-01-17 19:10 圆心坐标提取\Debug\vc60.idb
文件 438272 2013-01-17 19:08 圆心坐标提取\Debug\vc60.pdb
文件 72285 2013-01-17 18:15 圆心坐标提取\Debug\vision_relate.obj
文件 0 2013-01-17 18:15 圆心坐标提取\Debug\vision_relate.sbr
文件 4244480 2013-01-17 19:08 圆心坐标提取\Debug\圆心坐标提取.bsc
文件 163907 2013-01-17 19:08 圆心坐标提取\Debug\圆心坐标提取.exe
文件 380860 2013-01-17 19:08 圆心坐标提取\Debug\圆心坐标提取.ilk
文件 23178 2013-01-17 18:15 圆心坐标提取\Debug\圆心坐标提取.obj
文件 7066516 2013-01-17 18:15 圆心坐标提取\Debug\圆心坐标提取.pch
文件 549888 2013-01-17 19:08 圆心坐标提取\Debug\圆心坐标提取.pdb
文件 7352 2013-01-12 20:45 圆心坐标提取\Debug\圆心坐标提取.res
文件 0 2013-01-17 18:15 圆心坐标提取\Debug\圆心坐标提取.sbr
文件 14966 2013-01-17 18:15 圆心坐标提取\Debug\圆心坐标提取Doc.obj
文件 0 2013-01-17 18:15 圆心坐标提取\Debug\圆心坐标提取Doc.sbr
文件 45905 2013-01-17 19:08 圆心坐标提取\Debug\圆心坐标提取View.obj
文件 0 2013-01-17 19:08 圆心坐标提取\Debug\圆心坐标提取View.sbr
文件 2513 2013-01-12 20:38 圆心坐标提取\MainFrm.cpp
文件 1581 2013-01-12 20:38 圆心坐标提取\MainFrm.h
文件 4385 2013-01-12 20:38 圆心坐标提取\ReadMe.txt
文件 1078 2013-01-12 20:38 圆心坐标提取\res\Toolbar.bmp
文件 1078 2013-01-12 20:38 圆心坐标提取\res\圆心坐标提取.ico
文件 404 2013-01-12 20:38 圆心坐标提取\res\圆心坐标提取.rc2
文件 1078 2013-01-12 20:38 圆心坐标提取\res\圆心坐标提取Doc.ico
文件 690 2013-01-12 20:45 圆心坐标提取\resource.h
文件 214 2013-01-12 20:38 圆心坐标提取\StdAfx.cpp
............此处省略27个文件信息
- 上一篇:Windows编程大作业
- 下一篇:OpenTSTOOL-1.2
相关资源
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC++实现CMD命令执行与获得返回信息
- 人脸识别(opencv_facedetect_v4l2)
- 基于opencv的模板匹配代码
- VC++基于OpenGL模拟的一个3维空间模型
- 基于VC++的SolidWorks二次开发SolidWorks
- opencv图片扫描以及校正
- opencv手部轮廓识别以及轨迹识别
- opencv2 3D标定.cpp
- 派克变换VC++源码(附文档)
- 基于opencv漫水填充算法综合
- VC++ 串口
- VC++ 大富翁4_大富翁游戏源码
- VC++ 摄像头视频采集与回放源程序
- 转 VC++ 实现电子邮件(Email)发送
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- VC++ 服务程序编写及安装与卸载
- VC++6.0番茄西红柿VAXvirsual assist X完美破
- opencv激光中心线的提取
- 基于改进的fcm算法的图像分割vc++
- VC++6.0 绿色版,免安装,非常好用。
- Microsoft Visual C++ 2005 Redistributable Pack
- VC++MFC课程设计的学生成绩管理系统
- 大智慧365DLL插件设计
- VC++6.0汉化包
- VC++完整商业界面源码(再上传)
- OpenCV Computer Vision Application Programming
- VC++编程技术600个大型项目源码.rar
评论
共有 条评论