OpenCV 4.5.3(日本語機械翻訳)
sparse_match_interpolator.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_SPARSEMATCHINTERPOLATOR_HPP__
38 #define __OPENCV_SPARSEMATCHINTERPOLATOR_HPP__
39 #ifdef __cplusplus
40
41 #include <opencv2/core.hpp>
42
43 namespace cv {
44 namespace ximgproc {
45
48
52 class CV_EXPORTS_W SparseMatchInterpolator : public Algorithm
53{
54 public:
69 CV_WRAP virtual void interpolate(InputArray from_image, InputArray from_points,
70 InputArray to_image , InputArray to_points,
71 OutputArray dense_flow) = 0;
72};
73
77 class CV_EXPORTS_W EdgeAwareInterpolator : public SparseMatchInterpolator
78{
79 public:
88 CV_WRAP virtual void setCostMap(const Mat & _costMap) = 0;
96 CV_WRAP virtual void setK(int _k) = 0;
98 CV_WRAP virtual int getK() = 0;
99
104 CV_WRAP virtual void setSigma(float _sigma) = 0;
106 CV_WRAP virtual float getSigma() = 0;
107
111 CV_WRAP virtual void setLambda(float _lambda) = 0;
113 CV_WRAP virtual float getLambda() = 0;
114
118 CV_WRAP virtual void setUsePostProcessing(bool _use_post_proc) = 0;
120 CV_WRAP virtual bool getUsePostProcessing() = 0;
121
124 CV_WRAP virtual void setFGSLambda(float _lambda) = 0;
126 CV_WRAP virtual float getFGSLambda() = 0;
127
129 CV_WRAP virtual void setFGSSigma(float _sigma) = 0;
131 CV_WRAP virtual float getFGSSigma() = 0;
132};
133
137CV_EXPORTS_W
138Ptr<EdgeAwareInterpolator> createEdgeAwareInterpolator();
139
146 class CV_EXPORTS_W RICInterpolator : public SparseMatchInterpolator
147{
148 public:
153 CV_WRAP virtual void setK(int k = 32) = 0;
157 CV_WRAP virtual int getK() const = 0;
166 CV_WRAP virtual void setCostMap(const Mat & costMap) = 0;
170 CV_WRAP virtual void setSuperpixelSize(int spSize = 15) = 0;
174 CV_WRAP virtual int getSuperpixelSize() const = 0;
178 CV_WRAP virtual void setSuperpixelNNCnt(int spNN = 150) = 0;
182 CV_WRAP virtual int getSuperpixelNNCnt() const = 0;
186 CV_WRAP virtual void setSuperpixelRuler(float ruler = 15.f) = 0;
190 CV_WRAP virtual float getSuperpixelRuler() const = 0;
197 CV_WRAP virtual void setSuperpixelMode(int mode = 100) = 0;
201 CV_WRAP virtual int getSuperpixelMode() const = 0;
204 CV_WRAP virtual void setAlpha(float alpha = 0.7f) = 0;
208 CV_WRAP virtual float getAlpha() const = 0;
211 CV_WRAP virtual void setModelIter(int modelIter = 4) = 0;
215 CV_WRAP virtual int getModelIter() const = 0;
218 CV_WRAP virtual void setRefineModels(bool refineModles = true) = 0;
222 CV_WRAP virtual bool getRefineModels() const = 0;
226 CV_WRAP virtual void setMaxFlow(float maxFlow = 250.f) = 0;
230 CV_WRAP virtual float getMaxFlow() const = 0;
233 CV_WRAP virtual void setUseVariationalRefinement(bool use_variational_refinement = false) = 0;
237 CV_WRAP virtual bool getUseVariationalRefinement() const = 0;
240 CV_WRAP virtual void setUseGlobalSmootherFilter(bool use_FGS = true) = 0;
244 CV_WRAP virtual bool getUseGlobalSmootherFilter() const = 0;
247 CV_WRAP virtual void setFGSLambda(float lambda = 500.f) = 0;
251 CV_WRAP virtual float getFGSLambda() const = 0;
254 CV_WRAP virtual void setFGSSigma(float sigma = 1.5f) = 0;
258 CV_WRAP virtual float getFGSSigma() const = 0;
259};
260
264CV_EXPORTS_W
265Ptr<RICInterpolator> createRICInterpolator();
267}
268}
269 #endif
270 #endif
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75