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

📄 sampledlg.h

📁 capture the image of the inpu object from the user and then detect image edge of the object
💻 H
字号:
#if !defined(AFX_SAMPLEDLG_H__43FFDA60_97C4_47FB_A11A_A876C1A85411__INCLUDED_)
#define AFX_SAMPLEDLG_H__43FFDA60_97C4_47FB_A11A_A876C1A85411__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SampleDlg.h : header file
//

#include "FrameGrabber.h"
#include  "Mathematic.h"
#include "Para.h"

/////////////////////////////////////////////////////////////////////////////
// SampleDlg dialog

class SampleDlg : public CDialog
{
// Construction
public:
	void DisplayResult();
	void FindPatch(int posx, int posy, int ww, int hh, int ImgW,int ImgH,	BYTE Ymin,BYTE Umin,BYTE Vmin,	BYTE Ymax,BYTE Umax,BYTE Vmax);
	void DisplayImg(CDC *dc, long *img, int w, int h,int x,int y);
	    SampleDlg(CWnd* pParent = NULL);   // standard constructor

        CFrameGrabber	m_FrameGrabber;
   	    CDC* gDC;
		void GetPos21( );

private:
    	LPBITMAPINFO lpbi;
  		int h;
        int w;   
     	LPBYTE lpDIBBits; 
		CPoint Pre;
		long* SapArea;
		 int* Resultx;
        int* Resulty;
		   int Patchnum;
   int Maxpatch[4];
   int* xl;
   int* xr;
   int* yt;
   int* yb;
     bool Symbal;

// Dialog Data
	//{{AFX_DATA(SampleDlg)
	enum { IDD = IDD_DIALOG_SAP };
	BOOL	m_AddCol;
	int		m_ColType;
	int		m_Pixel0;
	int		m_Pixel1;
	int		m_Pixel2;
	int		m_Pixel4;
	int		m_Pixel3;
	int		m_Var;
	BOOL	m_ShowSymbal;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(SampleDlg)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnSave();
	afx_msg void OnPatch();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SAMPLEDLG_H__43FFDA60_97C4_47FB_A11A_A876C1A85411__INCLUDED_)

⌨️ 快捷键说明

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