NumberOfDisparities

The number of disparities in pixels that is allowed when EnforceDisparityRange is enabled, starting at MinDisparity. The disparity range is specified on the full image resolution. When the resolution is reduced by binning or scaling the actual value used for filtering can be found in ScaledNumberOfDisparities.

Note

This parameter is only relevant when EnforceDisparityRange is enabled or when using one of the deprecated stereo matching methods.

Format

Number

An integer specifying the number of allowed disparities.

Note

The number of disparities must be a multiple of 32.

Default

128

Example

In the illustration below shows the range of right image pixels that is allowed for stereo matching of a specific pixel in the left image. The MinimumDisparity parameter describes the offset of the range, whereas NumberOfDisparities indicates the length of the range.

disparities