Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

first, you're supposed to run blockmatching on images from a calibrated stereo pair (and also, that you undistort the images, using the params from the calibration), it seems, you're not doing so. using arbitrary, "found" images won't give you any accuracy here, unfortunately.

  1. no, not possible (just believe the error msg.)
  2. either cropping the larger to the smaller size or adding a border to the smaller one would make sense, resizing() does not., but again see the comment above.
  3. ofc. there are alternative ways to acquire depth images of some sort, use specialized cameras (kinect, etc), images from multiple poses (structure from motion), if you can control the lighting, and you're focussed on fairly small, indoor objects, also "structured light / threephase" and "photogrammetric stereo".

first, you're supposed to run blockmatching on images from a calibrated stereo pair (and also, that you undistort the images, using the params from the calibration), it seems, you're not doing so. using arbitrary, "found" images won't give you any accuracy here, unfortunately.

  1. no, not possible (just believe the error msg.)
  2. either cropping the larger no, not a valid idea , either. whatever you do to the smaller size or adding a border to images, it will change the smaller one would relative position captured in them, and make sense, resizing() does not., but the disparity worse, again see the comment above.
  3. ofc. there are alternative ways to acquire depth images of some sort, use specialized cameras (kinect, etc), images from multiple poses (structure from motion), if you can control the lighting, and you're focussed on fairly small, indoor objects, also "structured light / threephase" and "photogrammetric stereo".