Attention! This forum will be made read-only by Dec-20. Please migrate to https://forum.opencv.org. Most of existing active users should've received invitation by e-mail.
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use stereo matching algorithms with more than one image pair?

I would like to use the OpenCV stereo matching algorithms (such as StereoSGBM) with more than one pair of images. I have several pairs of images taken from the same position, but with varying illumination conditions.

Is there an easy way to use the stereo matching algorithms with more than one image pair? I realize that some of the stereo algorithms work on 3-channel images, which would allow encodings of up to 3 1-channel images, but my images are already 3-channel RGB, and I have more than 3 pairs that I'd like to use to compute the matching costs, if possible.

I'd appreciate any ideas on the simplest way to use multiple image pairs with the stereo algorithms. Thank you!