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
|
||||
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 &&
|
||||
(sx >= ssize.width || sx+1 < 0 ||
|
||||
sy >= ssize.height || sy+1 < 0) )
|
||||
|
@ -1657,14 +1657,14 @@ TEST(Imgproc_Warp, multichannel)
|
||||
TEST(Imgproc_GetAffineTransform, singularity)
|
||||
{
|
||||
Point2f A_sample[3];
|
||||
A_sample[0] = cv::Point2f(8, 9);
|
||||
A_sample[1] = cv::Point2f(40, 41);
|
||||
A_sample[2] = cv::Point2f(47, 48);
|
||||
A_sample[0] = Point2f(8.f, 9.f);
|
||||
A_sample[1] = Point2f(40.f, 41.f);
|
||||
A_sample[2] = Point2f(47.f, 48.f);
|
||||
Point2f B_sample[3];
|
||||
B_sample[0] = cv::Point2f(7.37465, 11.8295);
|
||||
B_sample[1] = cv::Point2f(15.0113, 12.8994);
|
||||
B_sample[2] = cv::Point2f(38.9943, 9.56297);
|
||||
Mat trans = cv::getAffineTransform(A_sample, B_sample);
|
||||
B_sample[0] = Point2f(7.37465f, 11.8295f);
|
||||
B_sample[1] = Point2f(15.0113f, 12.8994f);
|
||||
B_sample[2] = Point2f(38.9943f, 9.56297f);
|
||||
Mat trans = getAffineTransform(A_sample, B_sample);
|
||||
ASSERT_EQ(0.0, norm(trans, NORM_INF));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user