mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
propagated some more fixes from 2.3 branch to the trunk
This commit is contained in:
@@ -2075,6 +2075,7 @@ void cv::compare(InputArray _src1, InputArray _src2, OutputArray _dst, int op)
|
||||
|
||||
if( kind1 == kind2 && src1.dims <= 2 && src2.dims <= 2 && src1.size() == src2.size() && src1.type() == src2.type() )
|
||||
{
|
||||
CV_Assert(src1.channels() == 1);
|
||||
_dst.create(src1.size(), CV_8UC1);
|
||||
Mat dst = _dst.getMat();
|
||||
Size sz = getContinuousSize(src1, src2, dst, src1.channels());
|
||||
|
||||
@@ -148,7 +148,7 @@ static void updateContinuityFlag(Mat& m)
|
||||
break;
|
||||
}
|
||||
|
||||
int64 t = (int64)(m.step[0]/CV_ELEM_SIZE(m.flags))*m.size[0];
|
||||
int64 t = (int64)m.step[0]*m.size[0];
|
||||
if( j <= i && t == (int)t )
|
||||
m.flags |= Mat::CONTINUOUS_FLAG;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user