mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-23 09:38:56 +08:00
fix ddepth to match output matrices
otherwise we get a failed assertion from OutputArray::create
This commit is contained in:
@@ -70,9 +70,9 @@ void niBlackThreshold( InputArray _src, OutputArray _dst, double maxValue,
|
||||
if( src.data != dst.data )
|
||||
mean = dst;
|
||||
|
||||
boxFilter( src, mean, CV_64F, Size(blockSize, blockSize),
|
||||
boxFilter( src, mean, CV_32F, Size(blockSize, blockSize),
|
||||
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 );
|
||||
|
||||
// Compute (k * standard deviation) in the neighborhood of each pixel
|
||||
|
Reference in New Issue
Block a user