37
#ifndef __OPENCV_SPARSEMATCHINTERPOLATOR_HPP__
38
#define __OPENCV_SPARSEMATCHINTERPOLATOR_HPP__
41
#include <opencv2/core.hpp>
52
class
CV_EXPORTS_W SparseMatchInterpolator :
public
Algorithm
69
CV_WRAP
virtual
void
interpolate(InputArray from_image, InputArray from_points,
70
InputArray to_image , InputArray to_points,
71
OutputArray dense_flow) = 0;
77
class
CV_EXPORTS_W EdgeAwareInterpolator :
public
SparseMatchInterpolator
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;
104
CV_WRAP
virtual
void
setSigma(
float
_sigma) = 0;
106
CV_WRAP
virtual
float
getSigma() = 0;
111
CV_WRAP
virtual
void
setLambda(
float
_lambda) = 0;
113
CV_WRAP
virtual
float
getLambda() = 0;
118
CV_WRAP
virtual
void
setUsePostProcessing(
bool
_use_post_proc) = 0;
120
CV_WRAP
virtual
bool
getUsePostProcessing() = 0;
124
CV_WRAP
virtual
void
setFGSLambda(
float
_lambda) = 0;
126
CV_WRAP
virtual
float
getFGSLambda() = 0;
129
CV_WRAP
virtual
void
setFGSSigma(
float
_sigma) = 0;
131
CV_WRAP
virtual
float
getFGSSigma() = 0;
138Ptr<EdgeAwareInterpolator> createEdgeAwareInterpolator();
146
class
CV_EXPORTS_W RICInterpolator :
public
SparseMatchInterpolator
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;
265Ptr<RICInterpolator> createRICInterpolator();
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75