File size: 1,190 Bytes
73bf052
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// 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 <opencv2/gapi/gkernel.hpp> // 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<cv::gapi::calib3d::cpu::StereoInitParam> {
    static const char* tag() {
        return "org.opencv.stereoInit";
    }
};

} // namespace detail
} // namespace cv


#endif // OPENCV_GAPI_CPU_STEREO_API_HPP