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:
3323ee9
)
Fixed warning
author
Alexey Spizhevoy
<no@email>
Wed, 21 Mar 2012 08:37:24 +0000
(08:37 +0000)
committer
Alexey Spizhevoy
<no@email>
Wed, 21 Mar 2012 08:37:24 +0000
(08:37 +0000)
modules/videostab/src/deblurring.cpp
patch
|
blob
|
history
diff --git
a/modules/videostab/src/deblurring.cpp
b/modules/videostab/src/deblurring.cpp
index
4443064
..
752d1e6
100644
(file)
--- a/
modules/videostab/src/deblurring.cpp
+++ b/
modules/videostab/src/deblurring.cpp
@@
-59,7
+59,7
@@
float calcBlurriness(const Mat &frame)
double normGx = norm(Gx);
double normGy = norm(Gx);
double sumSq = normGx*normGx + normGy*normGy;
- return
1.f / (sumSq / frame.size().area() + 1e-6f
);
+ return
static_cast<float>(1. / (sumSq / frame.size().area() + 1e-6)
);
}