fix ddepth to match output matrices

otherwise we get a failed assertion from OutputArray::create
pull/542/head
Amro 9 years ago
parent 9d12e14f6f
commit ada87a9975
  1. 4
      modules/ximgproc/src/niblack_thresholding.cpp

@ -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

Loading…
Cancel
Save