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.

public float FGSLambda { get; set; }

Property Value

float

FGSSigma

The respective fastGlobalSmootherFilter() sigma parameter.

public float FGSSigma { get; set; }

Property Value

float

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.

public int K { get; set; }

Property Value

int

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.

public float Lambda { get; set; }

Property Value

float

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.

public float Sigma { get; set; }

Property Value

float

UsePostProcessing

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

public bool UsePostProcessing { get; set; }

Property Value

bool

Methods

Create()

Factory method that creates an instance of the EdgeAwareInterpolator.

public static EdgeAwareInterpolator Create()

Returns

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.

public void SetCostMap(Mat costMap)

Parameters

costMap Mat

a type CV_32FC1 Mat is required.