Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
seo young Joung
opencv
Commits
82e5b961
Commit
82e5b961
authored
5 years ago
by
Vitaly Tuzov
Browse files
Options
Download
Email Patches
Plain Diff
Fixed initUndistortRectifyMap AVX2 implementation
parent
23700792
4.x
3.4
5.x
master
next
4.5.5
4.5.4
4.5.3
4.5.3-openvino
4.5.3-openvino-2021.4.2
4.5.3-openvino-2021.4.1
4.5.2
4.5.2-openvino
4.5.1
4.5.1-openvino
4.5.0
4.5.0-openvino
4.4.0
4.4.0-openvino
4.3.0
4.3.0-openvino
4.3.0-openvino-2020.3.0
4.2.0
4.2.0-openvino
4.1.2
4.1.2-openvino
4.1.1
4.1.1-openvino
3.4.17
3.4.16
3.4.15
3.4.14
3.4.13
3.4.12
3.4.11
3.4.10
3.4.9
3.4.8
3.4.7
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/calib3d/test/test_undistort.cpp
+30
-0
modules/calib3d/test/test_undistort.cpp
modules/imgproc/src/undistort.avx2.cpp
+1
-1
modules/imgproc/src/undistort.avx2.cpp
with
31 additions
and
1 deletion
+31
-1
modules/calib3d/test/test_undistort.cpp
View file @
82e5b961
...
...
@@ -1114,4 +1114,34 @@ TEST(Calib3d_UndistortPoints, outputShape)
}
}
TEST
(
Calib3d_initUndistortRectifyMap
,
regression_14467
)
{
Size
size_w_h
(
512
+
3
,
512
);
Matx33f
k
(
6200
,
0
,
size_w_h
.
width
/
2.0
f
,
0
,
6200
,
size_w_h
.
height
/
2.0
f
,
0
,
0
,
1
);
Mat
mesh_uv
(
size_w_h
,
CV_32FC2
);
for
(
int
i
=
0
;
i
<
size_w_h
.
height
;
i
++
)
{
for
(
int
j
=
0
;
j
<
size_w_h
.
width
;
j
++
)
{
mesh_uv
.
at
<
Vec2f
>
(
i
,
j
)
=
Vec2f
((
float
)
j
,
(
float
)
i
);
}
}
Matx
<
double
,
1
,
14
>
d
(
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0.09
,
0.0
);
Mat
mapxy
,
dst
;
initUndistortRectifyMap
(
k
,
d
,
noArray
(),
k
,
size_w_h
,
CV_32FC2
,
mapxy
,
noArray
());
undistortPoints
(
mapxy
.
reshape
(
2
,
(
int
)
mapxy
.
total
()),
dst
,
k
,
d
,
noArray
(),
k
);
dst
=
dst
.
reshape
(
2
,
mapxy
.
rows
);
EXPECT_LE
(
cvtest
::
norm
(
dst
,
mesh_uv
,
NORM_INF
),
1e-3
);
}
}}
// namespace
This diff is collapsed.
Click to expand it.
modules/imgproc/src/undistort.avx2.cpp
View file @
82e5b961
...
...
@@ -124,7 +124,7 @@ int initUndistortRectifyMapLine_AVX(float* m1f, float* m2f, short* m1, ushort* m
_mm256_mul_pd
(
__matTilt_20
,
__xd
),
_mm256_mul_pd
(
__matTilt_21
,
__yd
)),
__matTilt_22
);
#endif
__m256d
__invProj
=
_mm256_blendv_pd
(
__one
,
_mm256_div_pd
(
__one
,
__vecTilt2
),
_mm256_div_pd
(
__one
,
__vecTilt2
),
__one
,
_mm256_cmp_pd
(
__vecTilt2
,
_mm256_setzero_pd
(),
_CMP_EQ_OQ
));
#if CV_FMA3
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help