A program for visualizing stereo matching costs
This tool provides a visualization of pixel-wise matching costs between two images, for use in stereo vision research. The user can apply transformations to one of the two images in order to line up corresponding objects in the scene. The tool performs best on a rectified stereo pair. It is a native application written in c++ using OpenCV.
The user can select between several methods of computing the matching cost between two images:
color difference
ICPR
NCC
Key | Effect |
---|---|
drag | change horizontal offset |
shift-drag | fine control |
control-drag | allow vertical offset too |
right-drag | change disp x and y gradient |
shift-right-drag | fine control |
arrows | change offset by stepsize |
C, V | change step size |
O, P | change disp x gradient |
[, ] | change disp y gradient |
Space | reset offset |
A, SÂ Â | show (blink) orig images |
DÂ Â Â Â Â | show diff |
WÂ Â Â Â | toggle GT warped image 2 |
+Â Â Â Â Â | show confidence measure |
=Â Â Â Â Â | warp by selected plane (default=0) |
/Â Â Â Â Â | toggle bounding box for plane |
<, >Â Â | cycle through planes |
Y, UÂ Â | confidence contrast |
1 | change mode to color diff |
2 | change mode to NCC |
3 | change mode to ICPR cost |
4 | change mode to Bleyer cost |
BÂ Â Â Â Â | toggle clipping at 0 (modes 2-4) |
Z, XÂ Â | change diff contrast (mode 1) |
E, RÂ Â | change NCC epsilon (mode 2) |
N, MÂ Â | change NCC window size (mode 2) |
F, GÂ Â | change aggregation window size (modes 2-4) |
JKLIÂ Â | move cropped region (large imgs only) |
H , ? | help |
(-)Â Â Â | close current window |
Esc, Q | quit |
To run the application from the command line:
usage: ./imdiff im1 im2 [planes=, gt=, occmask=, decimate=, offx=, offy=]
Note: The command line parser does not expect spaces before/after the equals signs.
This program makes use of a pfm reader, which is part of the distribution. The pfm reader can also be downloaded separately from github via
git clone https://github.com/dscharstein/pfmLib.git