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
Return |
Name |
Description |
|---|---|---|
|
Interpolate input sparse matches. |
Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Clears the algorithm state. |
|
|
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
|
|
|
Stores algorithm parameters in a file storage. |
|
|
Static Public Member Functions#
Static Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
|
Loads algorithm from the file. |
|
|
Loads algorithm from a String. |
|
Reads algorithm from the file node. |
Additional Inherited Members#
Protected Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
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
getFGSSigma()#
float cv::ximgproc::EdgeAwareInterpolator::getFGSSigma()
See also
getK()#
int cv::ximgproc::EdgeAwareInterpolator::getK()
See also
getLambda()#
float cv::ximgproc::EdgeAwareInterpolator::getLambda()
See also
getSigma()#
float cv::ximgproc::EdgeAwareInterpolator::getSigma()
See also
getUsePostProcessing()#
bool cv::ximgproc::EdgeAwareInterpolator::getUsePostProcessing()
See also
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.
See also
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
setK()#
void cv::ximgproc::EdgeAwareInterpolator::setK(int _k)
Parameter to tune the approximate size of the superpixel used for oversegmentation.
See also
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:
opencv2/ximgproc/sparse_match_interpolator.hpp