CorParDLG.cpp
资源名称:matcher.rar [点击查看]
上传用户:quan1896
上传日期:2013-04-17
资源大小:94k
文件大小:2k
源码类别:
2D图形编程
开发平台:
Visual C++
- // CorParDLG.cpp : implementation file
- //
- #include "stdafx.h"
- #include "matcher.h"
- #include "CorParDLG.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCorParDLG property page
- IMPLEMENT_DYNCREATE(CCorParDLG, CPropertyPage)
- CCorParDLG::CCorParDLG() : CPropertyPage(CCorParDLG::IDD)
- {
- //{{AFX_DATA_INIT(CCorParDLG)
- m_CornerCount = 1000;
- m_MinDistance = 3;
- m_GusWidth = 3;
- m_GusHeight = 3;
- GUS_CHECKBOX = TRUE;
- m_SubMaxIter = 10;
- m_SubMinAccu = 0.1f;
- m_SubWinSize = 3;
- m_MinCorLevel = 0.0000001;
- //}}AFX_DATA_INIT
- }
- CCorParDLG::~CCorParDLG()
- {
- }
- void CCorParDLG::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CCorParDLG)
- DDX_Text(pDX, IDC_CORNERCOUNT, m_CornerCount);
- DDV_MinMaxInt(pDX, m_CornerCount, 1, 5000);
- DDX_Text(pDX, IDC_MINDISTANCE, m_MinDistance);
- DDV_MinMaxInt(pDX, m_MinDistance, 1, 2000);
- DDX_Text(pDX, IDC_GUSHEIGHT, m_GusWidth);
- DDX_Text(pDX, IDC_GUSWIDTH, m_GusHeight);
- DDX_Check(pDX, IDC_EN_GUSBLUR, GUS_CHECKBOX);
- DDX_Text(pDX, IDC_SUB_MAXITER, m_SubMaxIter);
- DDX_Text(pDX, IDC_SUB_MINACCU, m_SubMinAccu);
- DDX_Text(pDX, IDC_SUB_WINSIZE, m_SubWinSize);
- DDX_Text(pDX, IDC_MINCORLEVEL, m_MinCorLevel);
- DDV_MinMaxDouble(pDX, m_MinCorLevel, 0., 1.);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CCorParDLG, CPropertyPage)
- //{{AFX_MSG_MAP(CCorParDLG)
- ON_BN_CLICKED(IDC_EN_GUSBLUR, OnEnGusblur)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CCorParDLG message handlers
- //启用高斯滤波->已转到doc
- void CCorParDLG::OnEnGusblur()
- {
- // TODO: Add your control notification handler code here
- }