More Single View Geometry

Similar documents
More Single View Geometry

More Single View Geometry

More Single View Geometry

Scene Modeling for a Single View

Single-view metrology

Scene Modeling for a Single View

SINGLE VIEW GEOMETRY AND SOME APPLICATIONS

Scene Modeling for a Single View

Scene Modeling for a Single View

Single-view 3D Reconstruction

CS4670/5670: Computer Vision Kavita Bala. Lec 19: Single- view modeling 2

Camera Geometry II. COS 429 Princeton University

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

Single-view 3D reasoning

Homographies and RANSAC

Image warping and stitching

Automatic Photo Popup

Multiple View Geometry

A simple method for interactive 3D reconstruction and camera calibration from a single view

Image warping and stitching

Image Warping and Mosacing

CHAPTER 3. Single-view Geometry. 1. Consequences of Projection

Perspective projection. A. Mantegna, Martyrdom of St. Christopher, c. 1450

3D Reconstruction from Scene Knowledge

N-Views (1) Homographies and Projection

Pinhole Camera Model 10/05/17. Computational Photography Derek Hoiem, University of Illinois

Projective Geometry and Camera Models

1 Projective Geometry

Projective geometry for Computer Vision

CSCI 5980: Assignment #3 Homography

CEng Computational Vision

Passive 3D Photography

Spatial track: range acquisition modeling

Structure from Motion. Prof. Marco Marcon

But First: Multi-View Projective Geometry

CS6670: Computer Vision

calibrated coordinates Linear transformation pixel coordinates

Projective Geometry and Camera Models

Camera Calibration. COS 429 Princeton University

Automatic Image Alignment (feature-based)

CS4670: Computer Vision

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

Visualization 2D-to-3D Photo Rendering for 3D Displays

Image warping and stitching

o Basic signal processing o Filtering, resampling, warping,... Rendering o Polygon rendering pipeline o Ray tracing Modeling

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Image Based Rendering. D.A. Forsyth, with slides from John Hart

Midterm Examination CS 534: Computational Photography

3D Geometric Computer Vision. Martin Jagersand Univ. Alberta Edmonton, Alberta, Canada

Today. Stereo (two view) reconstruction. Multiview geometry. Today. Multiview geometry. Computational Photography

There are many cues in monocular vision which suggests that vision in stereo starts very early from two similar 2D images. Lets see a few...

Feature Matching and RANSAC

Computer Vision CS 776 Fall 2018

More Mosaic Madness. CS194: Image Manipulation & Computational Photography. Steve Seitz and Rick Szeliski. Jeffrey Martin (jeffrey-martin.

CIS 580, Machine Perception, Spring 2015 Homework 1 Due: :59AM

CS-9645 Introduction to Computer Vision Techniques Winter 2019

CMPSCI 670: Computer Vision! Image formation. University of Massachusetts, Amherst September 8, 2014 Instructor: Subhransu Maji

Lecture 15: Image-Based Rendering and the Light Field. Kayvon Fatahalian CMU : Graphics and Imaging Architectures (Fall 2011)

Image-Based Modeling and Rendering

EE795: Computer Vision and Intelligent Systems

Simple 3D Reconstruction of Single Indoor Image with Perspe

Single View Geometry. Camera model & Orientation + Position estimation. What am I?

Image stitching. Digital Visual Effects Yung-Yu Chuang. with slides by Richard Szeliski, Steve Seitz, Matthew Brown and Vaclav Hlavac

Automatic Image Alignment

Image formation. Thanks to Peter Corke and Chuck Dyer for the use of some slides

Real-Time Shadows. Last Time? Schedule. Questions? Today. Why are Shadows Important?

Automatic Image Alignment (direct) with a lot of slides stolen from Steve Seitz and Rick Szeliski

5LSH0 Advanced Topics Video & Analysis

Uncalibrated 3D metric reconstruction and flattened texture acquisition from a single view of a surface of revolution

Chapter 5. Projections and Rendering

Single View Metrology

Stereo: Disparity and Matching

Mosaics wrapup & Stereo

Image-Based Rendering

CSE528 Computer Graphics: Theory, Algorithms, and Applications

CS6670: Computer Vision

DD2423 Image Analysis and Computer Vision IMAGE FORMATION. Computational Vision and Active Perception School of Computer Science and Communication

Review. Stephen J. Guy

Real-Time Shadows. Last Time? Today. Why are Shadows Important? Shadows as a Depth Cue. For Intuition about Scene Lighting

The Light Field and Image-Based Rendering

COSC579: Scene Geometry. Jeremy Bolton, PhD Assistant Teaching Professor

Automatic Image Alignment

BIL Computer Vision Apr 16, 2014

Introduction to Transformations. In Geometry

Single View Geometry. Camera model & Orientation + Position estimation. What am I?

6.098 Digital and Computational Photography Advanced Computational Photography. Panoramas. Bill Freeman Frédo Durand MIT - EECS

Single View Geometry. Camera model & Orientation + Position estimation. Jianbo Shi. What am I? University of Pennsylvania GRASP

Announcements. Mosaics. How to do it? Image Mosaics

Panoramas. Why Mosaic? Why Mosaic? Mosaics: stitching images together. Why Mosaic? Olivier Gondry. Bill Freeman Frédo Durand MIT - EECS

Mosaics. Today s Readings

Volumetric Scene Reconstruction from Multiple Views

Photo Tourism: Exploring Photo Collections in 3D

CS 2770: Intro to Computer Vision. Multiple Views. Prof. Adriana Kovashka University of Pittsburgh March 14, 2017

Viewpoint Invariant Features from Single Images Using 3D Geometry

Feature Transfer and Matching in Disparate Stereo Views through the use of Plane Homographies

Single View Metrology

CSc Topics in Computer Graphics 3D Photography

Shadows in the graphics pipeline

Computer Graphics. P05 Viewing in 3D. Part 1. Aleksandra Pizurica Ghent University

Real-Time Shadows. MIT EECS 6.837, Durand and Cutler

Transcription:

More Single View Geometry with a lot of slides stolen from Steve Seitz Cyclops Odilon Redon 1904 15-463: Computational Photography Alexei Efros, CMU, Fall 2007

Final Projects Are coming up fast! Undergrads can work in pairs, but project must be bigger. Sample Topics: Full 360 panorama construction (spherical or cylindrical) Render in synthetic object into real scene Automatic Tour into the Picture (can use Pop-up labeling code) Build a virtual CMU campus environment Implement a paper discussed in class (e.g. Video Textures) Come up with art project that uses Comp. Photography Etc. Project proposals due next Tuesday!

Pop Quiz: which is 1,2,3-point perspective Image B Image A Image C

Automatic Photo Pop-up Original Image Geometric Labels Fit Segments Cut and Fold Novel View

Results Input Image Cut and Fold Automatic Photo Pop-up

Results Input Image Cut and Fold Automatic Photo Pop-up

Results Input Image Automatic Photo Pop-up

Results Input Images Automatic Photo Pop-up

Results Input Image Automatic Photo Pop-up

How can we model this scene? 1. Find world coordinates (X,Y,Z) for a few points 2. Connect the points with planes to model geometry Texture map the planes

Finding world coordinates (X,Y,Z) 1. Define the ground plane (Z=0) 2. Compute points (X,Y,0) on that plane 3. Compute the heights Z of all other points

Measurements on planes 4 3 2 1 1 2 3 4 Approach: unwarp, then measure What kind of warp is this?

Unwarp ground plane x p p Our old friend the homography Need 4 reference points with world coordinates p = (x,y) p = (X,Y,0)

Finding world coordinates (X,Y,Z) 1. Define the ground plane (Z=0) 2. Compute points (X,Y,0) on that plane 3. Compute the heights Z of all other points

Comparing heights

Perspective cues

Perspective cues

Comparing heights Vanishing Point

Measuring height 5 4 3 2 5.4 Camera height 3.3 2.8 1

Computing vanishing points (from lines) v q 1 q 2 p 2 p 1 Intersect p 1 q 1 with p 2 q 2 Least squares version Better to use more than two lines and compute the closest point of intersection See notes by Bob Collins for one good way of doing this: http://www-2.cs.cmu.edu/~ph/869/www/notes/vanishing.txt

Criminisi 99 Vanishing line Vertical vanishing point (at infinity) Vanishing point Vanishing point

Measuring height without a ruler C Z ground plane Compute Z from image measurements Need more than vanishing points to do this

Measuring height v z r vanishing line (horizon) v x v t 0 H t R H v y b 0 b

Measuring height v z r vanishing line (horizon) t 0 v x t 0 v v y m 0 t 1 b 0 b 1 What if the point on the ground plane b 0 is not known? Here the guy is standing on the box Use one side of the box to help find b 0 as shown above b

What if v z is not infinity?

The cross ratio A Projective Invariant Something that does not change under projective transformations (including perspective projection) P 1 P 2 P 3 P 4 1 4 2 3 2 4 1 3 P P P P P P P P The cross-ratio of 4 collinear points Can permute the point ordering 4! = 24 different orders (but only 6 distinct values) This is the fundamental invariant of projective geometry = 1 i i i i Z Y X P 3 4 2 1 2 4 3 1 P P P P P P P P

v Z r t b t v b r r v b t Z Z image cross ratio Measuring height B (bottom of object) T (top of object) R (reference point) ground plane H C T B R R B T scene cross ratio = 1 Z Y X P = 1 y x p scene points represented as image points as R H = R H = R

Measuring height v z r vanishing line (horizon) v x v t 0 H t R H v y b 0 t r b b v v Z Z r t = image cross ratio H R b

Measuring heights of people Here we go! 185.3 cm reference

Forensic Science: measuring heights of suspects Vanishing line Reference height Reference height

Assessing geometric accuracy Are the heights of the 2 groups of people consistent with each other? Flagellation, Piero della Francesca Estimated relative heights

Assessing geometric accuracy The Marriage of the Virgin, Raphael Estimated relative heights

Criminisi et al., ICCV 99 Complete approach Load in an image Click on lines parallel to X axis repeat for Y, Z axes Compute vanishing points Specify 3D and 2D positions of 4 points on reference plane Compute homography H Specify a reference height Compute 3D positions of several points Create a 3D model from these points Extract texture maps Cut out objects Fill in holes Output a VRML model

Interactive silhouette cut-out

Occlusion filling Geometric filling by exploiting: symmetries repeated regular patterns Texture synthesis repeated stochastic patterns

Complete 3D reconstruction Single View algorithms Single image Planar measurements Height measurements Automatic vanishing point/line computation Interactive segmentation Occlusion filling Object placement in 3D model 3D model

Reconstruction from single photographs Reconstruction of the garden Hut from a single image

A virtual museum @ Microsoft A.Criminisi http://research.microsoft.com/~antcrim/