EdgeAwareInterpolator

Objective-C

@interface EdgeAwareInterpolator : SparseMatchInterpolator

Swift

class EdgeAwareInterpolator : SparseMatchInterpolator

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

Member of Ximgproc

Methods

  • Declaration

    Objective-C

    - (BOOL)getUsePostProcessing;

    Swift

    func getUsePostProcessing() -> Bool
  • Declaration

    Objective-C

    - (float)getFGSLambda;

    Swift

    func getFGSLambda() -> Float
  • Declaration

    Objective-C

    - (float)getFGSSigma;

    Swift

    func getFGSSigma() -> Float
  • Declaration

    Objective-C

    - (float)getLambda;

    Swift

    func getLambda() -> Float
  • Declaration

    Objective-C

    - (float)getSigma;

    Swift

    func getSigma() -> Float
  • See

    -setK:

    Declaration

    Objective-C

    - (int)getK;

    Swift

    func getK() -> Int32
  • 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)
  • Declaration

    Objective-C

    - (void)setFGSSigma:(float)_sigma;

    Swift

    func setFGSSigma(_sigma: Float)
  • 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.

    Declaration

    Objective-C

    - (void)setK:(int)_k;

    Swift

    func setK(_k: Int32)
  • Lambda is a parameter defining the weight of the edge-aware term in geodesic distance, should be in the range of 0 to 1000.

    Declaration

    Objective-C

    - (void)setLambda:(float)_lambda;

    Swift

    func setLambda(_lambda: Float)
  • 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.

    Declaration

    Objective-C

    - (void)setSigma:(float)_sigma;

    Swift

    func setSigma(_sigma: Float)
  • Sets whether the fastGlobalSmootherFilter() post-processing is employed. It is turned on by default.

    Declaration

    Objective-C

    - (void)setUsePostProcessing:(BOOL)_use_post_proc;

    Swift

    func setUsePostProcessing(_use_post_proc: Bool)