#include <EyeDetection.h>
Classes | |
| struct | CIRCLES |
| struct | RESULT |
Public Member Functions | |
| EyeDetection (const char *cascadeFileName) | |
| virtual | ~EyeDetection () |
| RESULT * | detect (IplImage *img, int space, int val) |
Eye region detection class.
| EyeDetection::EyeDetection | ( | const char * | cascadeFileName ) |
Initializes the eye detection and loads a HaarClassifier Cascade.
cout in case of an error| cascadeFileName | Location of the cascade file |
| EyeDetection::~EyeDetection | ( | ) | [virtual] |
Frees all previously allocated resources.
| EyeDetection::RESULT * EyeDetection::detect | ( | IplImage * | img, |
| int | space, | ||
| int | val | ||
| ) |
Detects both of left and right eye using Haar features.
Valid scales values:
1 = 512x512px2 = 1024x1024px4 = 2048x2048px (MBGC dataset)Depending on which cascade is used, both eyes as one region or only one eye region can be detected
| img | Input image |
| scales | Consider a detected image below the given size noise |
| val | Adjust the rectangle size |
NULL in case nothing was found
1.7.2