773 intro-2015.ppt - cs.auckland.ac.nz · compsci 773 • the report should look like a research...

25
COMPSCI 773-2015 Lecturers: A. Prof. Patrice Delmas (303.391) Prof. Georgy Gimel’farb (303.389) Lecture time: Mon 5pm-6pm G87 Fri 10pm-1pm G87 31 hours of lectures overall 3 in-class assignments and a demo (experimental data gathered in class, report due later) A2: calibration without distortion A3: calibration with distortion A4: rectification and stereo matching Full system demo A1: written assignment completed at home Marking: 40% Final exam 60% Lab work (5 individual assignments 4 May 2015 1 COMPSCI 773 S1C

Upload: others

Post on 16-Aug-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

COMPSCI 773-2015• Lecturers: A. Prof. Patrice Delmas (303.391)

Prof. Georgy Gimel’farb (303.389) • Lecture time: Mon 5pm-6pm G87 Fri 10pm-1pm G87• 31 hours of lectures overall• 3 in-class assignments and a demo (experimental data gathered in

class, report due later)– A2: calibration without distortion– A3: calibration with distortion– A4: rectification and stereo matching– Full system demo

• A1: written assignment completed at home• Marking:

– 40% Final exam – 60% Lab work (5 individual assignments

4 May 2015 1COMPSCI 773 S1C

Page 2: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

COMPSCI 7731st assignment: linear algebra, 2-3D geometry, 5% – due:

27.03.2015 2nd assignment (in-class): distortion-free camera calibration,

15% – in class: 20.03.2015, report due: 02.04.20153rd assignment (in-class): camera calibration, gradient descent,

15% – in class: 24.04.2015, report due: 18.05.20154th assignment (in-class): rectification, stereo matching

algorithm implementation, depth map construction, 20%– in class: 08.05.2015, report due: 07.06.2015Demo (in-class): full system design demo 5%– in class: 29.05.2015

4 May 2015 2COMPSCI 773 S1C

Page 3: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

COMPSCI 773• Individual assessment:

• Interaction with Patrice during assignments• Assignment reports (what’s in it):

– Minimal description of available technology, techniques (lit. review)– Presentation of your solution (theory and methods)– Experiments and results– Analysis and conclusions

4 May 2015 3COMPSCI 773 S1C

Page 4: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

COMPSCI 773• The report should look like a research report with references

– Justified explanations on the chosen solutions, graphs, resultsand – Critical assessment of the outcomes

• Programming• Windows C, C++, Matlab, ImageJ, Java• OpenGl, CUDA, Gtk, OpenCV• You are allowed to use external libraries but you have to make sure

we are aware of it (in your report write down which programs are yours and which ones are not)

• You may be asked to pass your code to other students for the next assignment This is a good outcome for your work

• If you use other students’ code you MUST state it in your report

4 May 2015 4COMPSCI 773 S1C

Page 5: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

The project: 3D mapping using UAVs

• Part 1: A2– Image features, image segmentation– Calibration without distortion

• Part 2: A3– Calibration with distortion

• Part 3: A4– Improve calibration accuracy, rectification, stereo matching

• Part 4: Full system design-demo– Calibration+rectification+stereo-matching

4 May 2015 5COMPSCI 773 S1C

Page 6: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

What is available and what you will have to do

US: • 3D camera• Calibration object• Quadcopter

YOU:• Code in C, C++, Java • A very strong personal effort• Good planning• Fast-tracking “learning application”

OUTCOME• You will undertake work at the top-edge of today’s research• You will gain a unique experience in applied Computer Vision

4 May 2015 6COMPSCI 773 S1C

Page 7: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

What is expectedProjects at the edge of research development: neither easy nor simple• A great deal of work is required but: (1) you will learn a lot; (2) this

could count as work experience in an expending IT area; (3) you can show what you are worth without having to fear too much about the final exam

• The exam will encompass all that will be lectured + project-related questions• It is not a good idea to concentrate on a very restricted part of the project as

this will penalise you by the end• If you like the projects you can continue towards the same directions for

COMPSCI 780 / MSc studies• If you think COMPSCI 773 is too hard for you we can offer a COMPSCI 780

project along the same directions

4 May 2015 7COMPSCI 773 S1C

Page 8: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

What you should know or learn very quickly

• C, C++, Java programming• Confidence in mathematical skills (linear algebra,

optimization techniques - 369)• Basics of Image Processing (373)• To learn quickly (by yourself)• GUI design (just the basics) --optional• The rest we will teach you…

4 May 2015 8COMPSCI 773 S1C

Page 9: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

Course contents (ideally)• Introductory lecture • Segmenting binary images• Feature extraction• Image matching• Stereo image matching• 2D and 3D vision

geometry (self taught)• Camera calibration• Stereo calibration• 3D scene description /

understanding

• Real-time image processing

• Rectification of stereo pairs

• Colour discrimination • Features classification:

PCA-LDA• Higher level statistical

approaches• Course overview and final

demo4 May 2015 COMPSCI 773 S1C 9

Page 10: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

Assignment 1

• Support homework on linear algebra and simple2-3D geometry material preparation

• Mostly based on past-years exam questions• Very short time to complete (17 days)• Must prepare yourself from today• Out (13/03/2015 or before)

4 May 2015 COMPSCI 773 S1C 10

Page 11: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

Assignment 2

• Prepare the theoretical material required (a home)– Linear algebra, lecture notes

• Acquire still images from a camera (in-class)– Acquisition of calibration object (we bring one or you design one)

• Proceed through distortion free calibration (in-class)– Input 2D and 3D corresponding points– Produce the over-determined system– Produce the pseudo inverse– Recover the calibration parameter

• Analyse results (home/in-class)• Produce a short report (6-8 pages)

4 May 2015 COMPSCI 773 S1C 11

Page 12: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

Assignment 3

• Prepare the theoretical material required (at home)– Optimisation techniques, read about Tsai or other calibration techniques

• Acquire still images from a camera– Acquisition of stereo data

• Proceed through calibration including a distortion model– Complete distortion-free calibration– Use gradient descent to obtain all camera calibration parameters

• Analyse results (home/in-class)• Produce a short report (6-8 pages)

4 May 2015 COMPSCI 773 S1C 12

Page 13: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

Assignment 4• Prepare the theoretical material required (at home)• Calibrate your stereo system using A2 and A3 outcomes• Matching / stereo matching

– Using camera data– Implement a simple window-based correlation-based matching algorithm– Produce a depth map– Work on the implementation of a GC/DP algorithm

• Produce a preliminary report for the demo (a few pages)• Work on a final report encompassing all A2-3-4 material.

Write it as a conference submission-like report (IEEE guidelines)

4 May 2015 COMPSCI 773 S1C 13

Page 14: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

Demo• Use A2-A3-A4 to acquire and process 2-3D images from

calibrated cameras (in-class)• 3D data display (tentative)• Perform a real-time demo

4 May 2015 COMPSCI 773 S1C 14

Page 15: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

Questions ?• What now

– I am very keen to help and answer questions:• Better ask after lectures and during tutorial hour if any or in-class

assignments.• This is a research-based project: I am keen to learn from you.• My advice: read research articles, self-learn, respect assignments

requirements, but you are very welcome to explore alternative solutions once you have completed required outputs.

4 May 2015 COMPSCI 773 S1C 15

Page 16: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

A glimpse of the research at the Intelligent Vision Systems Lab, Department of computer Science, The University of Auckland

4 May 2015 IVS research – Compsci 773 16

Low cost + advanced theory = improved performance

Page 17: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

Online Interactive Web-based Stereo Vision

Build a portable /comprehensive website and mobile app: Accept off-the-lab real-life photos of different types:

Left + right

Anaglyph

Auto-stereogram

Automatically align images to epipolar stereo form Reconstruct 3D information and display online Returns different 3D results

URL: ww.ivs.auckland.ac.nz/quick_stereo Thousands of visitors from 47 countries

around the World First rank on Google Search on key words:

online stereo matching online stereo vision

Stereo matching

(1) Input

(2) Find image correspondence set

(3) Estimate F matrix and epipolar lines (4) Rectify images

Page 18: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

Range & Video Data Fusion Improving 3D models by

combining video (multi-view) data and laser range data Reliability Resolution Accuracy Completeness

Prototype Scenescanner

Kinect Live Reconstruction

Page 19: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

Videos

19

Page 20: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

The development of a stereo-photogrammetric setup

OBJECTIVES (CS only):

A high-resolution, non-proprietary, stereo-photogrammetric setup for microtopography measurement in a laboratory

flume, and means to evaluate its accuracy.

Differ from previous photogrammetric applications in Hydraulics

Basis for 2-media and underwater photogrammetry.

204 May 2015

Page 21: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

From the depth map and the calibration results, a point cloud containing the 3D World Coordinates of each pixel is extracted.

Depth map  2D coordinates of corresponding pixels in the L and R images. Calibration results  3D intersection of the 2 lines between the cameras’ centre and the corresponding pixels

• 210MB text file containing the X,Y,Zcoordinates (in mm) of all measured points

• The left image is the basis for the coordinates

4 May 2015

Page 22: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

The point cloud is opened with MATLAB® , and a 3D DEM is plotted onto adjustable orthogonal grids…

Original Resolution ≃0.3‐mm 1‐mm resampling 2‐mm resampling

Page 23: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

In Situ: The Ngongotaha river experiment -2

Page 24: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

In Situ: The Ngongotaha river experiment -3

Page 25: 773 intro-2015.ppt - cs.auckland.ac.nz · COMPSCI 773 • The report should look like a research report with references – Justified explanations on the chosen solutions, graphs,

2015 Field trip

4 May 201525

At Marine Sciences Institute

First week after the end of class (early June)

We may invite2‐3 373 students with interest in pos‐graduate studies