opencv_includes.hpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 Intel Corporation
  6. #ifndef OPENCV_GAPI_OPENCV_INCLUDES_HPP
  7. #define OPENCV_GAPI_OPENCV_INCLUDES_HPP
  8. #if !defined(GAPI_STANDALONE)
  9. # include <opencv2/core/mat.hpp>
  10. # include <opencv2/core/cvdef.h>
  11. # include <opencv2/core/types.hpp>
  12. # include <opencv2/core/base.hpp>
  13. #define GAPI_OWN_TYPES_LIST cv::gapi::own::Rect, \
  14. cv::gapi::own::Size, \
  15. cv::gapi::own::Point, \
  16. cv::gapi::own::Point2f, \
  17. cv::gapi::own::Scalar, \
  18. cv::gapi::own::Mat
  19. #else // Without OpenCV
  20. # include <opencv2/gapi/own/cvdefs.hpp>
  21. # include <opencv2/gapi/own/types.hpp> // cv::gapi::own::Rect/Size/Point
  22. # include <opencv2/gapi/own/scalar.hpp> // cv::gapi::own::Scalar
  23. # include <opencv2/gapi/own/mat.hpp>
  24. // replacement of cv's structures:
  25. namespace cv {
  26. using Rect = gapi::own::Rect;
  27. using Size = gapi::own::Size;
  28. using Point = gapi::own::Point;
  29. using Point2f = gapi::own::Point2f;
  30. using Scalar = gapi::own::Scalar;
  31. using Mat = gapi::own::Mat;
  32. } // namespace cv
  33. #define GAPI_OWN_TYPES_LIST cv::gapi::own::VoidType
  34. #endif // !defined(GAPI_STANDALONE)
  35. #endif // OPENCV_GAPI_OPENCV_INCLUDES_HPP