projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9342c4b
)
Modified integral calculation function, know it can build float integral by float...
author
Alexey Kazakov
<no@email>
Thu, 17 Mar 2011 17:05:31 +0000
(17:05 +0000)
committer
Alexey Kazakov
<no@email>
Thu, 17 Mar 2011 17:05:31 +0000
(17:05 +0000)
modules/imgproc/src/sumpixels.cpp
patch
|
blob
|
history
diff --git
a/modules/imgproc/src/sumpixels.cpp
b/modules/imgproc/src/sumpixels.cpp
index 0e4a92347be8253df9c9e17003394877a018e3ac..1c2012052ed603f7129233bcbc3f250f352c6878 100644
(file)
--- a/
modules/imgproc/src/sumpixels.cpp
+++ b/
modules/imgproc/src/sumpixels.cpp
@@
-234,6
+234,8
@@
integral( const Mat& src, Mat& sum, Mat* _sqsum, Mat* _tilted, int sdepth )
func = integral_<uchar, float, double>;
else if( depth == CV_8U && sdepth == CV_64F )
func = integral_<uchar, double, double>;
+ else if( depth == CV_32F && sdepth == CV_32F )
+ func = integral_<float, float, double>;
else if( depth == CV_32F && sdepth == CV_64F )
func = integral_<float, double, double>;
else if( depth == CV_64F && sdepth == CV_64F )