Commit 1dacb0a3 authored by Thiago Santini's avatar Thiago Santini

Mixed platform

parent 69cea0e8
......@@ -47,10 +47,10 @@ SOURCES +=\
$${TOP}/src/Overlay.cpp \
$${TOP}/src/CommandManager.cpp \
$${TOP}/src/ERWidget.cpp \
src/pupil-tracking/PupiTtrackingMethod.cpp \
src/pupil-tracking/PuReST.cpp \
src/pupil-detection/PuRe.cpp \
src/Evaluation.cpp
src/Evaluation.cpp \
src/pupil-tracking/PupilTrackingMethod.cpp
HEADERS += \
$${TOP}/src/MainWindow.h\
......
......@@ -26,6 +26,7 @@ Rect PupilDetectionMethod::coarsePupilDetection(const Mat &frame, const float &m
int min_r = (int) (0.5 * 0.07 * d);
int max_r = (int) (0.5 * 0.29 * d);
int r_step = (int) max<float>( 0.2f*(max_r + min_r), 1.0f);
// TODO: padding so we consider the borders as well!
/* Haar-like feature suggested by Swirski. For details, see
......@@ -80,6 +81,9 @@ Rect PupilDetectionMethod::coarsePupilDetection(const Mat &frame, const float &m
float response = (outer_mean - inner_mean);
if ( response < 0.5*best_response)
continue;
if (response < 0.5 * best_response)
continue;
if (response > best_response)
......
......@@ -104,7 +104,7 @@ public:
virtual Pupil getNextCandidate() { return Pupil(); }
// Generic coarse pupil detection
static cv::Rect coarsePupilDetection(const cv::Mat &frame, const float &minCoverage=0.5f, const int &workingWidth=80, const int &workingHeight=60);
static cv::Rect coarsePupilDetection(const cv::Mat &frame, const float &minCoverage=0.5f, const int &workingWidth=60, const int &workingHeight=40);
// Generic confidence metrics
static float outlineContrastConfidence(const cv::Mat &frame, const Pupil &pupil, const int &bias=5);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment