matcherDoc.h
资源名称:matcher.rar [点击查看]
上传用户:quan1896
上传日期:2013-04-17
资源大小:94k
文件大小:4k
源码类别:
2D图形编程
开发平台:
Visual C++
- // matcherDoc.h : interface of the CMatcherDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MATCHERDOC_H__A7A22240_C581_4664_A129_9ABB7CC35D5C__INCLUDED_)
- #define AFX_MATCHERDOC_H__A7A22240_C581_4664_A129_9ABB7CC35D5C__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "MyOpenCV.h"
- #include "OpenImgDLG.h"
- #include "CorParDLG.h"
- #include "MatParDLG.h"
- #include "ManDelSet.h"
- #include "MainFrm.h"
- #define MAXFEATURES 5000
- class CMatcherDoc : public CDocument
- {
- protected: // create from serialization only
- CMatcherDoc();
- DECLARE_DYNCREATE(CMatcherDoc)
- // Attributes
- public:
- CMainFrame* pFrame;//主框架窗口指针
- IplImage* m_image1;//显示接口指针
- IplImage* m_image2;//显示接口指针
- IplImage* srcImg1;
- IplImage* srcImg2;
- IplImage* grayImg1;
- IplImage* grayImg2;
- IplImage* smoothImg1;
- IplImage* smoothImg2;
- IplImage* showImg1;
- IplImage* showImg2;
- CvSize m_imgsize1,m_imgsize2;
- BOOL IMG1OPEN,IMG2OPEN;
- BOOL CORNERDONE;
- BOOL INIMATCHDONE;
- BOOL RANSACDONE;
- BOOL GUIMATDONE;
- BOOL ENMANUALDEL;
- //角点检测
- CvPoint2D32f corners1[MAXFEATURES];
- CvPoint2D32f corners2[MAXFEATURES];
- int cornerCount;
- //匹配
- int nImatches;//初始匹配点对
- CvPoint2D32f Imatches1[MAXFEATURES];
- CvPoint2D32f Imatches2[MAXFEATURES];
- int nFmatches;//RANSAC后的匹配点对
- CvPoint2D32f Fmatches1[MAXFEATURES];
- CvPoint2D32f Fmatches2[MAXFEATURES];
- int nGmatches;//引导匹配点对
- CvPoint2D32f Gmatches1[MAXFEATURES];
- CvPoint2D32f Gmatches2[MAXFEATURES];
- float F[9];//基本矩阵
- protected:
- COpenImgDLG dlgopenImg;//打开图像对话框
- CCorParDLG CorParPage;//角点参数属性框
- CMatParDLG MatParPage;//匹配参数属性框
- public:
- CManDelSet ManParPage;//手工添加删除参数属性框
- private:
- //角点检测
- int minDistance;
- double minCorLevel;
- //匹配
- int max_disparity;
- int patch_radius;
- double max_epidistance;
- //set check box
- BOOL SHOWCORNER;
- BOOL SHOWINIMAT1;
- BOOL SHOWINIMAT2;
- BOOL SHOWFINMAT;
- BOOL SHOWGUIMAT;
- BOOL SHOWEPILINE;
- //another
- COLORREF crTextColor1,crTextColor2;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMatcherDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMatcherDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMatcherDoc)
- afx_msg void OnFileOpen();
- afx_msg void OnFindcorner();
- afx_msg void OnParameter();
- afx_msg void OnInimatch();
- afx_msg void OnRansac();
- afx_msg void OnShowcorner();
- afx_msg void OnShowinimat1();
- afx_msg void OnShowinimat2();
- afx_msg void OnShowepiline();
- afx_msg void OnFinmatches();
- afx_msg void OnShowguimat();
- afx_msg void OnUpdateShowcorner(CCmdUI* pCmdUI);
- afx_msg void OnUpdateShowinimat1(CCmdUI* pCmdUI);
- afx_msg void OnUpdateShowinimat2(CCmdUI* pCmdUI);
- afx_msg void OnUpdateFinmatches(CCmdUI* pCmdUI);
- afx_msg void OnUpdateShowepiline(CCmdUI* pCmdUI);
- afx_msg void OnGuimatch();
- afx_msg void OnUpdateShowguimat(CCmdUI* pCmdUI);
- afx_msg void OnMenualdelte();
- afx_msg void OnUpdateMenualdelte(CCmdUI* pCmdUI);
- afx_msg void OnHdelete();
- afx_msg void OnFileSave();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MATCHERDOC_H__A7A22240_C581_4664_A129_9ABB7CC35D5C__INCLUDED_)