Click here to Skip to main content
15,888,285 members
Articles / Desktop Programming / MFC

TrackEye : Real-Time Tracking Of Human Eyes Using a Webcam

Rate me:
Please Sign up or sign in to vote.
4.95/5 (117 votes)
12 Jun 2008CPOL6 min read 1.2M   78K   367  
Real-Time Tracking of Human Eyes in video sequences for Human-Computer Interaction using a webcam
#if !defined(AFX_CALIBRATION4SNAKE_H__76F4F780_D935_11D9_938B_B44E53A41F54__INCLUDED_)
#define AFX_CALIBRATION4SNAKE_H__76F4F780_D935_11D9_938B_B44E53A41F54__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Calibration4Snake.h : header file
//
#include "cv.h"
#include "highgui.h"
#include "IconButton.h"

/////////////////////////////////////////////////////////////////////////////
// Calibration4Snake dialog

class Calibration4Snake : public CDialog
{
// Construction
public:
	int colorSpace;
	bool thresholdOrNot;
	int thresholdType;

	IplImage* finalImg;
	IplImage* edgesImg;
	IplImage* thresholdedImg;
	IplImage* colorSpaceImg;
	IplImage* originalImg;
	Calibration4Snake(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(Calibration4Snake)
	enum { IDD = IDD_CALIBRATION4SNAKE };
	CIconButton	m_delete;
	CIconButton	m_SaveSettings;
	CComboBox	m_thresholdType;
	CComboBox	m_ColorSpace;
	int		m_component;
	int		m_thresholdValue;
	float	m_gamma;
	int		m_cannyApertureSize;
	int		m_cannyLower;
	int		m_cannyUpper;
	int		m_blockSize;
	float	m_beta;
	float	m_alpha;
	int		m_iterations;
	int		m_nPoints;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(Calibration4Snake)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(Calibration4Snake)
	virtual BOOL OnInitDialog();
	afx_msg void OnClose();
	afx_msg void OnCheck2();
	afx_msg void OnSaveSnakeCalib();
	afx_msg void OnTestsettings();
	afx_msg void OnDelete();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CALIBRATION4SNAKE_H__76F4F780_D935_11D9_938B_B44E53A41F54__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer ASELSAN A.S.
Turkey Turkey
Zafer is an electronics engineer living in Ankara/Turkey and working for ASELSAN A.S./TMM.
He has been coding for about 12 years, and can't think a life without C/C++.

He likes
- MS Visual C++ 6.0 and MFC
- .NET C#
- All kinds of electronics stuff
- Machine Vision projects

Also he enjoys
- Listening to "The Cranberries" & "The Glorious Dolores"
- Travelling

E-mail : zafersavas@yahoo.com

Comments and Discussions