Permalink
Browse files

Apply stache to the right region of the face

  • Loading branch information...
1 parent 6bb1023 commit c4e515c987d68cbbc9bcf156c7d074681d7cd53d @jadonk committed Apr 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 stache.cpp
View
2 stache.cpp
@@ -149,7 +149,7 @@ void detectAndDisplay(Mat frame) {
IplImage iplFrame = frame;
IplImage *iplMask = cvCreateImage(cvSize(faces[i].width, faces[i].height),
mask->depth, mask->nChannels );
- cvSetImageROI(&iplFrame, cvRect(faces[i].x, faces[i].y + faces[i].height,
+ cvSetImageROI(&iplFrame, cvRect(faces[i].x, faces[i].y,
faces[i].width, faces[i].height));
cvResize(mask, iplMask, CV_INTER_LINEAR);
cvSub(&iplFrame, iplMask, &iplFrame);

0 comments on commit c4e515c

Please sign in to comment.