From: <loc...@us...> - 2016-12-12 16:27:55
|
Revision: 1029 http://sourceforge.net/p/swistrack/code/1029 Author: lochmatter Date: 2016-12-12 16:27:54 +0000 (Mon, 12 Dec 2016) Log Message: ----------- Fix: removed isnan(cs->prevFaceRect.width) in ensureSizeBounds cs->prevFaceRect is of type CvRect, where width is of type int. Modified Paths: -------------- trunk/3rdParty/camshift_wrapper/camshift_wrapper.c Modified: trunk/3rdParty/camshift_wrapper/camshift_wrapper.c =================================================================== --- trunk/3rdParty/camshift_wrapper/camshift_wrapper.c 2015-01-26 15:04:42 UTC (rev 1028) +++ trunk/3rdParty/camshift_wrapper/camshift_wrapper.c 2016-12-12 16:27:54 UTC (rev 1029) @@ -129,10 +129,7 @@ if (cs->prevFaceRect.y + cs->prevFaceRect.height >= size.height) { cs->prevFaceRect.height = size.height - cs->prevFaceRect.y - 1; } - if (isnan(cs->faceBox.size.height) || - isnan(cs->faceBox.size.width) || - isnan(cs->prevFaceRect.width) || - isnan(cs->prevFaceRect.height)) { + if (isnan(cs->faceBox.size.height) || isnan(cs->faceBox.size.width)) { cs->faceBox.size.height = 1; cs->faceBox.size.width = 1; cs->prevFaceRect.height = 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |