fix adaptiveThreshold mean

pull/5132/head
Wenju He 9 years ago
parent 573858f134
commit 67ca143a0b
  1. 2
      modules/imgproc/src/thresh.cpp

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

Loading…
Cancel
Save