Note that there are some explanatory texts on larger screens.

plurals
  1. POmissing region in disparity map
    primarykey
    data
    text
    <p>i am currently working on stereo processing using opencv2.3 and a Pointgrey Bumblebee2 stereocamera as an input device. Acquiring images is done via the <em>libdc1394</em>.</p> <p>My code for rectification and stereo processing is the following:</p> <pre class="lang-cpp prettyprint-override"><code>void StereoProcessing::calculateDisparityMap(const Mat &amp;left, const Mat &amp;right, Mat &amp;disparity_map) Mat map11, map12, map21, map22, left_rectified, right_rectified, disp16; // Computes the undistortion and rectification transformation maps initUndistortRectifyMap(this-&gt;camera_matrix1, this-&gt;distance_coefficients1, this-&gt;R1, this-&gt;P1, this-&gt;output_image_size, CV_16SC2, map11, map12); initUndistortRectifyMap(this-&gt;camera_matrix2, this-&gt;distance_coefficients2, this-&gt;R2, this-&gt;P2, this-&gt;output_image_size, CV_16SC2, map21, map22); // creates rectified images remap(left, left_rectified, map11, map12, INTER_LINEAR); remap(right, right_rectified, map21, map22, INTER_LINEAR); // calculates 16-bit disparitymap this-&gt;stereo_bm(left_temp, right_temp, disp16); disp16.convertTo(disparity_map, CV_8U, 255 / (this-&gt;stereo_bm.state-&gt;numberOfDisparities * 16.0)); } </code></pre> <p>This works fine except for a black left border in the disparity map, which is the following:</p> <p><img src="https://i.stack.imgur.com/JV0Zg.png" alt="Disparity map with black border on the left side"> </p> <p>The input images are these two - unrectified as you can see ;) : <img src="https://i.stack.imgur.com/lSG9Q.png" alt="left unrectified image"> <img src="https://i.stack.imgur.com/FT0GW.png" alt="right unrectified image"></p> <p>So my question is now: Is this normal behaviour? Or do you see any mistake i have done so far? As another information, the rectification works fine</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload