⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dlgimageprocess.h

📁 动态场景中运动目标检测提取与跟踪 对新手很有用
💻 H
字号:
#if !defined(AFX_DLGIMAGEPROCESS_H__FDEC12DE_50F4_43B0_BB08_93040BDF5C56__INCLUDED_)
#define AFX_DLGIMAGEPROCESS_H__FDEC12DE_50F4_43B0_BB08_93040BDF5C56__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgImageProcess.h : header file
//
#include "cv.h"
#include "highgui.h"

/////////////////////////////////////////////////////////////////////////////
// CDlgImageProcess dialog

class CDlgImageProcess : public CDialog
{
// Construction
public:
	CDlgImageProcess(CWnd* pParent = NULL);   // standard constructor
    CDlgImageProcess(CvCapture* pCapture, int pos,CString path,
		CString winName, CString tractorbarName,CWnd* pParent = NULL);
	~CDlgImageProcess();

// Dialog Data
	//{{AFX_DATA(CDlgImageProcess)
	enum { IDD = IDD_DIALOG_IMAGEPROCESS };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgImageProcess)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int pos;//the position of the current frame
 	CvCapture* pCapture;
	bool isStart;//if the button start is pressed, it is true
	IplImage* pImage;//the current image
	CString winName;//the name of the window showing the image
	CString tracBarName;//the trackbar name
	CString m_path;//the default save path
	bool* m_isChanged;//if one frmae is modified, the correspondent m_isChanged[i] is true
	int m_count;//the length of the video,in samples
	CString m_path_tmp;//the tmp path of the changed images

	// Generated message map functions
	//{{AFX_MSG(CDlgImageProcess)
	afx_msg void OnButtonStart();
	afx_msg void OnButtonStop();
	afx_msg void OnButtonForframe();
	afx_msg void OnButtonLastframe();
	afx_msg void OnClose();
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonSharp();
	afx_msg void OnButtonSave();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGIMAGEPROCESS_H__FDEC12DE_50F4_43B0_BB08_93040BDF5C56__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -