How can I compute the dense disparity map from to stereo images ?
My idea so far was to go over all the pixels from the first image, and scan the second image for matches. To compare the similarity of two pixels i computed the squared difference of pixels in a small window around them. The algorithm works relatively well on synthetic images, but fail on pictures that contain reflections, or have larger differences in light intensity. What approach should i use to get better results?
Masters of image processing, please share you knowledge.