Package org.opencv.ximgproc
Class DisparityWLSFilter
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.ximgproc.DisparityFilter
- 
- org.opencv.ximgproc.DisparityWLSFilter
 
 
 
- 
 public class DisparityWLSFilter extends DisparityFilter 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.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedDisparityWLSFilter(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisparityWLSFilter__fromPtr__(long addr)protected voidfinalize()MatgetConfidenceMap()Get the confidence map that was used in the last filter call.intgetDepthDiscontinuityRadius()DepthDiscontinuityRadius is a parameter used in confidence computation.doublegetLambda()Lambda is a parameter defining the amount of regularization during filtering.intgetLRCthresh()LRCthresh is a threshold of disparity difference used in left-right-consistency check during confidence map computation.RectgetROI()Get the ROI used in the last filter calldoublegetSigmaColor()SigmaColor is a parameter defining how sensitive the filtering process is to source image edges.voidsetDepthDiscontinuityRadius(int _disc_radius)SEE: getDepthDiscontinuityRadiusvoidsetLambda(double _lambda)SEE: getLambdavoidsetLRCthresh(int _LRC_thresh)SEE: getLRCthreshvoidsetSigmaColor(double _sigma_color)SEE: getSigmaColor- 
Methods inherited from class org.opencv.ximgproc.DisparityFilterfilter, filter, filter, filter
 - 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static DisparityWLSFilter __fromPtr__(long addr) 
 - 
getConfidenceMappublic 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).- Returns:
- automatically generated
 
 - 
getROIpublic Rect getROI() Get the ROI used in the last filter call- Returns:
- automatically generated
 
 - 
getLambdapublic 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.- Returns:
- automatically generated
 
 - 
getSigmaColorpublic 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.- Returns:
- automatically generated
 
 - 
getDepthDiscontinuityRadiuspublic int getDepthDiscontinuityRadius() DepthDiscontinuityRadius is a parameter used in confidence computation. It defines the size of low-confidence regions around depth discontinuities.- Returns:
- automatically generated
 
 - 
getLRCthreshpublic 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.- Returns:
- automatically generated
 
 - 
setDepthDiscontinuityRadiuspublic void setDepthDiscontinuityRadius(int _disc_radius) SEE: getDepthDiscontinuityRadius- Parameters:
- _disc_radius- automatically generated
 
 - 
setLRCthreshpublic void setLRCthresh(int _LRC_thresh) SEE: getLRCthresh- Parameters:
- _LRC_thresh- automatically generated
 
 - 
setLambdapublic void setLambda(double _lambda) SEE: getLambda- Parameters:
- _lambda- automatically generated
 
 - 
setSigmaColorpublic void setSigmaColor(double _sigma_color) SEE: getSigmaColor- Parameters:
- _sigma_color- automatically generated
 
 - 
finalizeprotected void finalize() throws java.lang.Throwable- Overrides:
- finalizein class- DisparityFilter
- Throws:
- java.lang.Throwable
 
 
- 
 
-