Substituted the NaN check with OpenCV's implementation.

This commit is contained in:
Olexa Bilaniuk 2015-03-03 13:06:36 -05:00
parent e7d5e57264
commit bb01231990

View File

@ -1202,7 +1202,8 @@ inline int RHO_HEST_REFC::isModelDegenerate(void){
float f=H[0]+H[1]+H[2]+H[3]+H[4]+H[5]+H[6]+H[7];
/* degenerate = isnan(f); */
degenerate = f!=f;/* Only NaN is not equal to itself. */
/* degenerate = f!=f;// Only NaN is not equal to itself. */
degenerate = cvIsNaN(f);
/* degenerate = 0; */