// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2021 Intel Corporation #ifndef OPENCV_GAPI_CPU_STEREO_API_HPP #define OPENCV_GAPI_CPU_STEREO_API_HPP #include // GKernelPackage namespace cv { namespace gapi { namespace calib3d { namespace cpu { GAPI_EXPORTS GKernelPackage kernels(); /** @brief Structure for the Stereo operation initialization parameters.*/ struct GAPI_EXPORTS StereoInitParam { StereoInitParam(int nD, int bS, double bL, double f): numDisparities(nD), blockSize(bS), baseline(bL), focus(f) {} StereoInitParam() = default; int numDisparities = 0; int blockSize = 21; double baseline = 63.5; double focus = 3.6; }; } // namespace cpu } // namespace calib3d } // namespace gapi namespace detail { template<> struct CompileArgTag { static const char* tag() { return "org.opencv.stereoInit"; } }; } // namespace detail } // namespace cv #endif // OPENCV_GAPI_CPU_STEREO_API_HPP