View Source Evision.XImgProc.DisparityWLSFilter (Evision v0.1.38)

Summary

Types

t()

Type that represents an XImgProc.DisparityWLSFilter struct.

Functions

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).

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

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.

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.

Get the ROI used in the last filter call

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.

Types

@type t() :: %Evision.XImgProc.DisparityWLSFilter{ref: reference()}

Type that represents an XImgProc.DisparityWLSFilter struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec getConfidenceMap(t()) :: Evision.Mat.t() | {:error, String.t()}

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).

Positional Arguments
  • self: Evision.XImgProc.DisparityWLSFilter.t()
Return
  • retval: Evision.Mat.t()

Python prototype (for reference only):

getConfidenceMap() -> retval
Link to this function

getDepthDiscontinuityRadius(self)

View Source
@spec getDepthDiscontinuityRadius(t()) :: integer() | {:error, String.t()}

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

Positional Arguments
  • self: Evision.XImgProc.DisparityWLSFilter.t()
Return
  • retval: int

Python prototype (for reference only):

getDepthDiscontinuityRadius() -> retval
@spec getLambda(t()) :: number() | {:error, String.t()}

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.

Positional Arguments
  • self: Evision.XImgProc.DisparityWLSFilter.t()
Return
  • retval: double

Python prototype (for reference only):

getLambda() -> retval
@spec getLRCthresh(t()) :: integer() | {:error, String.t()}

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.

Positional Arguments
  • self: Evision.XImgProc.DisparityWLSFilter.t()
Return
  • retval: int

Python prototype (for reference only):

getLRCthresh() -> retval
@spec getROI(t()) :: {number(), number(), number(), number()} | {:error, String.t()}

Get the ROI used in the last filter call

Positional Arguments
  • self: Evision.XImgProc.DisparityWLSFilter.t()
Return
  • retval: Rect

Python prototype (for reference only):

getROI() -> retval
@spec getSigmaColor(t()) :: number() | {:error, String.t()}

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.

Positional Arguments
  • self: Evision.XImgProc.DisparityWLSFilter.t()
Return
  • retval: double

Python prototype (for reference only):

getSigmaColor() -> retval
Link to this function

setDepthDiscontinuityRadius(self, disc_radius)

View Source
@spec setDepthDiscontinuityRadius(t(), integer()) :: t() | {:error, String.t()}

setDepthDiscontinuityRadius

Positional Arguments
  • self: Evision.XImgProc.DisparityWLSFilter.t()
  • disc_radius: int

@see getDepthDiscontinuityRadius

Python prototype (for reference only):

setDepthDiscontinuityRadius(_disc_radius) -> None
@spec setLambda(t(), number()) :: t() | {:error, String.t()}

setLambda

Positional Arguments
  • self: Evision.XImgProc.DisparityWLSFilter.t()
  • lambda: double

@see getLambda

Python prototype (for reference only):

setLambda(_lambda) -> None
Link to this function

setLRCthresh(self, lRC_thresh)

View Source
@spec setLRCthresh(t(), integer()) :: t() | {:error, String.t()}

setLRCthresh

Positional Arguments
  • self: Evision.XImgProc.DisparityWLSFilter.t()
  • lRC_thresh: int

@see getLRCthresh

Python prototype (for reference only):

setLRCthresh(_LRC_thresh) -> None
Link to this function

setSigmaColor(self, sigma_color)

View Source
@spec setSigmaColor(t(), number()) :: t() | {:error, String.t()}

setSigmaColor

Positional Arguments
  • self: Evision.XImgProc.DisparityWLSFilter.t()
  • sigma_color: double

@see getSigmaColor

Python prototype (for reference only):

setSigmaColor(_sigma_color) -> None