github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/opencv4/include/opencv2/gapi/opencv_includes.hpp (about)

     1  // This file is part of OpenCV project.
     2  
     3  // It is subject to the license terms in the LICENSE file found in the top-level directory
     4  // of this distribution and at http://opencv.org/license.html.
     5  //
     6  // Copyright (C) 2018 Intel Corporation
     7  
     8  
     9  #ifndef OPENCV_GAPI_OPENCV_INCLUDES_HPP
    10  #define OPENCV_GAPI_OPENCV_INCLUDES_HPP
    11  
    12  #if !defined(GAPI_STANDALONE)
    13  #  include <opencv2/core/mat.hpp>
    14  #  include <opencv2/core/cvdef.h>
    15  #  include <opencv2/core/types.hpp>
    16  #  include <opencv2/core/base.hpp>
    17  #else   // Without OpenCV
    18  #  include <opencv2/gapi/own/cvdefs.hpp>
    19  #  include <opencv2/gapi/own/types.hpp>  // cv::gapi::own::Rect/Size/Point
    20  #  include <opencv2/gapi/own/scalar.hpp> // cv::gapi::own::Scalar
    21  #  include <opencv2/gapi/own/mat.hpp>
    22  // replacement of cv's structures:
    23  namespace cv {
    24      using Rect    = gapi::own::Rect;
    25      using Size    = gapi::own::Size;
    26      using Point   = gapi::own::Point;
    27      using Point2f = gapi::own::Point2f;
    28      using Scalar  = gapi::own::Scalar;
    29      using Mat     = gapi::own::Mat;
    30  }  // namespace cv
    31  #endif // !defined(GAPI_STANDALONE)
    32  
    33  #endif // OPENCV_GAPI_OPENCV_INCLUDES_HPP