Matching points

This post talks about the current method used on point matching making use of OpenCV methods.

Matching

Matching points means finding a homologous point of one of the stereo cameras on the other image. This can be done by looking for the patch on the entire image, but we can speed the process knowing some properties of a stereo pair.

The correspondent point won’t appear anywhere on the analogous image, it can be found over the epipolar stripe. This is the line where all the possible depths of the left point are projected over the left camera. In a stereo pair, the epipolar lines are horizontal lines, so the search for the patch is only done over that line.

A patch of a preset size is created on the left image, and with the matchTemplate() function, that admits different metrics (SSD, SAD, …) to find the patch is found on the patch of the right image correspondent with the epipolar constraint and a set margin.

Scene



JdeRobot

Written on May 24, 2020