warnings fix
authoryao <bitwangyaoyao@gmail.com>
Fri, 28 Jun 2013 08:23:01 +0000 (16:23 +0800)
committeryao <bitwangyaoyao@gmail.com>
Fri, 28 Jun 2013 08:23:01 +0000 (16:23 +0800)
samples/ocl/facedetect.cpp

index ead99b0..49148bd 100644 (file)
@@ -255,7 +255,7 @@ void Draw(Mat& img, vector<Rect>& faces, double scale)
     imwrite( outputName, img );
     if(abs(scale-1.0)>.001)
     {
-        resize(img, img, Size(img.cols/scale, img.rows/scale));
+        resize(img, img, Size((int)(img.cols/scale), (int)(img.rows/scale)));
     }
     imshow( "result", img );