• 大小: 15.28MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-03
  • 语言: C/C++
  • 标签: OpenCV  MFC  

资源简介

OpenCV MFC 实现图像处理,在文档中直接进行图像处理,综合了边缘检测,Hough变换等等一些图像处理功能

资源截图

代码片段和文件信息

// MainFrm.cpp : implementation of the CMainframe class
//

#include “stdafx.h“
#include “OpenCVReadImageView.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


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

     文件       6022  2010-08-27 21:42  OpenCVReadImageView\Debug\BuildLog.htm

     文件      11596  2010-01-15 14:42  OpenCVReadImageView\Debug\CNUMBERS.obj

     文件      34795  2010-08-27 21:15  OpenCVReadImageView\Debug\MainFrm.obj

     文件          0  2010-08-27 21:15  OpenCVReadImageView\Debug\MainFrm.sbr

     文件         69  2010-08-27 21:41  OpenCVReadImageView\Debug\mt.dep

     文件      20613  2010-08-27 21:15  OpenCVReadImageView\Debug\Numbers.obj

     文件          0  2010-08-27 21:15  OpenCVReadImageView\Debug\Numbers.sbr

     文件    9268224  2010-08-27 21:42  OpenCVReadImageView\Debug\OpenCVReadImageView.bsc

     文件     125952  2010-08-27 21:41  OpenCVReadImageView\Debug\OpenCVReadImageView.exe

     文件        920  2010-05-12 13:25  OpenCVReadImageView\Debug\OpenCVReadImageView.exe.embed.manifest

     文件        984  2010-05-12 13:25  OpenCVReadImageView\Debug\OpenCVReadImageView.exe.embed.manifest.res

     文件        861  2010-08-27 21:41  OpenCVReadImageView\Debug\OpenCVReadImageView.exe.intermediate.manifest

     文件    1552928  2010-08-27 21:41  OpenCVReadImageView\Debug\OpenCVReadImageView.ilk

     文件      76252  2010-08-27 21:15  OpenCVReadImageView\Debug\OpenCVReadImageView.obj

     文件   28639232  2010-08-27 21:15  OpenCVReadImageView\Debug\OpenCVReadImageView.pch

     文件    4213760  2010-08-27 21:41  OpenCVReadImageView\Debug\OpenCVReadImageView.pdb

     文件       8196  2010-01-20 11:15  OpenCVReadImageView\Debug\OpenCVReadImageView.res

     文件          0  2010-08-27 21:15  OpenCVReadImageView\Debug\OpenCVReadImageView.sbr

     文件      65519  2010-08-27 21:15  OpenCVReadImageView\Debug\OpenCVReadImageViewDoc.obj

     文件          0  2010-08-27 21:15  OpenCVReadImageView\Debug\OpenCVReadImageViewDoc.sbr

     文件     123671  2010-08-27 21:41  OpenCVReadImageView\Debug\OpenCVReadImageViewView.obj

     文件          0  2010-08-27 21:41  OpenCVReadImageView\Debug\OpenCVReadImageViewView.sbr

     文件     465863  2010-08-27 21:15  OpenCVReadImageView\Debug\StdAfx.obj

     文件    3356689  2010-08-27 21:15  OpenCVReadImageView\Debug\StdAfx.sbr

     文件     405504  2010-04-26 10:30  OpenCVReadImageView\Debug\vc60.pdb

     文件    1215488  2010-08-27 21:41  OpenCVReadImageView\Debug\vc90.idb

     文件    2420736  2010-08-27 21:41  OpenCVReadImageView\Debug\vc90.pdb

     文件       2520  2010-01-08 09:59  OpenCVReadImageView\MainFrm.cpp

     文件       1581  2010-01-08 09:59  OpenCVReadImageView\MainFrm.h

     文件       1266  2010-01-15 14:53  OpenCVReadImageView\Numbers.cpp

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

评论

共有 条评论