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

     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) 2021 Intel Corporation
     6  
     7  #ifndef OPENCV_GAPI_CPU_STEREO_API_HPP
     8  #define OPENCV_GAPI_CPU_STEREO_API_HPP
     9  
    10  #include <opencv2/gapi/gkernel.hpp> // GKernelPackage
    11  
    12  namespace cv {
    13  namespace gapi {
    14  namespace calib3d {
    15  namespace cpu {
    16  
    17  GAPI_EXPORTS GKernelPackage kernels();
    18  
    19  /** @brief Structure for the Stereo operation initialization parameters.*/
    20  struct GAPI_EXPORTS StereoInitParam {
    21      StereoInitParam(int nD, int bS, double bL, double f):
    22          numDisparities(nD), blockSize(bS), baseline(bL), focus(f) {}
    23  
    24      StereoInitParam() = default;
    25  
    26      int numDisparities = 0;
    27      int blockSize = 21;
    28      double baseline = 63.5;
    29      double focus = 3.6;
    30  };
    31  
    32  } // namespace cpu
    33  } // namespace calib3d
    34  } // namespace gapi
    35  
    36  namespace detail {
    37  
    38      template<> struct CompileArgTag<cv::gapi::calib3d::cpu::StereoInitParam> {
    39      static const char* tag() {
    40          return "org.opencv.stereoInit";
    41      }
    42  };
    43  
    44  } // namespace detail
    45  } // namespace cv
    46  
    47  
    48  #endif // OPENCV_GAPI_CPU_STEREO_API_HPP