1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-24 03:03:35 +08:00

fix ddepth to match output matrices

otherwise we get a failed assertion from OutputArray::create
This commit is contained in:
Amro
2016-02-04 08:31:22 +02:00
parent 9d12e14f6f
commit ada87a9975

View File

@@ -70,9 +70,9 @@ void niBlackThreshold( InputArray _src, OutputArray _dst, double maxValue,
if( src.data != dst.data ) if( src.data != dst.data )
mean = dst; mean = dst;
boxFilter( src, mean, CV_64F, Size(blockSize, blockSize), boxFilter( src, mean, CV_32F, Size(blockSize, blockSize),
Point(-1,-1), true, BORDER_REPLICATE ); Point(-1,-1), true, BORDER_REPLICATE );
sqrBoxFilter( src, sqmean, CV_64F, Size(blockSize, blockSize), sqrBoxFilter( src, sqmean, CV_32F, Size(blockSize, blockSize),
Point(-1,-1), true, BORDER_REPLICATE ); Point(-1,-1), true, BORDER_REPLICATE );
// Compute (k * standard deviation) in the neighborhood of each pixel // Compute (k * standard deviation) in the neighborhood of each pixel