View Source Evision.StereoBM (Evision v0.1.9)

Link to this section Summary

cv

Computes disparity map for the specified stereo pair

Computes disparity map for the specified stereo pair

Creates StereoBM object

Creates StereoBM object

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Positional Arguments
  • blockSize: int

Python prototype (for reference):

Positional Arguments
  • disp12MaxDiff: int

Python prototype (for reference):

Positional Arguments
  • minDisparity: int

Python prototype (for reference):

Positional Arguments
  • numDisparities: int

Python prototype (for reference):

Positional Arguments
  • preFilterCap: int

Python prototype (for reference):

Positional Arguments
  • preFilterSize: int

Python prototype (for reference):

Positional Arguments
  • preFilterType: int

Python prototype (for reference):

Positional Arguments
  • roi1: Rect

Python prototype (for reference):

Positional Arguments
  • roi2: Rect

Python prototype (for reference):

Positional Arguments
  • blockSize: int

Python prototype (for reference):

Positional Arguments
  • speckleRange: int

Python prototype (for reference):

Positional Arguments
  • speckleWindowSize: int

Python prototype (for reference):

Positional Arguments
  • textureThreshold: int

Python prototype (for reference):

Positional Arguments
  • uniquenessRatio: int

Python prototype (for reference):

Functions

Raising version of create/0.

Raising version of create/1.

Raising version of getBlockSize/1.

Raising version of getROI1/1.

Raising version of getROI2/1.

Raising version of setROI1/2.

Raising version of setROI2/2.

Link to this section cv

Link to this function

compute(self, left, right)

View Source

Computes disparity map for the specified stereo pair

Positional Arguments
  • left: Evision.Mat.

    Left 8-bit single-channel image.

  • right: Evision.Mat.

    Right image of the same size and the same type as the left one.

Return
  • disparity: Evision.Mat.

    Output disparity map. It has the same size as the input images. Some algorithms, like StereoBM or StereoSGBM compute 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits), whereas other algorithms output 32-bit floating-point disparity map.

Python prototype (for reference):

compute(left, right[, disparity]) -> disparity
Link to this function

compute(self, left, right, opts)

View Source

Computes disparity map for the specified stereo pair

Positional Arguments
  • left: Evision.Mat.

    Left 8-bit single-channel image.

  • right: Evision.Mat.

    Right image of the same size and the same type as the left one.

Return
  • disparity: Evision.Mat.

    Output disparity map. It has the same size as the input images. Some algorithms, like StereoBM or StereoSGBM compute 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits), whereas other algorithms output 32-bit floating-point disparity map.

Python prototype (for reference):

compute(left, right[, disparity]) -> disparity

Creates StereoBM object

Keyword Arguments
  • numDisparities: int.

    the disparity search range. For each pixel algorithm will find the best disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity.

  • blockSize: int.

    the linear size of the blocks compared by the algorithm. The size should be odd (as the block is centered at the current pixel). Larger block size implies smoother, though less accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher chance for algorithm to find a wrong correspondence.

The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for a specific stereo pair.

Python prototype (for reference):

create([, numDisparities[, blockSize]]) -> retval

Creates StereoBM object

Keyword Arguments
  • numDisparities: int.

    the disparity search range. For each pixel algorithm will find the best disparity from 0 (default minimum disparity) to numDisparities. The search range can then be shifted by changing the minimum disparity.

  • blockSize: int.

    the linear size of the blocks compared by the algorithm. The size should be odd (as the block is centered at the current pixel). Larger block size implies smoother, though less accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher chance for algorithm to find a wrong correspondence.

The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for a specific stereo pair.

Python prototype (for reference):

create([, numDisparities[, blockSize]]) -> retval

Python prototype (for reference):

getBlockSize() -> retval

Python prototype (for reference):

getDisp12MaxDiff() -> retval

Python prototype (for reference):

getMinDisparity() -> retval

Python prototype (for reference):

getNumDisparities() -> retval

Python prototype (for reference):

getPreFilterCap() -> retval

Python prototype (for reference):

getPreFilterSize() -> retval

Python prototype (for reference):

getPreFilterType() -> retval

Python prototype (for reference):

getROI1() -> retval

Python prototype (for reference):

getROI2() -> retval
Link to this function

getSmallerBlockSize(self)

View Source

Python prototype (for reference):

getSmallerBlockSize() -> retval

Python prototype (for reference):

getSpeckleRange() -> retval
Link to this function

getSpeckleWindowSize(self)

View Source

Python prototype (for reference):

getSpeckleWindowSize() -> retval
Link to this function

getTextureThreshold(self)

View Source

Python prototype (for reference):

getTextureThreshold() -> retval
Link to this function

getUniquenessRatio(self)

View Source

Python prototype (for reference):

getUniquenessRatio() -> retval
Link to this function

setBlockSize(self, blockSize)

View Source
Positional Arguments
  • blockSize: int

Python prototype (for reference):

setBlockSize(blockSize) -> None
Link to this function

setDisp12MaxDiff(self, disp12MaxDiff)

View Source
Positional Arguments
  • disp12MaxDiff: int

Python prototype (for reference):

setDisp12MaxDiff(disp12MaxDiff) -> None
Link to this function

setMinDisparity(self, minDisparity)

View Source
Positional Arguments
  • minDisparity: int

Python prototype (for reference):

setMinDisparity(minDisparity) -> None
Link to this function

setNumDisparities(self, numDisparities)

View Source
Positional Arguments
  • numDisparities: int

Python prototype (for reference):

setNumDisparities(numDisparities) -> None
Link to this function

setPreFilterCap(self, preFilterCap)

View Source
Positional Arguments
  • preFilterCap: int

Python prototype (for reference):

setPreFilterCap(preFilterCap) -> None
Link to this function

setPreFilterSize(self, preFilterSize)

View Source
Positional Arguments
  • preFilterSize: int

Python prototype (for reference):

setPreFilterSize(preFilterSize) -> None
Link to this function

setPreFilterType(self, preFilterType)

View Source
Positional Arguments
  • preFilterType: int

Python prototype (for reference):

setPreFilterType(preFilterType) -> None
Positional Arguments
  • roi1: Rect

Python prototype (for reference):

setROI1(roi1) -> None
Positional Arguments
  • roi2: Rect

Python prototype (for reference):

setROI2(roi2) -> None
Link to this function

setSmallerBlockSize(self, blockSize)

View Source
Positional Arguments
  • blockSize: int

Python prototype (for reference):

setSmallerBlockSize(blockSize) -> None
Link to this function

setSpeckleRange(self, speckleRange)

View Source
Positional Arguments
  • speckleRange: int

Python prototype (for reference):

setSpeckleRange(speckleRange) -> None
Link to this function

setSpeckleWindowSize(self, speckleWindowSize)

View Source
Positional Arguments
  • speckleWindowSize: int

Python prototype (for reference):

setSpeckleWindowSize(speckleWindowSize) -> None
Link to this function

setTextureThreshold(self, textureThreshold)

View Source
Positional Arguments
  • textureThreshold: int

Python prototype (for reference):

setTextureThreshold(textureThreshold) -> None
Link to this function

setUniquenessRatio(self, uniquenessRatio)

View Source
Positional Arguments
  • uniquenessRatio: int

Python prototype (for reference):

setUniquenessRatio(uniquenessRatio) -> None

Link to this section Functions

Link to this function

compute!(self, left, right)

View Source

Raising version of compute/3.

Link to this function

compute!(self, left, right, opts)

View Source

Raising version of compute/4.

Raising version of create/0.

Raising version of create/1.

Raising version of getBlockSize/1.

Raising version of getDisp12MaxDiff/1.

Raising version of getMinDisparity/1.

Link to this function

getNumDisparities!(self)

View Source

Raising version of getNumDisparities/1.

Raising version of getPreFilterCap/1.

Raising version of getPreFilterSize/1.

Raising version of getPreFilterType/1.

Raising version of getROI1/1.

Raising version of getROI2/1.

Link to this function

getSmallerBlockSize!(self)

View Source

Raising version of getSmallerBlockSize/1.

Raising version of getSpeckleRange/1.

Link to this function

getSpeckleWindowSize!(self)

View Source

Raising version of getSpeckleWindowSize/1.

Link to this function

getTextureThreshold!(self)

View Source

Raising version of getTextureThreshold/1.

Link to this function

getUniquenessRatio!(self)

View Source

Raising version of getUniquenessRatio/1.

Link to this function

setBlockSize!(self, blockSize)

View Source

Raising version of setBlockSize/2.

Link to this function

setDisp12MaxDiff!(self, disp12MaxDiff)

View Source

Raising version of setDisp12MaxDiff/2.

Link to this function

setMinDisparity!(self, minDisparity)

View Source

Raising version of setMinDisparity/2.

Link to this function

setNumDisparities!(self, numDisparities)

View Source

Raising version of setNumDisparities/2.

Link to this function

setPreFilterCap!(self, preFilterCap)

View Source

Raising version of setPreFilterCap/2.

Link to this function

setPreFilterSize!(self, preFilterSize)

View Source

Raising version of setPreFilterSize/2.

Link to this function

setPreFilterType!(self, preFilterType)

View Source

Raising version of setPreFilterType/2.

Raising version of setROI1/2.

Raising version of setROI2/2.

Link to this function

setSmallerBlockSize!(self, blockSize)

View Source

Raising version of setSmallerBlockSize/2.

Link to this function

setSpeckleRange!(self, speckleRange)

View Source

Raising version of setSpeckleRange/2.

Link to this function

setSpeckleWindowSize!(self, speckleWindowSize)

View Source

Raising version of setSpeckleWindowSize/2.

Link to this function

setTextureThreshold!(self, textureThreshold)

View Source

Raising version of setTextureThreshold/2.

Link to this function

setUniquenessRatio!(self, uniquenessRatio)

View Source

Raising version of setUniquenessRatio/2.