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.
Loading...
Searching...
No Matches
OpenCVForUnity.XimgprocModule.DisparityWLSFilter Class Reference

Disparity map filter based on Weighted Least Squares filter (in form of Fast Global Smoother that is a lot faster than traditional Weighted Least Squares filter implementations) and optional use of left-right-consistency-based confidence to refine the results in half-occlusions and uniform areas. More...

Inheritance diagram for OpenCVForUnity.XimgprocModule.DisparityWLSFilter:
OpenCVForUnity.XimgprocModule.DisparityFilter OpenCVForUnity.XimgprocModule.DisparityFilter OpenCVForUnity.XimgprocModule.DisparityFilter OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.CoreModule.Algorithm

Public Member Functions

double getLambda ()
 Lambda is a parameter defining the amount of regularization during filtering. Larger values force filtered disparity map edges to adhere more to source image edges. Typical value is 8000.
 
void setLambda (double _lambda)
 
double getSigmaColor ()
 SigmaColor is a parameter defining how sensitive the filtering process is to source image edges. Large values can lead to disparity leakage through low-contrast edges. Small values can make the filter too sensitive to noise and textures in the source image. Typical values range from 0.8 to 2.0.
 
void setSigmaColor (double _sigma_color)
 
int getLRCthresh ()
 LRCthresh is a threshold of disparity difference used in left-right-consistency check during confidence map computation. The default value of 24 (1.5 pixels) is virtually always good enough.
 
void setLRCthresh (int _LRC_thresh)
 
int getDepthDiscontinuityRadius ()
 DepthDiscontinuityRadius is a parameter used in confidence computation. It defines the size of low-confidence regions around depth discontinuities.
 
void setDepthDiscontinuityRadius (int _disc_radius)
 
Mat getConfidenceMap ()
 Get the confidence map that was used in the last filter call. It is a CV_32F one-channel image with values ranging from 0.0 (totally untrusted regions of the raw disparity map) to 255.0 (regions containing correct disparity values with a high degree of confidence).
 
Rect getROI ()
 Get the ROI used in the last filter call.
 
Vec4i getROIAsVec4i ()
 Get the ROI used in the last filter call.
 
int int int int height getROIAsValueTuple ()
 
- Public Member Functions inherited from OpenCVForUnity.XimgprocModule.DisparityFilter
void filter (Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map, Mat disparity_map_right, Rect ROI, Mat right_view)
 Apply filtering to the disparity map.
 
void filter (Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map, Mat disparity_map_right, Rect ROI)
 Apply filtering to the disparity map.
 
void filter (Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map, Mat disparity_map_right)
 Apply filtering to the disparity map.
 
void filter (Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map)
 Apply filtering to the disparity map.
 
void filter (Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map, Mat disparity_map_right, in Vec4i ROI, Mat right_view)
 Apply filtering to the disparity map.
 
void filter (Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map, Mat disparity_map_right, in Vec4i ROI)
 Apply filtering to the disparity map.
 
void filter (Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map, Mat disparity_map_right, in(int x, int y, int width, int height) ROI, Mat right_view)
 Apply filtering to the disparity map.
 
void filter (Mat disparity_map_left, Mat left_view, Mat filtered_disparity_map, Mat disparity_map_right, in(int x, int y, int width, int height) ROI)
 Apply filtering to the disparity map.
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
IntPtr getNativeObjAddr ()
 
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.
 
void save (string filename)
 
virtual string getDefaultName ()
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new DisparityWLSFilter __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.XimgprocModule.DisparityFilter
static new DisparityFilter __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)
 

Public Attributes

int x
 Get the ROI used in the last filter call.
 
int int y
 
int int int width
 

Protected Member Functions

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

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.XimgprocModule.DisparityFilter
- 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

Disparity map filter based on Weighted Least Squares filter (in form of Fast Global Smoother that is a lot faster than traditional Weighted Least Squares filter implementations) and optional use of left-right-consistency-based confidence to refine the results in half-occlusions and uniform areas.

Member Function Documentation

◆ __fromPtr__()

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

◆ Dispose()

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

◆ getConfidenceMap()

Mat OpenCVForUnity.XimgprocModule.DisparityWLSFilter.getConfidenceMap ( )

Get the confidence map that was used in the last filter call. It is a CV_32F one-channel image with values ranging from 0.0 (totally untrusted regions of the raw disparity map) to 255.0 (regions containing correct disparity values with a high degree of confidence).

◆ getDepthDiscontinuityRadius()

int OpenCVForUnity.XimgprocModule.DisparityWLSFilter.getDepthDiscontinuityRadius ( )

DepthDiscontinuityRadius is a parameter used in confidence computation. It defines the size of low-confidence regions around depth discontinuities.

◆ getLambda()

double OpenCVForUnity.XimgprocModule.DisparityWLSFilter.getLambda ( )

Lambda is a parameter defining the amount of regularization during filtering. Larger values force filtered disparity map edges to adhere more to source image edges. Typical value is 8000.

◆ getLRCthresh()

int OpenCVForUnity.XimgprocModule.DisparityWLSFilter.getLRCthresh ( )

LRCthresh is a threshold of disparity difference used in left-right-consistency check during confidence map computation. The default value of 24 (1.5 pixels) is virtually always good enough.

◆ getROI()

Rect OpenCVForUnity.XimgprocModule.DisparityWLSFilter.getROI ( )

Get the ROI used in the last filter call.

◆ getROIAsValueTuple()

int int int int height OpenCVForUnity.XimgprocModule.DisparityWLSFilter.getROIAsValueTuple ( )

◆ getROIAsVec4i()

Vec4i OpenCVForUnity.XimgprocModule.DisparityWLSFilter.getROIAsVec4i ( )

Get the ROI used in the last filter call.

◆ getSigmaColor()

double OpenCVForUnity.XimgprocModule.DisparityWLSFilter.getSigmaColor ( )

SigmaColor is a parameter defining how sensitive the filtering process is to source image edges. Large values can lead to disparity leakage through low-contrast edges. Small values can make the filter too sensitive to noise and textures in the source image. Typical values range from 0.8 to 2.0.

◆ setDepthDiscontinuityRadius()

void OpenCVForUnity.XimgprocModule.DisparityWLSFilter.setDepthDiscontinuityRadius ( int _disc_radius)

◆ setLambda()

void OpenCVForUnity.XimgprocModule.DisparityWLSFilter.setLambda ( double _lambda)
See also
getLambda

◆ setLRCthresh()

void OpenCVForUnity.XimgprocModule.DisparityWLSFilter.setLRCthresh ( int _LRC_thresh)
See also
getLRCthresh

◆ setSigmaColor()

void OpenCVForUnity.XimgprocModule.DisparityWLSFilter.setSigmaColor ( double _sigma_color)
See also
getSigmaColor

Member Data Documentation

◆ width

int int int OpenCVForUnity.XimgprocModule.DisparityWLSFilter.width

◆ x

int OpenCVForUnity.XimgprocModule.DisparityWLSFilter.x

Get the ROI used in the last filter call.

◆ y

int int OpenCVForUnity.XimgprocModule.DisparityWLSFilter.y

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