projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6982ea5
)
warnings fix
author
yao
<bitwangyaoyao@gmail.com>
Fri, 28 Jun 2013 08:23:01 +0000
(16:23 +0800)
committer
yao
<bitwangyaoyao@gmail.com>
Fri, 28 Jun 2013 08:23:01 +0000
(16:23 +0800)
samples/ocl/facedetect.cpp
patch
|
blob
|
history
diff --git
a/samples/ocl/facedetect.cpp
b/samples/ocl/facedetect.cpp
index
ead99b0
..
49148bd
100644
(file)
--- a/
samples/ocl/facedetect.cpp
+++ b/
samples/ocl/facedetect.cpp
@@
-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 );