-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImageSegDoc.h
100 lines (85 loc) · 2.39 KB
/
ImageSegDoc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// ImageSegDoc.h : interface of the CImageSegDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_IMAGESEGDOC_H__054D7A5A_1895_4AC5_B6A5_E12F24DC6267__INCLUDED_)
#define AFX_IMAGESEGDOC_H__054D7A5A_1895_4AC5_B6A5_E12F24DC6267__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <vector>
using namespace std;
class CImageSegDoc : public CDocument
{
protected: // create from serialization only
CImageSegDoc();
DECLARE_DYNCREATE(CImageSegDoc)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CImageSegDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
int sumGray;
int pixNum;
int m_growWay1;
int m_growWay2;
int m_growWay3;
int m_growWay4;
int m_howToGrow;
void RegionGrow(CPoint pt);
BOOL m_regionGrow;
int nStackMax;
int nWidth;
int nHeight;
//ÖÖ×Óµã
int nSeedX;
int nSeedY;
vector<CPoint> m_stack;
vector<vector<int> > m_flag;//int ¶þάÊý×é
CxImage m_originBmp;
CxImage m_showBmp;
CView *pView;
int m_threshold;
int findMidGray(int a[]);
BOOL CheckDot(int x,int y,int seedX,int seedY);
BOOL AutoCheckDot(int x,int y,int seedX,int seedY);
void Grow(int x,int y);
void Grow2(int x,int y);
virtual ~CImageSegDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CImageSegDoc)
afx_msg void OnProSegRegiongrow();
afx_msg void OnFileOpen();
afx_msg void OnProSegOption();
afx_msg void OnFileSaveAs();
afx_msg void OnProReset();
afx_msg void OnProSegWay1();
afx_msg void OnUpdateProSegWay1(CCmdUI* pCmdUI);
afx_msg void OnProSegWay2();
afx_msg void OnUpdateProSegWay2(CCmdUI* pCmdUI);
afx_msg void OnProSegWay3();
afx_msg void OnUpdateProSegWay3(CCmdUI* pCmdUI);
afx_msg void OnProSegWay4();
afx_msg void OnUpdateProSegWay4(CCmdUI* pCmdUI);
afx_msg void OnProSegOptionSpin();
afx_msg void OnSegSmooth();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_IMAGESEGDOC_H__054D7A5A_1895_4AC5_B6A5_E12F24DC6267__INCLUDED_)