• 大小: 3.31MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-15
  • 语言: 其他
  • 标签: 图像分割  

资源简介

很好的例子,图像分割的实现及效果,适合新手同学

资源截图

代码片段和文件信息

// opencv应用示例.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “opencv应用示例.h“
#include “opencv应用示例Dlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// COpencvApp

BEGIN_MESSAGE_MAP(COpencvApp CWinApp)
//{{AFX_MSG_MAP(COpencvApp)
// 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()

/////////////////////////////////////////////////////////////////////////////
// COpencvApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only COpencvApp object

COpencvApp theApp;

/////////////////////////////////////////////////////////////////////////////
// COpencvApp initialization

BOOL COpencvApp::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.

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

COpencvDlg 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;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-05-09 02:52  opencv应用示例\
     目录           0  2013-05-02 10:46  opencv应用示例\Debug\
     文件      118861  2013-05-09 00:37  opencv应用示例\Debug\opencv应用示例.exe
     文件      243924  2013-05-09 00:37  opencv应用示例\Debug\opencv应用示例.ilk
     文件       15091  2013-05-02 10:46  opencv应用示例\Debug\opencv应用示例.obj
     文件     5626620  2013-05-02 10:46  opencv应用示例\Debug\opencv应用示例.pch
     文件      304128  2013-05-02 10:46  opencv应用示例\Debug\opencv应用示例.pdb
     文件        2844  2013-05-02 10:46  opencv应用示例\Debug\opencv应用示例.res
     文件       62862  2013-05-09 00:37  opencv应用示例\Debug\opencv应用示例Dlg.obj
     文件      105887  2013-05-02 10:46  opencv应用示例\Debug\StdAfx.obj
     文件      222208  2013-05-09 00:37  opencv应用示例\Debug\vc60.idb
     文件      389120  2013-05-02 10:46  opencv应用示例\Debug\vc60.pdb
     目录           0  2013-05-02 10:44  opencv应用示例\DirectShow\
     目录           0  2013-05-02 10:44  opencv应用示例\DirectShow\Include\
     文件         631  2011-04-30 16:26  opencv应用示例\DirectShow\Include\activecf.h
     文件        1826  2011-04-30 16:26  opencv应用示例\DirectShow\Include\amaudio.h
     文件        1065  2011-04-30 16:26  opencv应用示例\DirectShow\Include\amparse.h
     文件       73261  2011-04-30 16:26  opencv应用示例\DirectShow\Include\amstream.h
     文件        3974  2011-04-30 16:26  opencv应用示例\DirectShow\Include\amva.h
     文件       19851  2011-04-30 16:26  opencv应用示例\DirectShow\Include\Amvideo.h
     文件        1097  2011-04-30 16:26  opencv应用示例\DirectShow\Include\atsmedia.h
     文件        1532  2011-04-30 16:26  opencv应用示例\DirectShow\Include\audevcod.h
     文件       20543  2011-04-30 16:26  opencv应用示例\DirectShow\Include\austream.h
     文件       13805  2011-04-30 16:26  opencv应用示例\DirectShow\Include\aviriff.h
     文件        6820  2011-04-30 16:26  opencv应用示例\DirectShow\Include\basetsd.h
     文件      125594  2011-04-30 16:26  opencv应用示例\DirectShow\Include\bdaiface.h
     文件       54539  2011-04-30 16:26  opencv应用示例\DirectShow\Include\bdamedia.h
     文件       53527  2011-04-30 16:26  opencv应用示例\DirectShow\Include\Bdatif.h
     文件       15486  2011-04-30 16:26  opencv应用示例\DirectShow\Include\bdatypes.h
     文件         944  2011-04-30 16:26  opencv应用示例\DirectShow\Include\comlite.h
     文件      178266  2011-04-30 16:26  opencv应用示例\DirectShow\Include\control.h
............此处省略152个文件信息

评论

共有 条评论