From d002c137ea7c1ec4f9add0c8e95ed725dc878347 Mon Sep 17 00:00:00 2001 From: Alexey Kazakov Date: Thu, 17 Mar 2011 17:05:31 +0000 Subject: [PATCH] Modified integral calculation function, know it can build float integral by float source matrix --- modules/imgproc/src/sumpixels.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/imgproc/src/sumpixels.cpp b/modules/imgproc/src/sumpixels.cpp index 0e4a92347..1c2012052 100644 --- 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_; else if( depth == CV_8U && sdepth == CV_64F ) func = integral_; + else if( depth == CV_32F && sdepth == CV_32F ) + func = integral_; else if( depth == CV_32F && sdepth == CV_64F ) func = integral_; else if( depth == CV_64F && sdepth == CV_64F )