lecture 05

30
Introduction to Robotics Vision-based ranging and Optical Filters CSCI 4830/7000 September 27, 2010 Nikolaus Correll

Upload: university-of-colorado-at-boulder

Post on 06-Dec-2014

693 views

Category:

Documents


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Lecture 05

Introduction to RoboticsVision-based ranging and Optical Filters

CSCI 4830/7000September 27, 2010

Nikolaus Correll

Page 2: Lecture 05

Review: Sensing

• Important: sensors report data in their own coordinate frame

• Examples from the exercise– Accelerometer of Nao– Laser scanner

• Treat like forward kinematics

Page 3: Lecture 05

Laser Scanner

Page 4: Lecture 05

Today

• Perception using vision• Range information from Vision• Basic Image Processing• Why is object recognition hard?

• -> “Computer Vision” with Jane Mulligan

Page 5: Lecture 05

Range sensing

• Last week– Laser scanner (phase shift)– Infrared (path loss)– Ultrasound (time-of-flight)

• Today– Depth from focus– Depth from Stereo

Page 6: Lecture 05

Pin-Hole Camera

A. Efros

Page 7: Lecture 05

Pin-hole Model

Page 8: Lecture 05

Aperture

Page 9: Lecture 05

Thin Lens

Objects need to have the right distance to be in focus -> Depth-from-Focus method

Page 10: Lecture 05

Depth from Focus

• “in focus” + camera parameters

• = range

• How to test whether an image is “crisp” or “blurry”?

Page 11: Lecture 05

Testing for focus

Unit Step -> 2nd Derivative

Intuition: Images with high contrast have steep edges!

Page 12: Lecture 05

Convolution

• Calculate Laplacian / 2nd derivative by “convolving” image with 2D Kernel

*

Page 13: Lecture 05

Depth from Stereo

Distance between stereo pair known + distance in the image -> distance to object

Page 14: Lecture 05

Stereo Pairs

• Zero crossings of Laplacians of Gaussians– Gaussians: blurred image (suppresses noise)– Laplacians: edges

• Test how far similar edges are apart

Epipolar constraints are given by the geometry of the Stereo pair

Page 15: Lecture 05

Other example for Convolutions: Canny Edge Detector

15

1.

2.+3.

4. Trace along ridges (non-maximum suppression)

Page 16: Lecture 05

Exercise: Thresholds

1616

Screen shots by Gary Bradski, 2005

http://homepages.inf.ed.ac.uk/rbf/HIPR2/adpthrsh.htm

Page 17: Lecture 05

Exercise: Morphological Operations Examples

• Morphology - applying Min-Max. Filters and its combinations

Opening IoB= (IB)BDilatation IBErosion IBImage I

Closing I•B= (IB)B TopHat(I)= I - (IB) BlackHat(I)= (IB) - IGrad(I)= (IB)-(IB)

Page 18: Lecture 05
Page 19: Lecture 05

Why is Object Recognition Hard?The difference between seeing and perception.

Gary Bradski, 2009 19

What to do? Maybe we should try to find edges ….

Gary Bradski, 2005

Page 20: Lecture 05

20

• Depth discontinuity• Surface orientation

discontinuity• Reflectance

discontinuity (i.e., change in surface material properties)

• Illumination discontinuity (e.g., shadow)

Slide credit: Christopher Rasmussen

But, What’s an Edge?

Page 21: Lecture 05

To Deal With the Confusion, Your Brain has Rules...

That can be wrong

Page 22: Lecture 05

We even see invisible edges…

Page 23: Lecture 05

And surfaces …

Page 24: Lecture 05

We need to deal with 3D Geometry

24

Perception is ambiguous … depending on your point of view!

Graphic by Gary Bradski

Page 25: Lecture 05

And Lighting in 3D

Which square is darker?

Page 26: Lecture 05

Lighting is Ill-posed …Perception of surfaces depends on lighting assumptions

26Gary Bradski (c) 2008 26

Page 27: Lecture 05

Contrast

27

Which one is male and which one is female?

Illusion by: Richard Russell, Harvard University

Russell, R. (2009) A sex difference in facial pigmentation and its exaggeration by cosmetics. Perception, (38)1211-1219

Page 28: Lecture 05

Frequency

Page 29: Lecture 05

Color

http://briantobin.info/2009/06/lost-and-found-visual-illusion.html

Page 30: Lecture 05

Homework

• Read sections 4.2-5 (pages 145-180)• Questionnaire on CU Learn• Midterm: October 11 (during class)