opencv_includes.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. #else // Without OpenCV
  14. # include <opencv2/gapi/own/cvdefs.hpp>
  15. # include <opencv2/gapi/own/types.hpp> // cv::gapi::own::Rect/Size/Point
  16. # include <opencv2/gapi/own/scalar.hpp> // cv::gapi::own::Scalar
  17. # include <opencv2/gapi/own/mat.hpp>
  18. // replacement of cv's structures:
  19. namespace cv {
  20. using Rect = gapi::own::Rect;
  21. using Size = gapi::own::Size;
  22. using Point = gapi::own::Point;
  23. using Point2f = gapi::own::Point2f;
  24. using Scalar = gapi::own::Scalar;
  25. using Mat = gapi::own::Mat;
  26. } // namespace cv
  27. #endif // !defined(GAPI_STANDALONE)
  28. #endif // OPENCV_GAPI_OPENCV_INCLUDES_HPP