sourishg / disparity-map

Disparity maps using various algorithms
http://sourishghosh.com/2016/dense-disparity-maps-orb-descriptors/
57 stars 25 forks source link

Open CV Assertion Error in disparity source #4

Closed Madankumar90 closed 2 years ago

Madankumar90 commented 3 years ago

Hi. I have build the source with open CV 3.4.4 with cmake. it was built successfully. On debugging disparity.cpp for disparity estimation. i am getting assertion error in 'getCorresPoint' function and on this line "error += abs(img1.at(p.y+j,p.x+k) - img2.at(p.y+j,i+k));" OpenCV(3.4.4) Error: Assertion failed ((unsigned)(i1 DataType<_Tp>::channels) < (unsigned)(size.p[1] channels())) in cv::Mat::at . Is this due to open CV version mismatch?? Is there any requirement that the codes run only on specific open CV version?? Thanks.

Madankumar90 commented 2 years ago

works on release version.