COS 429 PS2: Reconstructing a Simpler World

Slides:



Advertisements
Similar presentations
Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best.
Advertisements

Alignment Visual Recognition “Straighten your paths” Isaiah.
Announcements. Structure-from-Motion Determining the 3-D structure of the world, and/or the motion of a camera using a sequence of images taken by a moving.
Lecture 5.
Line Drawing Algorithms. Rasterization-Process of determining which pixels give the best approximation to a desired line on the screen. Scan Conversion-Digitizing.
CSE473/573 – Stereo and Multiple View Geometry
CS 691 Computational Photography Instructor: Gianfranco Doretto 3D to 2D Projections.
Dynamic Occlusion Analysis in Optical Flow Fields
Three-Dimensional Viewing Sang Il Park Sejong University Lots of slides are stolen from Jehee Lee’s.
Shared Graphics Skills Cameras and Clipping Planes
Mapping: Scaling Rotation Translation Warp
With support from: NSF DUE in partnership with: George McLeod Prepared by: Geospatial Technician Education Through Virginia’s Community Colleges.
Announcements Problem Set 2, handed out today, due next Tuesday. Late Homework should be turned into my office with date and time written on it. Mail problem.
Structure-from-Motion Determining the 3-D structure of the world, and/or the motion of a camera using a sequence of images taken by a moving camera. –Equivalently,
CS485/685 Computer Vision Prof. George Bebis
Image-Based Rendering using Hardware Accelerated Dynamic Textures Keith Yerex Dana Cobzas Martin Jagersand.
Recognition by Linear Combinations of Models By Shimon Ullman & Rosen Basri Presented by: Piotr Dollar Nov. 19, 2002.
© 2003 by Davi GeigerComputer Vision October 2003 L1.1 Structure-from-EgoMotion (based on notes from David Jacobs, CS-Maryland) Determining the 3-D structure.
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
Viewing Transformations
17 VECTOR CALCULUS.
3D Concepts UNIT 3. 3-D Coordinate Spaces Remember what we mean by a 3-D coordinate space x axis y axis z axis P y z x Right-Hand Reference System.
COS 429 PS3: Stitching a Panorama Due November 4 th.
Recognition of object by finding correspondences between features of a model and an image. Alignment repeatedly hypothesize correspondences between minimal.
Engineering 1182 College of Engineering Engineering Education Innovation Center Missing Lines Section of Text.
Stockman MSU/CSE Math models 3D to 2D Affine transformations in 3D; Projections 3D to 2D; Derivation of camera matrix form.
CS 450: Computer Graphics 2D TRANSFORMATIONS
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Projectile Motion Physics 6A Prepared by Vince Zaccone
Projectile Motion Physics 6A Prepared by Vince Zaccone
Graphing Linear Equations
Metric Self Calibration From Screw-Transform Manifolds Russell Manning and Charles Dyer University of Wisconsin -- Madison.
Getting started © juhanita2015.
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
What Does the Scene Look Like From a Scene Point? Donald Tanguay August 7, 2002 M. Irani, T. Hassner, and P. Anandan ECCV 2002.
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Geometric Models & Camera Calibration
Week 5 - Wednesday.  What did we talk about last time?  Project 2  Normal transforms  Euler angles  Quaternions.
Y. Moses 11 Combining Photometric and Geometric Constraints Yael Moses IDC, Herzliya Joint work with Ilan Shimshoni and Michael Lindenbaum, the Technion.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Designing Original Illustrations Lesson 8.
2 COEN Computer Graphics I Evening’s Goals n Discuss the mathematical transformations that are utilized for computer graphics projection viewing.
PARAMETRIC FUNCTIONS Today we will learn about parametric functions in the plane and analyze them using derivatives and integrals.
Feature-Based Parametric Modeling
CS 450: COMPUTER GRAPHICS PROJECTIONS SPRING 2015 DR. MICHAEL J. REALE.
0 Assignment 1 (Due: 3/9) The projections of two parallel lines, l 1 and l 2, which lie on the ground plane G, onto the image plane I converge at a point.
CSC508 Convolution Operators. CSC508 Convolution Arguably the most fundamental operation of computer vision It’s a neighborhood operator –Similar to the.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
1 Chapter 2: Geometric Camera Models Objective: Formulate the geometrical relationships between image and scene measurements Scene: a 3-D function, g(x,y,z)
Feature Matching. Feature Space Outlier Rejection.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Three-Dimensional Viewing
Navigating in 3D MAX CTEC V part 1. Viewing Objects and/or Scenes Depending upon the software program, the image on the monitor could be a Perspective.
Computer vision: models, learning and inference M Ahad Multiple Cameras
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
Graphing Linear Equations From the beginning. What is a Linear Equation? A linear equation is an equation whose graph is a LINE. Linear Not Linear.
Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab 10: 3D & Projections Advanced.
The Coordinate Plane 101 ALGEBRA 11/16/15. The coordinate plane is a set of axis on which ordered pairs of input and output values can be plotted.
Problem Set 2 Reconstructing a Simpler World COS429 Computer Vision Due October (one week from today)13 th.
Train Body The next series of slides will guide you through the construction of the train body. Start a new drawing and save it as Train Body.
3D Computer Vision 3D Vision Lecture 3 - Part 1 Camera Models Spring 2006 Zhang Aiwu.
COS 429 PS3: Stitching a Panorama Due November 10 th.
3.7 Translations. A) Translation: when we SLIDE a figure to a different location. Transformation: an operation that maps or moves a figure onto an image.
Chapter 3 Section 3.3 Linear Functions: Graphs and Applications.
11/25/03 3D Model Acquisition by Tracking 2D Wireframes Presenter: Jing Han Shiau M. Brown, T. Drummond and R. Cipolla Department of Engineering University.
Over the recent years, computer vision has started to play a significant role in the Human Computer Interaction (HCI). With efficient object tracking.
Introduction to Computer Graphics
PERSPECTIVE PROJECTION…...
Merle Norman Cosmetics, Los Angeles
First Homework One week
Course 6 Stereo.
Presentation transcript:

COS 429 PS2: Reconstructing a Simpler World Due October 16th

Goal Recover the 3D structure of the world

Problem 1: Making the World Simpler Simple World Assumptions: Flat surfaces that are either horizontal or vertical Objects rest on a white horizontal ground plane Task: Print Figure 1 and create objects for the world Take a picture of the world you created and add it to the report

Problem 2: Taking Orthographic Pictures Goal: Want pictures that preserve parallel lines from 3D to 2D Willing to accept weak perspective effects

How: Use the zoom of the camera or crop the central part of a picture Task: Take two pictures of the same scene so one image exhibits perspective projection and the other orthographic project and add it to the report Want both pictures to look as similar as possible

Problem 3: Orthographic Projection Two coordinate systems (X, Y, Z) world and (x, y) image X axis of world coordinate system aligns with x axis of camera plane Y and Z axes of world coordinate system align with y axis of camera plane

Task: Prove the two projection equations below that relate the 3D world position (X, Y, Z) to the 2D projected camera position (x, y) x = αX + x0 y = α(cos(θ)Y – sin(θ)Z) + y0

Problem 4: Geometric Constraints Find edges with corresponding strengths and orientations End goal is to find X(x, y), Y(x, y), Z(x, y) Given our coordinate system: X(x, y) = x Harder to find Y and Z since one dimension was lost due to projection Create linear system of equations of constraints

Color threshold determines ground from objects On the ground Y(x, y) = 0 Assume parallel projection All 2D vertical edges are 3D vertical edges Fails occasionally

Constraints Vertical Edges: 𝜕𝑌 𝜕𝑦 = 1 cos 𝜃 Equals 1 cos 𝜃 using the projection equations proved earlier The vector t = (-ny, nx) is the direction tangent to an edge Horizontal Edges: 𝜕𝑌 𝜕𝑡 =𝛻𝑌 ∙𝑡=− 𝑛 𝑦 𝜕𝑌 𝜕𝑥 + 𝑛 𝑥 𝜕𝑌 𝜕𝑦 =0 Equals 0 since the Y coordinate does not change for horizontal edges Task: Write the derivative constraints for Z(x, y) in the report 𝜕𝑍 𝜕𝑦 , 𝜕𝑍 𝜕𝑡 , 𝜕 2 𝑍 𝜕 𝑥 2 , 𝜕 2 𝑍 𝜕 𝑦 2 , 𝜕 2 𝑍 𝜕𝑦𝜕𝑥

A simple inference scheme Y b = Constraint weights A Y = b Y = (ATA)-1 ATb Matlab Y = A\b;

Problem 5: Approximation of Derivatives Want to use constraints from Problem 4 to determine Y(x, y) and Z(x, y) Two constraints missing from existing code Task: Write two lines of code (lines 171 and 187) Copy these two lines and add them to the report

Problem 6: A Simple Inference Scheme Write the constraints as a system of linear equations Task: Run simpleworldY.m to generate images for the report Include some screen shots of the generated figures and include in report

Extra Credit 1: Violating Simple World Assumptions What if we violate our assumptions? Show examples where the reconstruction fails Why does it fail?

Extra Credit 2: The Real World Take pictures of the real world How can we modify this assignment to getter better 3D reconstruction in the real world? Try to handle a few more situations Possible final project?

What to Submit: One PDF file report One ZIP file containing all the source code, and a “simpleworldY.m” file that takes no parameters as input and runs directly in Matlab to generate the results reported in your PDF file.

PDF Report (1) Take a picture of the world you created (2) Submit two pictures – one showing orthographic projection and the other perspective projection (3) Prove the two projection equations (4) Write the constraints for Z(x, y) (5) Fill in missing kernels (lines 171 and 187) and copy code into report (6) Show results and figures output by simpleworldY.m [Optional] Extra credit