Merge pull request #5132 from hewj03:master

This commit is contained in:
Alexander Alekhin 2015-08-09 11:27:43 +00:00
commit aed9f5d5e8

View File

@ -1310,7 +1310,7 @@ void cv::adaptiveThreshold( InputArray _src, OutputArray _dst, double maxValue,
src.convertTo(srcfloat,CV_32F);
meanfloat=srcfloat;
GaussianBlur(srcfloat, meanfloat, Size(blockSize, blockSize), 0, 0, BORDER_REPLICATE);
meanfloat.convertTo(dst, src.type());
meanfloat.convertTo(mean, src.type());
}
else
CV_Error( CV_StsBadFlag, "Unknown/unsupported adaptive threshold method" );