fixed several warnings; modified size comparison: m1.size() == m2.size() => m1.size == m2.size

pull/13383/head
Vadim Pisarevsky 14 years ago
parent f7bebe8270
commit 89f64681d0
  1. 4
      modules/imgproc/src/thresh.cpp

@ -589,7 +589,7 @@ cvThreshold( const void* srcarr, void* dstarr, double thresh, double maxval, int
{
cv::Mat src = cv::cvarrToMat(srcarr), dst = cv::cvarrToMat(dstarr), dst0 = dst;
CV_Assert( src.size() == dst.size() && src.channels() == dst.channels() &&
CV_Assert( src.size == dst.size && src.channels() == dst.channels() &&
(src.depth() == dst.depth() || dst.depth() == CV_8U));
thresh = cv::threshold( src, dst, thresh, maxval, type );
@ -604,7 +604,7 @@ cvAdaptiveThreshold( const void *srcIm, void *dstIm, double maxValue,
int method, int type, int blockSize, double delta )
{
cv::Mat src = cv::cvarrToMat(srcIm), dst = cv::cvarrToMat(dstIm);
CV_Assert( src.size() == dst.size() && src.type() == dst.type() );
CV_Assert( src.size == dst.size && src.type() == dst.type() );
cv::adaptiveThreshold( src, dst, maxValue, method, type, blockSize, delta );
}

Loading…
Cancel
Save