📄 edge_detectionview.h
字号:
// Edge_detectionView.h : interface of the CEdge_detectionView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_EDGE_DETECTIONVIEW_H__6D46A018_6430_412D_AF4D_0FFE118BC744__INCLUDED_)
#define AFX_EDGE_DETECTIONVIEW_H__6D46A018_6430_412D_AF4D_0FFE118BC744__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//应用模板
#include<afxtempl.h>
//定义一个结构体储边缘点的坐标
//typedef CArry<CPoint, CPoint&> Edge_point;
class CEdge_detectionView : public CView
{
protected: // create from serialization only
CEdge_detectionView();
DECLARE_DYNCREATE(CEdge_detectionView)
// Attributes
public:
CEdge_detectionDoc* GetDocument();
// Operations
public:
CDC m_MemDC;
CBitmap m_MemBitmap;
// Edge_point m_Edge;
// Overrides
public:
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEdge_detectionView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CEdge_detectionView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CEdge_detectionView)
afx_msg void OnEdgeCanny();
afx_msg void OnSobelOperator();
afx_msg void OnSpatialMoment();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Edge_detectionView.cpp
inline CEdge_detectionDoc* CEdge_detectionView::GetDocument()
{ return (CEdge_detectionDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EDGE_DETECTIONVIEW_H__6D46A018_6430_412D_AF4D_0FFE118BC744__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -