constants.h ( File view )

  • By marque 2014-03-29
  • View(s):51
  • Download(s):6
  • Point(s): 2
			#ifndef __CONSTANTS_H__
#define __CONSTANTS_H__

#define round(dbl) dbl >= 0.0 ? (int)(dbl + 0.5) : ((dbl - (double)(int)dbl) <= -0.5 ? (int)dbl : (int)(dbl - 0.5))

/** Global variables */
const char main_window_name [] = "Eye Tracker";
const char face_window_name [] = "Eye Tracker - Debug";
const char face_cascade_name [] = "haarcascade_frontalface_alt.xml";

// Size constants
const int kEyePercentTop = 25;
const int kEyePercentSide = 13;
const int kEyePercentHeight = 30;
const int kEyePercentWidth = 35;

// iris size
const int min_iris_area = 36;

// Preprocessing
const bool kSmoothFaceImage = true;
const float kSmoothFaceFactor = (float)0.005;

#endif // __CONSTANTS_H__
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 2

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
constants.h685.00 B2014-03-23 00:51
eye_track.sln879.00 B2014-01-12 12:47
eye_track.vcxproj5.52 kB2014-03-22 23:39
eye_track.vcxproj.filters1.49 kB2014-03-22 23:39
main.cpp2.52 kB2014-03-23 01:09
OPENCV_DEBUG.props883.00 B2014-01-14 18:35
OPENCV_RELEASE.props872.00 B2014-01-14 18:36
01.97 kB
haarcascade_frontalface_alt.xml923.86 kB2014-01-12 12:58
haarcascade_frontalface_alt_tree.xml3.48 MB2013-11-13 15:14
lbpcascade_frontalface.xml50.64 kB2013-11-13 15:14
track_eye.cpp6.28 kB2014-03-23 01:22
track_eye.h267.00 B2014-03-22 23:51
...
Sponsored links

constants.h (550.50 kB)

Need 2 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D