xadahiya / pam-face-authentication

Automatically exported from code.google.com/p/pam-face-authentication
0 stars 0 forks source link

Strange semicolon in faceDetector.cpp #116

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, all

There is a strange semicolon in faceDetector.cpp(l:101)
----
  for(int i = 0; i < (faces ? faces->total : 0); i++)
  {
      // Create a new rectangle for the face
      CvRect* r = (CvRect*)cvGetSeqElem(faces, maxI);

      // When looping faces, select the biggest one
      if(max0 < (r->width * r->height));  <<============== STRANGE??
      {
          max0 = (r->width * r->height);
          maxI = i;
      }
  }
----
Is this correct?
thanks

Original issue reported on code.google.com by rccm.kyo...@gmail.com on 24 Feb 2012 at 5:27

GoogleCodeExporter commented 8 years ago
You're perfectly right. I fixed that in svn trunk

Original comment by feichtne...@gmail.com on 24 Feb 2012 at 2:16