|
|
|
|
|
|
|
|
|
|
|
|
| #ifndef OPENCV_GAPI_CPU_STEREO_API_HPP
|
| #define OPENCV_GAPI_CPU_STEREO_API_HPP
|
|
|
| #include <opencv2/gapi/gkernel.hpp>
|
|
|
| namespace cv {
|
| namespace gapi {
|
| namespace calib3d {
|
| namespace cpu {
|
|
|
| GAPI_EXPORTS GKernelPackage kernels();
|
|
|
|
|
| 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 detail {
|
|
|
| template<> struct CompileArgTag<cv::gapi::calib3d::cpu::StereoInitParam> {
|
| static const char* tag() {
|
| return "org.opencv.stereoInit";
|
| }
|
| };
|
|
|
| }
|
| }
|
|
|
|
|
| #endif
|
|
|