summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-06-14 17:54:47 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-06-14 17:54:47 -0400
commit4e72c7b11fe0aedf55fb8912c4309e908a0a5860 (patch)
treeee7e1e1fcf7a883457349d3e0eba12507f153698
parentActually it's gotta be in C++ (diff)
downloadOpenCV-Learning-Space-4e72c7b11fe0aedf55fb8912c4309e908a0a5860.tar.xz
OpenCV-Learning-Space-4e72c7b11fe0aedf55fb8912c4309e908a0a5860.zip
Style.
-rw-r--r--face-detection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/face-detection.cpp b/face-detection.cpp
index e2962d7..25c33e6 100644
--- a/face-detection.cpp
+++ b/face-detection.cpp
@@ -29,7 +29,7 @@ int main(int argc, char **argv)
CvSeq* objects = cvHaarDetectObjects(small, cascade, storage, 1.1, 4, CV_HAAR_DO_CANNY_PRUNING);
cvReleaseImage(&small);
CvRect* r;
- for (int i = 0; i < (objects ? objects->total : 0); i++) {
+ for (int i = 0; i < (objects ? objects->total : 0); ++i) {
r = (CvRect*)cvGetSeqElem(objects, i);
cvRectangle(frame, cvPoint(r->x * 2, r->y * 2), cvPoint((r->x + r->width) * 2, (r->y + r->height) * 2), colors[i % 8], 2);
}
@@ -39,4 +39,4 @@ int main(int argc, char **argv)
cvDestroyWindow("Jason's Wonderful OpenCV Test");
cvReleaseCapture(&capture);
return 0;
-} \ No newline at end of file
+}