CV: 3D sensing and calibration

Similar documents
Camera Model and Calibration

3D Geometry and Camera Calibration

Camera Model and Calibration. Lecture-12

Rigid Body Motion and Image Formation. Jana Kosecka, CS 482

CT5510: Computer Graphics. Transformation BOCHANG MOON

Geometric transformations in 3D and coordinate frames. Computer Graphics CSE 167 Lecture 3

Specifying Complex Scenes

CV: 3D to 2D mathematics. Perspective transformation; camera calibration; stereo computation; and more

3-D D Euclidean Space - Vectors

Revision Problems for Examination 2 in Algebra 1

Learning Log Title: CHAPTER 6: TRANSFORMATIONS AND SIMILARITY. Date: Lesson: Chapter 6: Transformations and Similarity

CSE452 Computer Graphics

Epipolar Geometry Prof. D. Stricker. With slides from A. Zisserman, S. Lazebnik, Seitz

Vector Algebra Transformations. Lecture 4

Camera Calibration. COS 429 Princeton University

Today. Today. Introduction. Matrices. Matrices. Computergrafik. Transformations & matrices Introduction Matrices

Computer Graphics Hands-on

Math background. 2D Geometric Transformations. Implicit representations. Explicit representations. Read: CS 4620 Lecture 6

Transforms. COMP 575/770 Spring 2013

Unit 4 Guided Notes Part 2 Geometry

CSE 167: Introduction to Computer Graphics Lecture #3: Projection. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

CSE328 Fundamentals of Computer Graphics

3D Mathematics. Co-ordinate systems, 3D primitives and affine transformations

Homework for Section 5.1

Viewing with Computers (OpenGL)

GEOMETRIC TRANSFORMATIONS AND VIEWING

CSE528 Computer Graphics: Theory, Algorithms, and Applications

521493S Computer Graphics Exercise 2 Solution (Chapters 4-5)

INTRODUCTION TO COMPUTER GRAPHICS. It looks like a matrix Sort of. Viewing III. Projection in Practice. Bin Sheng 10/11/ / 52

12.4 Rotations. Learning Objectives. Review Queue. Defining Rotations Rotations

Point A location in geometry. A point has no dimensions without any length, width, or depth. This is represented by a dot and is usually labelled.

CSE 167: Introduction to Computer Graphics Lecture #3: Projection. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

Name: 1) Which of the following properties of an object are not preserved under a rotation? A) orientation B) none of these C) shape D) size

Agenda. Rotations. Camera calibration. Homography. Ransac

Name Hr. Honors Geometry Lesson 9-1: Translate Figures and Use Vectors

Agenda. Rotations. Camera models. Camera calibration. Homographies

PetShop (BYU Students, SIGGRAPH 2006)

Section 13.5: Equations of Lines and Planes. 1 Objectives. 2 Assignments. 3 Lecture Notes

Geometric Transformations

THE VIEWING TRANSFORMATION

Chapter 12 Transformations: Shapes in Motion

N-Views (1) Homographies and Projection

Computer Vision I Name : CSE 252A, Fall 2012 Student ID : David Kriegman Assignment #1. (Due date: 10/23/2012) x P. = z

Visual Recognition: Image Formation

2D transformations: An introduction to the maths behind computer graphics

CALCULATING TRANSFORMATIONS OF KINEMATIC CHAINS USING HOMOGENEOUS COORDINATES

CSE 167: Introduction to Computer Graphics Lecture #3: Coordinate Systems

INTRODUCTION TO COMPUTER GRAPHICS. cs123. It looks like a matrix Sort of. Viewing III. Projection in Practice 1 / 52

Unit 1 Transformations in the Coordinate Plane

2D Object Definition (1/3)

DO NOW Geometry Regents Lomac Date. due. Similar by Transformation Construction

Graphics pipeline and transformations. Composition of transformations

Translations, Reflections, and Rotations

Camera Models and Image Formation. Srikumar Ramalingam School of Computing University of Utah

Guided Problem Solving

CS559 Computer Graphics Fall 2015

Two-view geometry Computer Vision Spring 2018, Lecture 10

UNIT 2 2D TRANSFORMATIONS

Implementing a virtual camera. Graphics 2. Creating a view of the scene an outline. Virtual camera - definitions

CSE 167: Introduction to Computer Graphics Lecture #4: Coordinate Systems

8.G Cutting a rectangle into two congruent triangles

Exercises for Chapter Three You know you've got to exercise your brain just like your muscles. Will Rogers ( )

Graphics Pipeline 2D Geometric Transformations

Name: Date: Per: WARM UP

Introduction to Homogeneous coordinates

Therefore, after becoming familiar with the Matrix Method, you will be able to solve a system of two linear equations in four different ways.

Section 12.1 Translations and Rotations

COMP 558 lecture 19 Nov. 17, 2010

CV: Matching in 2D. Matching 2D images to 2D images; Matching 2D images to 2D maps or 2D models; Matching 2D maps to 2D maps MSU CSE 803

Chapter 5. Transforming Shapes

CIS 580, Machine Perception, Spring 2016 Homework 2 Due: :59AM

CS201 Computer Vision Camera Geometry

Computer Graphics with OpenGL ES (J. Han) Chapter IV Spaces and Transforms

Ray Tracer I: Ray Casting Due date: 12:00pm December 3, 2001

Similarity and Congruence EOC Assessment (35%)

Humanoid Robotics. Projective Geometry, Homogeneous Coordinates. (brief introduction) Maren Bennewitz

To Do. Outline. Translation. Homogeneous Coordinates. Foundations of Computer Graphics. Representation of Points (4-Vectors) Start doing HW 1

2D/3D Geometric Transformations and Scene Graphs

Matrices. Chapter Matrix A Mathematical Definition Matrix Dimensions and Notation

CS6670: Computer Vision

MERGING POINT CLOUDS FROM MULTIPLE KINECTS. Nishant Rai 13th July, 2016 CARIS Lab University of British Columbia

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination

Unit 7. Transformations

Mapping Common Core State Standard Clusters and. Ohio Grade Level Indicator. Grade 5 Mathematics

Transformations in Ray Tracing. MIT EECS 6.837, Durand and Cutler

1.8 Composition of Transformations

Camera Models and Image Formation. Srikumar Ramalingam School of Computing University of Utah

Lesson 22: Congruence Criteria for Triangles SAS

COMP3421. Vector geometry, Clipping

Monday, 12 November 12. Matrices

Homogeneous Coordinates. Lecture18: Camera Models. Representation of Line and Point in 2D. Cross Product. Overall scaling is NOT important.

8.2.1 and 2 Lesson Date: Definition of Translation and Three Basic Properties

An idea which can be used once is a trick. If it can be used more than once it becomes a method

CS 664 Slides #9 Multi-Camera Geometry. Prof. Dan Huttenlocher Fall 2003

Handout 1: Viewing an Animation

6.837 Introduction to Computer Graphics Final Exam Tuesday, December 20, :05-12pm Two hand-written sheet of notes (4 pages) allowed 1 SSD [ /17]

AH Matrices.notebook November 28, 2016

Institutionen för systemteknik

Epipolar Geometry and the Essential Matrix

Study Guide - Geometry

Transcription:

CV: 3D sensing and calibration Coordinate system changes; perspective transformation; Stereo and structured light MSU CSE 803 1

roadmap using multiple cameras using structured light projector 3D transformations general perspective transformation justification of 3x4 camera model MSU CSE 803 2

Four Coordinate frames W: world, C,D: cameras, M: object model Need to relate all to each other. MSU CSE 803 3

Can we recognize? Is there some object M That can be placed in some location That will create the two images that are observed? Discover/compute what object and what pose MSU CSE 803 4

Need to relate frames to compute relate camera to world using rotations and translations project world point into real image using projection scale image point in real image plane to get pixel array coordinates MSU CSE 803 5

Stereo configuration 2 corresponding image points enable the intersection of 2 rays in W MSU CSE 803 6

Stereo computation MSU CSE 803 7

Math for stereo computations need to calibrate both cameras to W so that rays in x,y,z reference same space need to have corresponding points find point of closest approach of the two rays (rays are too far apart à point correspondence error or crude calibration) MSU CSE 803 8

Replace camera with projector Can calibrate a projector to W easily. Correspondence now means identifying marks. MSU CSE 803 9

Advantages/disadvantages of structured light MSU CSE 803 10

Grid projected on objects All grid intersects are integral MSU CSE 803 11

Computing surface normals Surface normals have been computed and then added to the image (augmented reality) MSU CSE 803 12

Relating coordinate frames need to relate camera frame to world need to rotate, translate, and scale coordinate systems need to project world points to the image plane all the above are modeled using 4x4 matrices and 1x4 points in homogeneous coordinates MSU CSE 803 13

Translation of 3D point P Point in frame 2 Point in 3D parameters Point in frame 1 MSU CSE 803 14

Scaling 3D point P MSU CSE 803 15

Rotation of P about the X-axis MSU CSE 803 16

Rotate P about the Y-axis MSU CSE 803 17

Rotate P about the Z-axis Looks same as 2D rotation omitting row, col 4 MSU CSE 803 18

Arbitrary rotation has orthonormal rows and columns MSU CSE 803 19

Equivalent rotation form every rotation or combination of rotations is equivalent to ONE rotation of angle theta about a single axis or rotation the axis of rotation and angle of rotation can be determined if three points are known before and after MSU CSE 803 20

Computing angle-axis form B O A* To rotate A to A*, the axis of rotation is OB that is perpendicular to OA and OA* Compute OB = OA x OA* (unit vectors) A ω Compute ω from OA o OA* (unit vectors) See frame software MSU CSE 803 21

Example: camera relative to world MSU CSE 803 22

exercise verify that the 3 x 3 rotation matrix is orthonormal by checking 6 dot products invert the 3 x 3 rotation matrix invert the 4 x 4 matrix verify that the new matrix transforms points correctly from C to W MSU CSE 803 23

Transformation calculus : notation accounts for transforms Destination frame W Origin frame M W M T Denotes transformation T transforms points from model frame to world frame. (Notation from John Craig, 1986) MSU CSE 803 24

Apply transformations to points Point in model coordinates W P = W M T M P Point in world coordinates Transformation from model to world coordinates (instance transformation) MSU CSE 803 25

Matrix algebra enables composition Let M and N be 4 x 4 matrices and let P be a 4 x 1 point M ( N P ) = ( M N ) P we can transform P using N and then transform that by M, or we can multiply matrices M and N and then apply that to point P matrix multiplication is associative (but not commutative) MSU CSE 803 26

Composing transformations cancel Projection parms. Parameters: rotation and translation A W T = A C T(π) C W T (ω) Two transformations are composed to get one transformation that maps points from the world frame to the frame A MSU CSE 803 27

Use of transformation calculus Alignment of two congruent triangles (ABC and DEF) via coordinate transformation; Fundamental operation MSU CSE 803 28

Align corresponding vertices at origin and align first side 0) starting configurations in 3D 1) Translate vertex to origin (do both) 2) Rotate DE to X-axis and AB to X-axis MSU CSE 803 29

Alignment: last steps 3) Rotate point F about X-axis into XY-plane. Rotate point C in a similar manner. Both triangles should now overlap in 3D MSU CSE 803 30

Here s what was done Every transformation we applied is invertible. So, we get the inverses to apply to one side. This is W M T MSU CSE 803 31

Align two congruent triangles in 3D space MSU CSE 803 32

What use is it? fundamental step in aligning a 3D model to observed 3D points might be lucky to have 3 corners of a rectangular box could have any matching 3D feature points once aligned, other 3D points could be transformed the same way See /user/stockman/software/rst/frames/frame.cpp and look for function align_triangles MSU CSE 803 33

Deriving form of the camera matrix We have already described what the camera matrix does and what form it has; we now go through the steps to justify it MSU CSE 803 34

Viewing model points M What s in front of the camera? MSU CSE 803 35

Math for the steps MSU CSE 803 36

Perspective transformation: camera origin at the center of projection This transformation uses same units in 3D as in the image plane MSU CSE 803 37

Perspective projection: camera origin in the real image plane MSU CSE 803 38

Rigid transformation for change of coordinate frame MSU CSE 803 39

Relate camera frame to world frame MSU CSE 803 40

Change scene units to pixels To get into XV or GIMP image coordinates! MSU CSE 803 41

Final result a 3x4 camera matrix maps 2D image pixels to 3D rays maps 3D rays to 2D image pixels obtain matrix via calibration (easy) obtain matrix via reasoning (hard) do camera calibration exercise MSU CSE 803 42