fixed build problems on Windows
This commit is contained in:
@@ -2271,7 +2271,7 @@ void cv::inRange(const InputArray& _src, const InputArray& _lowerb,
|
||||
BinaryFunc sccvtfunc = getConvertFunc(scdepth, CV_32S);
|
||||
sccvtfunc(lb.data, 0, 0, 0, (uchar*)ilbuf, 0, Size(cn, 1), 0);
|
||||
sccvtfunc(ub.data, 0, 0, 0, (uchar*)iubuf, 0, Size(cn, 1), 0);
|
||||
int minval = getMinVal(depth), maxval = getMaxVal(depth);
|
||||
int minval = cvRound(getMinVal(depth)), maxval = cvRound(getMaxVal(depth));
|
||||
|
||||
for( int k = 0; k < cn; k++ )
|
||||
{
|
||||
|
@@ -115,7 +115,7 @@ static void FastAtan2_32f(const float *Y, const float *X, float *angle, int len,
|
||||
a = (y >= 0 ? CV_PI*0.5 : CV_PI*1.5) -
|
||||
x*y*(y2 + 0.43157974*x2)/(y2*y2 + x2*(0.76443945*y2 + 0.05831938*x2) + (float)DBL_EPSILON);
|
||||
}
|
||||
angle[i] = a*scale;
|
||||
angle[i] = (float)(a*scale);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1665,7 +1665,7 @@ diagtransform_( const T* src, T* dst, const WT* m, int len, int cn, int )
|
||||
{
|
||||
const WT* _m = m;
|
||||
for( int j = 0; j < cn; j++, _m += cn + 1 )
|
||||
dst[j] = src[j]*_m[j] + _m[cn];
|
||||
dst[j] = saturate_cast<T>(src[j]*_m[j] + _m[cn]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2600,7 +2600,7 @@ static double dotProd_8u(const uchar* src1, const uchar* src2, int len)
|
||||
__m128i z = _mm_setzero_si128();
|
||||
while( i < len0 )
|
||||
{
|
||||
blockSize = std::min(len0 - j, blockSize0);
|
||||
blockSize = std::min(len0 - i, blockSize0);
|
||||
__m128i s = _mm_setzero_si128();
|
||||
for( j = 0; j <= blockSize - 16; j += 16 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user