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

📄 test2eyesdlg.h

📁 基于SIFT快速匹配算法
💻 H
字号:
// test2eyesDlg.h : 头文件
//
	/* the maximum number of keypoint NN candidates to check during BBF search */
#include "afxcmn.h"
#include "cxtypes.h"
#define KDTREE_BBF_MAX_NN_CHKS 200

/* threshold on squared ratio of distances between NN and 2nd NN */
#define NN_SQ_DIST_RATIO_THR 0.49



#pragma once


// Ctest2eyesDlg 对话框
class Ctest2eyesDlg : public CDialog
{
// 构造
public:
	Ctest2eyesDlg(CWnd* pParent = NULL);	// 标准构造函数
	 virtual ~Ctest2eyesDlg();	// 标准构造函数




// 对话框数据
	enum { IDD = IDD_TEST2EYES_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);// DDX/DDV 支持

// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	struct des
	{
		int x;
		int y;
		int s;
		int lx;
		int ly;
		int rx;
		int ry;
		int L_des;

	};

	IplImage* img1, * img2;

	struct feature* feat1, * feat2; 
	struct kd_node* kd_root;
	
public:
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedButton1();
	afx_msg void OnBnClickedButton2();
	afx_msg void OnEnChangeEdit1();
public:
	CSliderCtrl m_slider;
	CSliderCtrl m_slider_yuzhi;
	
	CSliderCtrl m_slider_min;

	void puman();
	void Yu_Zhi();

public:
	int m_pos;
	int m_pos_yuzhi;
	int m_pos_yuzhi_min;
	IplImage* stacked;
	struct des  m_ju[1000];
	struct des  m_out_ju[1000];
	int m_ju_k;
	BOOL m_yu_zhi_enable;

public:
	afx_msg void OnNMReleasedcaptureSlider1(NMHDR *pNMHDR, LRESULT *pResult);
public:
	afx_msg void OnNMReleasedcaptureSlider2(NMHDR *pNMHDR, LRESULT *pResult);
public:
	afx_msg void OnNMReleasedcaptureSlider3(NMHDR *pNMHDR, LRESULT *pResult);
};

⌨️ 快捷键说明

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