OpenCV for Unity 2.6.4
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.
Loading...
Searching...
No Matches
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...

Public Member Functions

float getFGSLambda ()
 
float getFGSSigma ()
 
int getK ()
 
float getLambda ()
 
float getSigma ()
 
bool getUsePostProcessing ()
 
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.
 
void setFGSLambda (float _lambda)
 Sets the respective fastGlobalSmootherFilter() parameter.
 
void setFGSSigma (float _sigma)
 
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.
 
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.
 
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.
 
void setUsePostProcessing (bool _use_post_proc)
 Sets whether the fastGlobalSmootherFilter() post-processing is employed. It is turned on by default.
 
- 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.
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual string getDefaultName ()
 
IntPtr getNativeObjAddr ()
 
void save (string filename)
 
- 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.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.XimgprocModule.SparseMatchInterpolator
- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- 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.

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: