Class cv::ximgproc::EdgeAwareInterpolator#

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

Collaboration diagram for cv::ximgproc::EdgeAwareInterpolator:

Public Member Functions#

Public Member Functions inherited from cv::ximgproc::SparseMatchInterpolator
Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Detailed Description#

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

Member Function Documentation#

getFGSLambda()#

float cv::ximgproc::EdgeAwareInterpolator::getFGSLambda()

See also

setFGSLambda

getFGSSigma()#

float cv::ximgproc::EdgeAwareInterpolator::getFGSSigma()

See also

setFGSLambda

getK()#

int cv::ximgproc::EdgeAwareInterpolator::getK()

See also

setK

getLambda()#

float cv::ximgproc::EdgeAwareInterpolator::getLambda()

See also

setLambda

getSigma()#

float cv::ximgproc::EdgeAwareInterpolator::getSigma()

See also

setSigma

getUsePostProcessing()#

bool cv::ximgproc::EdgeAwareInterpolator::getUsePostProcessing()

setCostMap()#

void cv::ximgproc::EdgeAwareInterpolator::setCostMap(const Mat & _costMap)

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.

Parameters

  • _costMap — a type CV_32FC1 Mat is required.

setFGSLambda()#

void cv::ximgproc::EdgeAwareInterpolator::setFGSLambda(float _lambda)

Sets the respective fastGlobalSmootherFilter() parameter.

setFGSSigma()#

void cv::ximgproc::EdgeAwareInterpolator::setFGSSigma(float _sigma)

See also

setFGSLambda

setK()#

void cv::ximgproc::EdgeAwareInterpolator::setK(int _k)

Parameter to tune the approximate size of the superpixel used for oversegmentation.

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.

setLambda()#

void cv::ximgproc::EdgeAwareInterpolator::setLambda(float _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.

setSigma()#

void cv::ximgproc::EdgeAwareInterpolator::setSigma(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.

setUsePostProcessing()#

void cv::ximgproc::EdgeAwareInterpolator::setUsePostProcessing(bool _use_post_proc)

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

Source file#

The documentation for this class was generated from the following file: