Classes | Public Member Functions

EyeDetection Class Reference

#include <EyeDetection.h>

List of all members.

Classes

struct  CIRCLES
struct  RESULT

Public Member Functions

 EyeDetection (const char *cascadeFileName)
virtual ~EyeDetection ()
RESULTdetect (IplImage *img, int space, int val)

Detailed Description

Eye region detection class.


Constructor & Destructor Documentation

EyeDetection::EyeDetection ( const char *  cascadeFileName )

Initializes the eye detection and loads a HaarClassifier Cascade.

Note:
Writes an error message on cout in case of an error
Parameters:
cascadeFileNameLocation of the cascade file
EyeDetection::~EyeDetection (  ) [virtual]

Frees all previously allocated resources.


Member Function Documentation

EyeDetection::RESULT * EyeDetection::detect ( IplImage *  img,
int  space,
int  val 
)

Detects both of left and right eye using Haar features.

Valid scales values:

  • 1 = 512x512px
  • 2 = 1024x1024px
  • 4 = 2048x2048px (MBGC dataset)

Depending on which cascade is used, both eyes as one region or only one eye region can be detected

Parameters:
imgInput image
scalesConsider a detected image below the given size noise
valAdjust the rectangle size
Returns:
Returns the detected eye region (info, image) for left, right, both left and right, or NULL in case nothing was found

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Defines