Removed some duplicate assertions.
This commit is contained in:
parent
e9805e444f
commit
0de799b3b0
@ -2307,8 +2307,6 @@ double cv::norm( InputArray _src1, InputArray _src2, int normType, InputArray _m
|
|||||||
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
|
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
|
||||||
Mat src1 = _src1.getMat(), src2 = _src2.getMat(), mask = _mask.getMat();
|
Mat src1 = _src1.getMat(), src2 = _src2.getMat(), mask = _mask.getMat();
|
||||||
|
|
||||||
CV_Assert( src1.size == src2.size && src1.type() == src2.type() );
|
|
||||||
|
|
||||||
normType &= 7;
|
normType &= 7;
|
||||||
CV_Assert( normType == NORM_INF || normType == NORM_L1 || normType == NORM_L2 || normType == NORM_L2SQR ||
|
CV_Assert( normType == NORM_INF || normType == NORM_L1 || normType == NORM_L2 || normType == NORM_L2SQR ||
|
||||||
((normType == NORM_HAMMING || normType == NORM_HAMMING2) && src1.type() == CV_8U) );
|
((normType == NORM_HAMMING || normType == NORM_HAMMING2) && src1.type() == CV_8U) );
|
||||||
@ -2387,8 +2385,6 @@ double cv::norm( InputArray _src1, InputArray _src2, int normType, InputArray _m
|
|||||||
Mat src1 = _src1.getMat(), src2 = _src2.getMat(), mask = _mask.getMat();
|
Mat src1 = _src1.getMat(), src2 = _src2.getMat(), mask = _mask.getMat();
|
||||||
int depth = src1.depth(), cn = src1.channels();
|
int depth = src1.depth(), cn = src1.channels();
|
||||||
|
|
||||||
CV_Assert( src1.size == src2.size );
|
|
||||||
|
|
||||||
normType &= 7;
|
normType &= 7;
|
||||||
CV_Assert( normType == NORM_INF || normType == NORM_L1 ||
|
CV_Assert( normType == NORM_INF || normType == NORM_L1 ||
|
||||||
normType == NORM_L2 || normType == NORM_L2SQR ||
|
normType == NORM_L2 || normType == NORM_L2SQR ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user