OpenCV for Unity  2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator Class Reference

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

Inheritance diagram for OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator:
OpenCVForUnity.XimgprocModule.SparseMatchInterpolator OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

void setCostMap (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. More...
 
void setK (int _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. More...
 
int getK ()
 
void 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. More...
 
float getSigma ()
 
void 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. More...
 
float getLambda ()
 
void setUsePostProcessing (bool _use_post_proc)
 Sets whether the fastGlobalSmootherFilter() post-processing is employed. It is turned on by default. More...
 
bool getUsePostProcessing ()
 
void setFGSLambda (float _lambda)
 Sets the respective fastGlobalSmootherFilter() parameter. More...
 
float getFGSLambda ()
 
void setFGSSigma (float _sigma)
 
float getFGSSigma ()
 
- Public Member Functions inherited from OpenCVForUnity.XimgprocModule.SparseMatchInterpolator
void interpolate (Mat from_image, Mat from_points, Mat to_image, Mat to_points, Mat dense_flow)
 Interpolate input sparse matches. More...
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
IntPtr getNativeObjAddr ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
void save (string filename)
 
virtual string getDefaultName ()
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new EdgeAwareInterpolator __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.XimgprocModule.SparseMatchInterpolator
static new SparseMatchInterpolator __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.XimgprocModule.SparseMatchInterpolator
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

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

Member Function Documentation

◆ __fromPtr__()

static new EdgeAwareInterpolator OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.__fromPtr__ ( IntPtr  addr)
static

◆ Dispose()

override void OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.Dispose ( bool  disposing)
protectedvirtual

◆ getFGSLambda()

float OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.getFGSLambda ( )
See also
setFGSLambda

◆ getFGSSigma()

float OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.getFGSSigma ( )
See also
setFGSLambda

◆ getK()

int OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.getK ( )
See also
setK

◆ getLambda()

float OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.getLambda ( )
See also
setLambda

◆ getSigma()

float OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.getSigma ( )
See also
setSigma

◆ getUsePostProcessing()

bool OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.getUsePostProcessing ( )

◆ setCostMap()

void OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.setCostMap ( 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
_costMapa type CV_32FC1 Mat is required.
See also
cv::ximgproc::createSuperpixelSLIC

◆ setFGSLambda()

void OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.setFGSLambda ( float  _lambda)

Sets the respective fastGlobalSmootherFilter() parameter.

◆ setFGSSigma()

void OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.setFGSSigma ( float  _sigma)
See also
setFGSLambda

◆ setK()

void OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.setK ( int  _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.

◆ setLambda()

void OpenCVForUnity.XimgprocModule.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 OpenCVForUnity.XimgprocModule.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 OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator.setUsePostProcessing ( bool  _use_post_proc)

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


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