test_precomp.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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) 2018-2020 Intel Corporation
  6. // FIXME: OpenCV header
  7. #ifndef __OPENCV_GAPI_TEST_PRECOMP_HPP__
  8. #define __OPENCV_GAPI_TEST_PRECOMP_HPP__
  9. #include <cstdint>
  10. #include <thread>
  11. #include <vector>
  12. #include <opencv2/ts.hpp>
  13. #include <opencv2/core/utils/configuration.private.hpp>
  14. #include <opencv2/gapi.hpp>
  15. #include <opencv2/gapi/core.hpp>
  16. #include <opencv2/gapi/imgproc.hpp>
  17. #include <opencv2/gapi/video.hpp>
  18. #include <opencv2/gapi/cpu/gcpukernel.hpp>
  19. #include <opencv2/gapi/gpu/ggpukernel.hpp>
  20. #include <opencv2/gapi/gpu/imgproc.hpp>
  21. #include <opencv2/gapi/gpu/core.hpp>
  22. #include <opencv2/gapi/gcompoundkernel.hpp>
  23. #include <opencv2/gapi/operators.hpp>
  24. #include <opencv2/gapi/fluid/imgproc.hpp>
  25. #include <opencv2/gapi/fluid/core.hpp>
  26. #include <opencv2/gapi/infer.hpp>
  27. namespace cv {
  28. static inline void countNonZero_is_forbidden_in_tests_use_norm_instead() {}
  29. }
  30. #define countNonZero() countNonZero_is_forbidden_in_tests_use_norm_instead()
  31. #undef RAND_MAX
  32. #define RAND_MAX RAND_MAX_is_banned_in_tests__use_cv_theRNG_instead
  33. #endif // __OPENCV_GAPI_TEST_PRECOMP_HPP__