gapi_stereo_tests_cpu.cpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. //
  5. // Copyright (C) 2021 Intel Corporation
  6. #include "../test_precomp.hpp"
  7. #include "../common/gapi_stereo_tests.hpp"
  8. #include <opencv2/gapi/stereo.hpp> // For ::gapi::stereo::disparity/depth
  9. #include <opencv2/gapi/cpu/stereo.hpp>
  10. namespace
  11. {
  12. #define STEREO_CPU [] () { return cv::compile_args(cv::gapi::use_only{cv::gapi::calib3d::cpu::kernels()}); }
  13. } // anonymous namespace
  14. namespace opencv_test
  15. {
  16. INSTANTIATE_TEST_CASE_P(CPU_Tests, TestGAPIStereo,
  17. Combine(Values(CV_8UC1),
  18. Values(cv::Size(1280, 720)),
  19. Values(CV_32FC1),
  20. Values(STEREO_CPU),
  21. Values(cv::gapi::StereoOutputFormat::DEPTH_FLOAT16,
  22. cv::gapi::StereoOutputFormat::DEPTH_FLOAT32,
  23. cv::gapi::StereoOutputFormat::DISPARITY_FIXED16_12_4,
  24. cv::gapi::StereoOutputFormat::DEPTH_16F,
  25. cv::gapi::StereoOutputFormat::DEPTH_32F,
  26. cv::gapi::StereoOutputFormat::DISPARITY_16Q_11_4),
  27. Values(16),
  28. Values(43),
  29. Values(63.5),
  30. Values(3.6),
  31. Values(AbsExact().to_compare_obj())));
  32. } // opencv_test