Skip to content

Commit ada87a9

Browse files
committed
fix ddepth to match output matrices
otherwise we get a failed assertion from OutputArray::create
1 parent 9d12e14 commit ada87a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ximgproc/src/niblack_thresholding.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ void niBlackThreshold( InputArray _src, OutputArray _dst, double maxValue,
7070
if( src.data != dst.data )
7171
mean = dst;
7272

73-
boxFilter( src, mean, CV_64F, Size(blockSize, blockSize),
73+
boxFilter( src, mean, CV_32F, Size(blockSize, blockSize),
7474
Point(-1,-1), true, BORDER_REPLICATE );
75-
sqrBoxFilter( src, sqmean, CV_64F, Size(blockSize, blockSize),
75+
sqrBoxFilter( src, sqmean, CV_32F, Size(blockSize, blockSize),
7676
Point(-1,-1), true, BORDER_REPLICATE );
7777

7878
// Compute (k * standard deviation) in the neighborhood of each pixel

0 commit comments

Comments
 (0)