Skip to content

Error while using StereoBinarySGBM to compute Disparity #925

@TheShadow29

Description

@TheShadow29
System information (version)
  • OpenCV => 3.1
  • Operating System / Platform => Ubuntu 16.04
  • Compiler => GCC 5.1
Detailed description

I am trying to use cv::stereo::SteroBinarySGBM to compute the disparity but it keeps on throwing OpenCV Error: Assertion failed (cost.cols / (maxDisparity + 1) == leftImage.cols) in hammngDistanceBlockMatching
opencv_contrib/modules/stereo/include/opencv2/stereo/matching.hpp:413: error: (-215) cost.cols / (maxDisparity + 1) == leftImage.cols in function hammingDistanceBlockMatching
The images are in grayscale and type = CV_8UC1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions