OpenCV 4.5.3(日本語機械翻訳)
disparity_filter.hpp
1 /*
2 * By downloading, copying, installing or using the software you agree to this license.
3 * If you do not agree to this license, do not download, install,
4 * copy or use the software.
5 *
6 *
7 * License Agreement
8 * For Open Source Computer Vision Library
9 * (3 - clause BSD License)
10 *
11 * Redistribution and use in source and binary forms, with or without modification,
12 * are permitted provided that the following conditions are met :
13 *
14 * * Redistributions of source code must retain the above copyright notice,
15 * this list of conditions and the following disclaimer.
16 *
17 * * Redistributions in binary form must reproduce the above copyright notice,
18 * this list of conditions and the following disclaimer in the documentation
19 * and / or other materials provided with the distribution.
20 *
21 * * Neither the names of the copyright holders nor the names of the contributors
22 * may be used to endorse or promote products derived from this software
23 * without specific prior written permission.
24 *
25 * This software is provided by the copyright holders and contributors "as is" and
26 * any express or implied warranties, including, but not limited to, the implied
27 * warranties of merchantability and fitness for a particular purpose are disclaimed.
28 * In no event shall copyright holders or contributors be liable for any direct,
29 * indirect, incidental, special, exemplary, or consequential damages
30 * (including, but not limited to, procurement of substitute goods or services;
31 * loss of use, data, or profits; or business interruption) however caused
32 * and on any theory of liability, whether in contract, strict liability,
33 * or tort(including negligence or otherwise) arising in any way out of
34 * the use of this software, even if advised of the possibility of such damage.
35 */
36
37 #ifndef __OPENCV_DISPARITYFILTER_HPP__
38 #define __OPENCV_DISPARITYFILTER_HPP__
39 #ifdef __cplusplus
40
41 #include <opencv2/core.hpp>
42 #include <opencv2/calib3d.hpp>
43
44 namespace cv {
45 namespace ximgproc {
46
49
52 class CV_EXPORTS_W DisparityFilter : public Algorithm
53{
54 public:
55
75 CV_WRAP virtual void filter(InputArray disparity_map_left, InputArray left_view, OutputArray filtered_disparity_map, InputArray disparity_map_right = Mat(), Rect ROI = Rect(), InputArray right_view = Mat()) = 0;
76};
77
82 class CV_EXPORTS_W DisparityWLSFilter : public DisparityFilter
83{
84 public:
90 CV_WRAP virtual double getLambda() = 0;
92 CV_WRAP virtual void setLambda(double _lambda) = 0;
97 CV_WRAP virtual double getSigmaColor() = 0;
99 CV_WRAP virtual void setSigmaColor(double _sigma_color) = 0;
100
106 CV_WRAP virtual int getLRCthresh() = 0;
108 CV_WRAP virtual void setLRCthresh(int _LRC_thresh) = 0;
112 CV_WRAP virtual int getDepthDiscontinuityRadius() = 0;
114 CV_WRAP virtual void setDepthDiscontinuityRadius(int _disc_radius) = 0;
119 CV_WRAP virtual Mat getConfidenceMap() = 0;
122 CV_WRAP virtual Rect getROI() = 0;
123};
124
130CV_EXPORTS_W
131Ptr<DisparityWLSFilter> createDisparityWLSFilter(Ptr<StereoMatcher> matcher_left);
132
138CV_EXPORTS_W
139Ptr<StereoMatcher> createRightMatcher(Ptr<StereoMatcher> matcher_left);
140
148CV_EXPORTS_W
149Ptr<DisparityWLSFilter> createDisparityWLSFilterGeneric(bool use_confidence);
150
153
163CV_EXPORTS_W
164 int readGT(String src_path,OutputArray dst);
165
176CV_EXPORTS_W
177 double computeMSE(InputArray GT, InputArray src, Rect ROI);
178
192CV_EXPORTS_W
193 double computeBadPixelPercent(InputArray GT, InputArray src, Rect ROI, int thresh=24/*1.5 pixels*/);
194
203CV_EXPORTS_W
204 void getDisparityVis(InputArray src,OutputArray dst,double scale=1.0);
205
207}
208}
209 #endif
210 #endif
CV_EXPORTS_W void filter(InputArray image, InputArray kernel, OutputArray output)
Image filtering
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75