RICInterpolator
Objective-C
@interface RICInterpolator : SparseMatchInterpolator
Swift
class RICInterpolator : SparseMatchInterpolator
Sparse match interpolation algorithm based on modified piecewise locally-weighted affine estimator called Robust Interpolation method of Correspondences or RIC from CITE: Hu2017 and Variational and Fast Global Smoother as post-processing filter. The RICInterpolator is a extension of the EdgeAwareInterpolator. Main concept of this extension is an piece-wise affine model based on over-segmentation via SLIC superpixel estimation. The method contains an efficient propagation mechanism to estimate among the pieces-wise models.
Member of Ximgproc
-
setRefineModels
Declaration
Objective-C
- (BOOL)getRefineModels;
Swift
func getRefineModels() -> Bool
-
setUseGlobalSmootherFilter
Declaration
Objective-C
- (BOOL)getUseGlobalSmootherFilter;
Swift
func getUseGlobalSmootherFilter() -> Bool
-
setUseVariationalRefinement
Declaration
Objective-C
- (BOOL)getUseVariationalRefinement;
Swift
func getUseVariationalRefinement() -> Bool
-
setAlpha
See
-setAlpha:
Declaration
Objective-C
- (float)getAlpha;
Swift
func getAlpha() -> Float
-
setFGSLambda
See
-setFGSLambda:
Declaration
Objective-C
- (float)getFGSLambda;
Swift
func getFGSLambda() -> Float
-
setFGSSigma
See
-setFGSSigma:
Declaration
Objective-C
- (float)getFGSSigma;
Swift
func getFGSSigma() -> Float
-
setMaxFlow
See
-setMaxFlow:
Declaration
Objective-C
- (float)getMaxFlow;
Swift
func getMaxFlow() -> Float
-
setSuperpixelRuler
Declaration
Objective-C
- (float)getSuperpixelRuler;
Swift
func getSuperpixelRuler() -> Float
-
setK
See
-setK:
Declaration
Objective-C
- (int)getK;
Swift
func getK() -> Int32
-
setModelIter
See
-setModelIter:
Declaration
Objective-C
- (int)getModelIter;
Swift
func getModelIter() -> Int32
-
setSuperpixelMode
Declaration
Objective-C
- (int)getSuperpixelMode;
Swift
func getSuperpixelMode() -> Int32
-
setSuperpixelNNCnt
Declaration
Objective-C
- (int)getSuperpixelNNCnt;
Swift
func getSuperpixelNNCnt() -> Int32
-
setSuperpixelSize
Declaration
Objective-C
- (int)getSuperpixelSize;
Swift
func getSuperpixelSize() -> Int32
-
Alpha is a parameter defining a global weight for transforming geodesic distance into weight.
Declaration
Objective-C
- (void)setAlpha:(float)alpha;
Swift
func setAlpha(alpha: Float)
-
Alpha is a parameter defining a global weight for transforming geodesic distance into weight.
Declaration
Objective-C
- (void)setAlpha;
Swift
func setAlpha()
-
Interface to provide a more elaborated cost map, i.e. edge map, for the edge-aware term. This implementation is based on a rather simple gradient-based edge map estimation. To used more complex edge map estimator (e.g. StructuredEdgeDetection that has been used in the original publication) that may lead to improved accuracies, the internal edge map estimation can be bypassed here.
See
cv::ximgproc::createSuperpixelSLIC
Declaration
Objective-C
- (void)setCostMap:(nonnull Mat *)costMap;
Swift
func setCostMap(costMap: Mat)
Parameters
costMap
a type CV_32FC1 Mat is required.
-
Sets the respective fastGlobalSmootherFilter() parameter.
Declaration
Objective-C
- (void)setFGSLambda:(float)lambda;
Swift
func setFGSLambda(lambda: Float)
-
Sets the respective fastGlobalSmootherFilter() parameter.
Declaration
Objective-C
- (void)setFGSLambda;
Swift
func setFGSLambda()
-
Sets the respective fastGlobalSmootherFilter() parameter.
Declaration
Objective-C
- (void)setFGSSigma:(float)sigma;
Swift
func setFGSSigma(sigma: Float)
-
Sets the respective fastGlobalSmootherFilter() parameter.
Declaration
Objective-C
- (void)setFGSSigma;
Swift
func setFGSSigma()
-
K is a number of nearest-neighbor matches considered, when fitting a locally affine model for a superpixel segment. However, lower values would make the interpolation noticeably faster. The original implementation of CITE: Hu2017 uses 32.
Declaration
Objective-C
- (void)setK:(int)k;
Swift
func setK(k: Int32)
-
K is a number of nearest-neighbor matches considered, when fitting a locally affine model for a superpixel segment. However, lower values would make the interpolation noticeably faster. The original implementation of CITE: Hu2017 uses 32.
Declaration
Objective-C
- (void)setK;
Swift
func setK()
-
MaxFlow is a threshold to validate the predictions using a certain piece-wise affine model. If the prediction exceeds the treshold the translational model will be applied instead.
Declaration
Objective-C
- (void)setMaxFlow:(float)maxFlow;
Swift
func setMaxFlow(maxFlow: Float)
-
MaxFlow is a threshold to validate the predictions using a certain piece-wise affine model. If the prediction exceeds the treshold the translational model will be applied instead.
Declaration
Objective-C
- (void)setMaxFlow;
Swift
func setMaxFlow()
-
Parameter defining the number of iterations for piece-wise affine model estimation.
Declaration
Objective-C
- (void)setModelIter:(int)modelIter;
Swift
func setModelIter(modelIter: Int32)
-
Parameter defining the number of iterations for piece-wise affine model estimation.
Declaration
Objective-C
- (void)setModelIter;
Swift
func setModelIter()
-
Parameter to choose wether additional refinement of the piece-wise affine models is employed.
Declaration
Objective-C
- (void)setRefineModels:(BOOL)refineModles;
Swift
func setRefineModels(refineModles: Bool)
-
Parameter to choose wether additional refinement of the piece-wise affine models is employed.
Declaration
Objective-C
- (void)setRefineModels;
Swift
func setRefineModels()
-
Parameter to choose superpixel algorithm variant to use:
- cv::ximgproc::SLICType SLIC segments image using a desired region_size (value: 100)
- cv::ximgproc::SLICType SLICO will optimize using adaptive compactness factor (value: 101)
- cv::ximgproc::SLICType MSLIC will optimize using manifold methods resulting in more content-sensitive superpixels (value: 102).
See
cv::ximgproc::createSuperpixelSLIC
Declaration
Objective-C
- (void)setSuperpixelMode:(int)mode;
Swift
func setSuperpixelMode(mode: Int32)
-
Parameter to choose superpixel algorithm variant to use:
- cv::ximgproc::SLICType SLIC segments image using a desired region_size (value: 100)
- cv::ximgproc::SLICType SLICO will optimize using adaptive compactness factor (value: 101)
- cv::ximgproc::SLICType MSLIC will optimize using manifold methods resulting in more content-sensitive superpixels (value: 102).
See
cv::ximgproc::createSuperpixelSLIC
Declaration
Objective-C
- (void)setSuperpixelMode;
Swift
func setSuperpixelMode()
-
Parameter defines the number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine model.
Declaration
Objective-C
- (void)setSuperpixelNNCnt:(int)spNN;
Swift
func setSuperpixelNNCnt(spNN: Int32)
-
Parameter defines the number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine model.
Declaration
Objective-C
- (void)setSuperpixelNNCnt;
Swift
func setSuperpixelNNCnt()
-
Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation.
See
cv::ximgproc::createSuperpixelSLIC
Declaration
Objective-C
- (void)setSuperpixelRuler:(float)ruler;
Swift
func setSuperpixelRuler(ruler: Float)
-
Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation.
See
cv::ximgproc::createSuperpixelSLIC
Declaration
Objective-C
- (void)setSuperpixelRuler;
Swift
func setSuperpixelRuler()
-
Get the internal cost, i.e. edge map, used for estimating the edge-aware term.
See
-setCostMap:
Declaration
Objective-C
- (void)setSuperpixelSize:(int)spSize;
Swift
func setSuperpixelSize(spSize: Int32)
-
Get the internal cost, i.e. edge map, used for estimating the edge-aware term.
See
-setCostMap:
Declaration
Objective-C
- (void)setSuperpixelSize;
Swift
func setSuperpixelSize()
-
Sets whether the fastGlobalSmootherFilter() post-processing is employed.
Declaration
Objective-C
- (void)setUseGlobalSmootherFilter:(BOOL)use_FGS;
Swift
func setUseGlobalSmootherFilter(use_FGS: Bool)
-
Sets whether the fastGlobalSmootherFilter() post-processing is employed.
Declaration
Objective-C
- (void)setUseGlobalSmootherFilter;
Swift
func setUseGlobalSmootherFilter()
-
Parameter to choose wether the VariationalRefinement post-processing is employed.
Declaration
Objective-C
- (void)setUseVariationalRefinement:(BOOL)use_variational_refinement;
Swift
func setUseVariationalRefinement(use_variational_refinement: Bool)
-
Parameter to choose wether the VariationalRefinement post-processing is employed.
Declaration
Objective-C
- (void)setUseVariationalRefinement;
Swift
func setUseVariationalRefinement()