fixed compile warnings on Linux and Windows
This commit is contained in:
parent
05d888316a
commit
ca90667723
@ -3960,7 +3960,7 @@ static void remapBilinear( const Mat& _src, Mat& _dst, const Mat& _xy,
|
|||||||
else
|
else
|
||||||
for( ; dx < X1; dx++, D += cn )
|
for( ; dx < X1; dx++, D += cn )
|
||||||
{
|
{
|
||||||
int sx = XY[dx*2], sy = XY[dx*2+1], k;
|
int sx = XY[dx*2], sy = XY[dx*2+1];
|
||||||
if( borderType == BORDER_CONSTANT &&
|
if( borderType == BORDER_CONSTANT &&
|
||||||
(sx >= ssize.width || sx+1 < 0 ||
|
(sx >= ssize.width || sx+1 < 0 ||
|
||||||
sy >= ssize.height || sy+1 < 0) )
|
sy >= ssize.height || sy+1 < 0) )
|
||||||
|
@ -1657,14 +1657,14 @@ TEST(Imgproc_Warp, multichannel)
|
|||||||
TEST(Imgproc_GetAffineTransform, singularity)
|
TEST(Imgproc_GetAffineTransform, singularity)
|
||||||
{
|
{
|
||||||
Point2f A_sample[3];
|
Point2f A_sample[3];
|
||||||
A_sample[0] = cv::Point2f(8, 9);
|
A_sample[0] = Point2f(8.f, 9.f);
|
||||||
A_sample[1] = cv::Point2f(40, 41);
|
A_sample[1] = Point2f(40.f, 41.f);
|
||||||
A_sample[2] = cv::Point2f(47, 48);
|
A_sample[2] = Point2f(47.f, 48.f);
|
||||||
Point2f B_sample[3];
|
Point2f B_sample[3];
|
||||||
B_sample[0] = cv::Point2f(7.37465, 11.8295);
|
B_sample[0] = Point2f(7.37465f, 11.8295f);
|
||||||
B_sample[1] = cv::Point2f(15.0113, 12.8994);
|
B_sample[1] = Point2f(15.0113f, 12.8994f);
|
||||||
B_sample[2] = cv::Point2f(38.9943, 9.56297);
|
B_sample[2] = Point2f(38.9943f, 9.56297f);
|
||||||
Mat trans = cv::getAffineTransform(A_sample, B_sample);
|
Mat trans = getAffineTransform(A_sample, B_sample);
|
||||||
ASSERT_EQ(0.0, norm(trans, NORM_INF));
|
ASSERT_EQ(0.0, norm(trans, NORM_INF));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user