fixed several warnings; modified size comparison: m1.size() == m2.size() => m1.size == m2.size
This commit is contained in:
@@ -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::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));
|
(src.depth() == dst.depth() || dst.depth() == CV_8U));
|
||||||
|
|
||||||
thresh = cv::threshold( src, dst, thresh, maxval, type );
|
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 )
|
int method, int type, int blockSize, double delta )
|
||||||
{
|
{
|
||||||
cv::Mat src = cv::cvarrToMat(srcIm), dst = cv::cvarrToMat(dstIm);
|
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 );
|
cv::adaptiveThreshold( src, dst, maxValue, method, type, blockSize, delta );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user