Table of Contents

Class EdgeAwareInterpolator

Namespace
OpenCvSharp.XImgProc
Assembly
OpenCvSharp.dll

Sparse match interpolation algorithm based on modified locally-weighted affine estimator and Fast Global Smoother as post-processing filter.

public class EdgeAwareInterpolator : SparseMatchInterpolator, IDisposable
Inheritance
EdgeAwareInterpolator
Implements
Inherited Members

Properties

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. Usually it should be around 128. However, lower values would make the interpolation noticeably faster.

Lambda

Lambda is a parameter defining the weight of the edge-aware term in geodesic distance, should be in the range of 0 to 1000.

Sigma

Sigma is a parameter defining how fast the weights decrease in the locally-weighted affine fitting. Higher values can help preserve fine details, lower values can help to get rid of noise in the output flow.

UsePostProcessing

Sets whether the fastGlobalSmootherFilter() post-processing is employed. It is turned on by default.

Methods

Create()

Factory method that creates an instance of the EdgeAwareInterpolator.

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.