From: Vadim Pisarevsky Date: Wed, 20 Oct 2010 12:34:59 +0000 (+0000) Subject: fixed several warnings; modified size comparison: m1.size() == m2.size() => m1.size... X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~8568 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89f64681d03e60671c26a77403a4141f0ee070aa;p=platform%2Fupstream%2Fopencv.git fixed several warnings; modified size comparison: m1.size() == m2.size() => m1.size == m2.size --- diff --git a/modules/imgproc/src/thresh.cpp b/modules/imgproc/src/thresh.cpp index e8ad79a..8eefdf4 100644 --- a/modules/imgproc/src/thresh.cpp +++ b/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 ); }