From 6f679770d901f353cc771215db95cbc1879c923f Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 31 Aug 2018 11:07:12 +0900 Subject: [PATCH] Fixed bug: filter not recognizing large ellipses --- main/pupilFitter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/pupilFitter.h b/main/pupilFitter.h index 61a527e..aea6368 100644 --- a/main/pupilFitter.h +++ b/main/pupilFitter.h @@ -323,7 +323,7 @@ bool pupilAreaFitRR(Mat &gray, RotatedRect &rr, vector &allPtsReturn, current.size.width < 25 || current.size.width > maxSize || current.size.height > maxSize || - current.size.height + current.size.width > 400) { + current.size.height + current.size.width > 2 * maxSize) { isGood = false; }