资源简介
MFC OpenCV 显示图像,VS2013 写的,不用添加CvvImage类,用的是VS2013 + OPENCV2.4.9 , 其他版本类似,界面能显示打开图片的路径,同时有灰度直方图均衡化和中值滤波的代码,网上其他程序要不是用vc6.0写,太老了,有的还要加已经被淘汰的CVVimage类。
代码片段和文件信息
// ImageProcess.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “ImageProcess.h“
#include “ImageProcessDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CImageProcessApp
BEGIN_MESSAGE_MAP(CImageProcessApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()
// CImageProcessApp construction
CImageProcessApp::CImageProcessApp()
{
// support Restart Manager
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
// The one and only CImageProcessApp object
CImageProcessApp theApp;
// CImageProcessApp initialization
BOOL CImageProcessApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
AfxEnableControlContainer();
// Create the shell manager in case the dialog contains
// any shell tree view or shell list view controls.
CShellManager *pShellManager = new CShellManager;
// Activate “Windows Native“ visual manager for enabling themes in MFC controls
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));
// 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
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
CImageProcessDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
else if (nResponse == -1)
{
TRACE(traceAppMsg 0 “Warning: dialog creation failed so application is terminating unexpectedly.\n“);
TRACE(traceAppMsg 0 “Warning: if you are using MFC controls on the dialog you cannot #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS.\n“);
}
// Delete the shell manager created above.
if (pShellManager != NULL)
{
delete pShellManager;
}
// 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 2017-10-24 20:30 ImageProcess\
目录 0 2017-10-24 20:27 ImageProcess\Debug\
文件 243200 2017-10-24 20:27 ImageProcess\Debug\ImageProcess.exe
文件 1367424 2017-10-24 20:27 ImageProcess\Debug\ImageProcess.ilk
文件 9826304 2017-10-24 20:27 ImageProcess\Debug\ImageProcess.pdb
目录 0 2017-10-24 20:26 ImageProcess\ImageProcess\
目录 0 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\
文件 3864 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.log
文件 44766 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.obj
文件 73400320 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.pch
文件 69632 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.res
目录 0 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\
文件 361272 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\CL.read.1.tlog
文件 9816 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\CL.write.1.tlog
文件 173 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\ImageProcess.lastbuildstate
文件 9650 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\cl.command.1.tlog
文件 14006 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\li
文件 40498 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\li
文件 4018 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\li
文件 2874 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\rc.command.1.tlog
文件 12602 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\rc.read.1.tlog
文件 1202 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcess.tlog\rc.write.1.tlog
文件 275683 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\ImageProcessDlg.obj
文件 1254197 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\stdafx.obj
文件 2878464 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\vc120.idb
文件 8605696 2017-10-24 20:27 ImageProcess\ImageProcess\Debug\vc120.pdb
文件 108700 2017-07-25 19:59 ImageProcess\ImageProcess\ImageProcess.aps
文件 2880 2017-07-14 14:36 ImageProcess\ImageProcess\ImageProcess.cpp
文件 541 2017-07-14 14:33 ImageProcess\ImageProcess\ImageProcess.h
文件 11190 2017-07-25 19:59 ImageProcess\ImageProcess\ImageProcess.rc
文件 6184 2017-07-14 15:10 ImageProcess\ImageProcess\ImageProcess.vcxproj
............此处省略15个文件信息
相关资源
- 基于UDP的Socket 通信源码VC++ 2010 MFC
- OpenCV人脸识别实例源码142702
- 基于VLC的MFC播放器 完整版
- 疲劳检测vc++和opencv编程源代码
- Alpha-Beta剪枝算法一字棋源码及实验报
- MFC扫雷程序设计完整源码,文档
- 利用MFC进行多边形的绘制
- 串口调试助手c++源码
- A*算法求解八数码--演示程序MFC
- MFCquxian.rar
- 医院管理系统_VC++源码
- DLL中封装Qt窗口和控件,并使用MFC和
- 基于winPcap开发嗅探器c++,带界面
- DX11,DX图形设计游戏跳一跳C++实现.
- 完整串口通信程序Vc++源代码
- MFC问卷调查选择统计程序
- 侯俊杰《深入浅出MFC》简体版第二版
- Ymodem协议 完整MFC工程C++实现
- vc++-MFC画圆
- 基于winpcap的ARP发送程序
- HighSpeedChart动态绘图
- MFC实现的画多边形程序
- vs mfc 画图程序
- MFC基于对话框的交互式画图程序橡皮
- 21天学通C++(第五版) vs2008程序打包
- 精通MFC刘晓华著
- visual Studio2017使用MFC & WebBrowser控件的
- C++课程大作业MFC项目.zip
- opencv人脸检测与跟踪
- MFC编程小学生100以内算数
评论
共有 条评论