perf_radon_transform.cpp 837 B

1234567891011121314151617181920212223242526272829303132333435
  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. #include "perf_precomp.hpp"
  5. namespace opencv_test { namespace {
  6. typedef tuple<Size, MatType> RadonTransformPerfTestParam;
  7. typedef perf::TestBaseWithParam<RadonTransformPerfTestParam> RadonTransformPerfTest;
  8. PERF_TEST_P(RadonTransformPerfTest, perf,
  9. testing::Combine(
  10. testing::Values(TYPICAL_MAT_SIZES),
  11. testing::Values(CV_8UC1, CV_32FC1, CV_64FC1)
  12. )
  13. )
  14. {
  15. Size srcSize = get<0>(GetParam());
  16. int srcType = get<1>(GetParam());
  17. Mat src(srcSize, srcType);
  18. Mat radon;
  19. declare.in(src, WARMUP_RNG);
  20. TEST_CYCLE()
  21. {
  22. RadonTransform(src, radon);
  23. }
  24. SANITY_CHECK_NOTHING();
  25. }
  26. } }