Skip to content

Commit

Permalink
Merge pull request opencv#14994 from terfendail:wintr_undistort
Browse files Browse the repository at this point in the history
WUI based implementation to initUndistortRectifyMap (opencv#14994)

* Add initUndistortRectifyMap performance test

* Move cv namespace boundaries

* Add wide universal intrinsics based implementation to initUndistortRectifyMap

* Dispatch undistort
  • Loading branch information
terfendail authored and alalek committed Jul 18, 2019
1 parent 12fdaf8 commit e0f8bb8
Show file tree
Hide file tree
Showing 6 changed files with 378 additions and 402 deletions.
1 change: 1 addition & 0 deletions modules/imgproc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ ocv_add_dispatched_file(color_yuv SSE2 SSE4_1 AVX2)
ocv_add_dispatched_file(median_blur SSE2 SSE4_1 AVX2)
ocv_add_dispatched_file(morph SSE2 SSE4_1 AVX2)
ocv_add_dispatched_file(smooth SSE2 SSE4_1 AVX2)
ocv_add_dispatched_file(undistort SSE2 AVX2)
ocv_define_module(imgproc opencv_core WRAP java python js)
11 changes: 11 additions & 0 deletions modules/imgproc/perf/perf_warp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,15 @@ PERF_TEST(Transform, getPerspectiveTransform_1000)
SANITY_CHECK_NOTHING();
}

PERF_TEST(Undistort, InitUndistortMap)
{
Size size_w_h(512 + 3, 512);
Mat k(3, 3, CV_32FC1);
Mat d(1, 14, CV_64FC1);
Mat dst(size_w_h, CV_32FC2);
declare.in(k, d, WARMUP_RNG).out(dst);
TEST_CYCLE() initUndistortRectifyMap(k, d, noArray(), k, size_w_h, CV_32FC2, dst, noArray());
SANITY_CHECK_NOTHING();
}

} // namespace
194 changes: 0 additions & 194 deletions modules/imgproc/src/undistort.avx2.cpp

This file was deleted.

Loading

0 comments on commit e0f8bb8

Please sign in to comment.