Class RICInterpolator
- Namespace
- OpenCvSharp.XImgProc
- Assembly
- OpenCvSharp.dll
Sparse match interpolation algorithm based on modified piecewise locally-weighted affine estimator called Robust Interpolation method of Correspondences (RIC), and Variational and Fast Global Smoother as post-processing filter. RICInterpolator is an extension of EdgeAwareInterpolator; its main concept is a piece-wise affine model based on over-segmentation via SLIC superpixel estimation, with an efficient propagation mechanism to estimate among the piece-wise models.
public class RICInterpolator : SparseMatchInterpolator, IDisposable
- Inheritance
-
RICInterpolator
- Implements
- Inherited Members
Properties
- Alpha
A global weight for transforming geodesic distance into weight.
- FGSLambda
The respective fastGlobalSmootherFilter() lambda parameter.
- FGSSigma
The respective fastGlobalSmootherFilter() sigma parameter.
- K
K is a number of nearest-neighbor matches considered, when fitting a locally affine model for a superpixel segment. Lower values would make the interpolation noticeably faster. The original implementation uses 32.
- MaxFlow
A threshold to validate the predictions using a certain piece-wise affine model. If the prediction exceeds the threshold the translational model will be applied instead.
- ModelIter
The number of iterations for piece-wise affine model estimation.
- RefineModels
Whether additional refinement of the piece-wise affine models is employed.
- SuperpixelMode
Chooses the superpixel algorithm variant to use: SLIC (100) segments the image using a desired region size, SLICO (101) optimizes using an adaptive compactness factor, and MSLIC (102) optimizes using manifold methods resulting in more content-sensitive superpixels.
- SuperpixelNNCnt
The number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine model.
- SuperpixelRuler
Tunes the enforcement of the superpixel smoothness factor used for oversegmentation.
- SuperpixelSize
The approximate size of the superpixel used for oversegmentation.
- UseGlobalSmootherFilter
Whether the fastGlobalSmootherFilter() post-processing is employed.
- UseVariationalRefinement
Whether the VariationalRefinement post-processing is employed.
Methods
- Create()
Factory method that creates an instance of the RICInterpolator.
- SetCostMap(Mat)
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 use a more complex edge map estimator (e.g. StructuredEdgeDetection) that may lead to improved accuracies, the internal edge map estimation can be bypassed here.