Evaluation of Stereo Vision Algorithms - Inside...

16
Evaluation of Stereo Vision Algorithms Grant Latham

Transcript of Evaluation of Stereo Vision Algorithms - Inside...

Page 1: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Evaluation of Stereo Vision Algorithms

Grant Latham

Page 3: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Outline

Stereo Vision – Overview

Popular Algorithms

Hardware

Evaluation Data Sets

Process and Results

Continuing Work and Recommendations

Page 4: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Stereo Vision - Overview

Motiviated by human binocular depth perception – leveraging difference in angle between two eyes.

Page 5: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Stereo Vision - Overview

Image from Dr. William Hoff

Page 6: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Stereo Vision - Algorithms

Challenge: finding matching pixels

Most common Algorithms:

Block Matching (BM)

Semi-Global Matching (SGM)

Page 7: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Hardware - Cameras

See3CAM_10CUG from e-con Systems

1.3 MegaPixel

Global shutter with external trigger

Interchangeable Lenses

USB 3.0/2.0 compatible

Page 8: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Hardware - GPU

NVidia Jetson TK1 embedded system

Kepler GPU with 192 CUDA cores

Supported by some OpenCV functions

Page 9: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Evaluation Datasets

Image pairs with “ground truth” found by pattern projection

Available from Middlebury: http://vision.middlebury.edu/stereo/data/scenes2014/

Page 10: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Process

Tested OpenCV’s basic Block Matching algorithm on PC CPU and Nvidia GPU;

GPU reduced processing time by ≈75%

Page 11: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Process

Further tests performed on CPU for convenience

Disparity images obtained from OpenCV’s BM and SGBM algorithms

Results exported to Matlab for analysis

Page 12: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Results – Sample Image

BM Time (s)

SGBM Time (s)

BM Total Error

SGBM Total Error

BM Partial Error

SGBM Partial Error

BM Avg Error

SGBM Avg Error

2.4 68 0.52 0.19 0.05 0.07 1.71 4.35

Ground Truth Block Matching Semi-Global Block Matching

Page 13: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Results - Complete Image Name

BM Time (s)

SGMB Time (s)

BM Total Error

SGBM Total Error

BM Partial Error

SGBM Partial Error

BM Avg Error

SGBM Avg Error

Adirondack 2.1 65 0.74 0.39 0.07 0.07 1.01 2.24

Backpack 2.4 68 0.52 0.19 0.05 0.07 1.72 4.35

Jadeplant 2.0 59 0.97 0.85 0.31 0.40 -1.35 -19.90

Motorcycle 2.6 68 0.50 0.19 0.04 0.05 1.37 3.17

Piano 2.4 62 0.62 0.26 0.07 0.10 1.47 5.14

Pipes 2.6 65 0.57 0.22 0.08 0.09 1.81 4.76

Playroom 2.1 60 0.77 0.53 0.12 0.13 1.96 3.79

Playtable 2.1 57 0.63 0.26 0.04 0.05 0.99 2.32

Recycle 2.3 63 0.86 0.35 0.12 0.05 0.97 1.83

Shelves 2.5 67 0.72 0.42 0.11 0.22 1.27 8.83

Vintage 2.3 63 0.91 0.70 0.09 0.19 -0.30 -9.32

Page 14: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Recommendations

GPU Implementation

Basic BM algorithm for speed, conditional accuracy

Page 15: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

Continuing Work

Utilize traffic scene priors

Schneider, N.; Franke, U., "Exploiting Traffic Scene Disparity Statistics for Stereo Vision," Computer Vision and

Pattern Recognition Workshops (CVPRW), 2014 IEEE Conference on , vol., no., pp.688,695, 23-28 June 2014

Utilize HSV domain

Lazaros Nalpantidis, Antonios Gasteratos, "Stereo vision for robotic applications in the presence of non-ideal

lighting conditions", Image and Vision Computing, Volume 28, Issue 6, June 2010

Page 16: Evaluation of Stereo Vision Algorithms - Inside Minesinside.mines.edu/~whoff/courses/EENG510/projects/2014/Latham.pdf · Outline Stereo Vision – Overview Popular Algorithms Hardware

EL FIN

(Questions)