Ask Your Question

mohanen's profile - activity

2018-07-19 00:17:28 -0500 received badge  Citizen Patrol (source)
2018-07-19 00:16:54 -0500 marked best answer Understanding OpenCV Stereobm implementation

Hello all,

I'm trying to understand the StereoBM implementation in CPU and GPU.
I started with the CPU on https://github.com/opencv/opencv/blob....

I have some basic knowledge on how a Stereo Block Matching works.

I was able to get into the flow but had some hiccups when hit the line 1204 which initialized an integer bufSize0 which then added with further values in the upcoming lines.

    int bufSize0 = (int)((ndisp + 2)*sizeof(int));
    bufSize0 += (int)((height+wsz+2)*ndisp*sizeof(int));
    bufSize0 += (int)((height + wsz + 2)*sizeof(int));
    bufSize0 += (int)((height+wsz+2)*ndisp*(wsz+2)*sizeof(uchar) + 256);

It would be great if someone can help me out in understanding in what basis these buffer size calculations are done and what it is used for.

2018-07-19 00:16:53 -0500 received badge  Scholar (source)
2018-07-19 00:16:51 -0500 received badge  Supporter (source)
2018-07-19 00:16:43 -0500 commented answer Understanding OpenCV Stereobm implementation

Hey @opalmirror, Thanks for your answer, I Gone through the code completely now how an idea of how its implemented here,

2018-07-18 14:36:12 -0500 received badge  Student (source)
2018-07-12 01:57:12 -0500 received badge  Enthusiast
2018-07-10 14:05:27 -0500 asked a question Understanding OpenCV Stereobm implementation

Understanding OpenCV Stereobm implementation Hello all, I'm trying to understand the StereoBM implementation in CPU and

2018-07-10 14:05:26 -0500 asked a question Understanding OpenCV Stereobm implementation

Understanding OpenCV Stereobm implementation Hello all, I'm trying to understand the StereoBM implementation in CPU and

2018-06-18 05:00:34 -0500 asked a question DisparityWLS Filter vs DisparityBilateral Filter

DisparityWLS Filter vs DisparityBilateral Filter I am Currently trying to Cuda port a stereo disparity code, It uses Ope