May 9, 2005 Andrew C. Gallagher1 CRV2005 Using Vanishing Points to Correct Camera Rotation Andrew C. Gallagher Eastman Kodak Company

Slides:



Advertisements
Similar presentations
Vanishing points  .
Advertisements

More on single-view geometry
3D reconstruction.
Three Dimensional Viewing
Joint Coordinate System
Honors Geometry Transformations Section 2 Rotations.
May 9, 2005 Andrew C. Gallagher1 CRV2005 Detection of Linear and Cubic Interpolation in JPEG Compressed Images Andrew C. Gallagher Eastman Kodak Company.
Computer vision. Camera Calibration Camera Calibration ToolBox – Intrinsic parameters Focal length: The focal length in pixels is stored in the.
Learn to locate and graph points on the coordinate plane.
YOU CAN locate and graph points on the coordinate plane.
Standardized Test Practice EXAMPLE 2 SOLUTION Plot points P, Q, R, and S on a coordinate plane. Point P is located in Quadrant IV. Point Q is located in.
Camera calibration and epipolar geometry
Camera Models A camera is a mapping between the 3D world and a 2D image The principal camera of interest is central projection.
CS 376 Introduction to Computer Graphics 02 / 09 / 2007 Instructor: Michael Eckmann.
Used slides/content with permission from
Lecture 5: Projection CS6670: Computer Vision Noah Snavely.
Uncalibrated Geometry & Stratification Sastry and Yang
CS485/685 Computer Vision Prof. George Bebis
COMP322/S2000/L221 Relationship between part, camera, and robot (cont’d) the inverse perspective transformation which is dependent on the focal length.
Lecture 13: Projection, Part 2
Single-view geometry Odilon Redon, Cyclops, 1914.
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
CS4670 / 5670: Computer Vision KavitaBala Lecture 15: Projection “The School of Athens,” Raphael.
Cameras, lenses, and calibration
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Lecture 14: Projection CS4670 / 5670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
WP3 - 3D reprojection Goal: reproject 2D ball positions from both cameras into 3D space Inputs: – 2D ball positions estimated by WP2 – 2D table positions.
Machine Vision for Robots
Camera Geometry and Calibration Thanks to Martial Hebert.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
3D SLAM for Omni-directional Camera
Properties of Reflections. Warm up Triangle ABC has vertices A(1, 1), B(3, 1), and C(2, 4). Describe how each reflection changes the coordinates of the.
Chapter 7 Transformations.
Slide 5- 1 Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Correspondence-Free Determination of the Affine Fundamental Matrix (Tue) Young Ki Baik, Computer Vision Lab.
Self-Calibration and Metric Reconstruction from Single Images Ruisheng Wang Frank P. Ferrie Centre for Intelligent Machines, McGill University.
Objects at infinity used in calibration
Geometric Camera Models
Graphing. 2. Coordinate Plane 3. Grid 4. Lattice Points 1. Number Line.
Objective: Plot points and lines on a coordinate plane. Standards Addressed: G: Represent relationships with tables or graphs in the coordinate plane.
V part 1 Obtained from a Guildford County workshop-Summer, 2014.
Single-view geometry Odilon Redon, Cyclops, 1914.
Coordinate System Graphing and Ordering Pairs. Coordinate Plane X - Axis Y - Axis Origin Quadrant 1 Quadrant 4Quadrant 3 Quadrant 2.
A Flexible New Technique for Camera Calibration Zhengyou Zhang Sung Huh CSPS 643 Individual Presentation 1 February 25,
Ordered Pairs Graphing on the Coordinate Plane. Vocabulary coordinate plane axes x-axis y-axis origin Coordinates (ordered pair) x-coordinate y-coordinate.
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)
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
Math. A Coordinate Plane is a plane consisting of a set of two lines intersecting (crossing) each other at right angles. The horizontal line is the X-axis.
Single-view geometry Odilon Redon, Cyclops, 1914.
Digital Image Processing Additional Material : Imaging Geometry 11 September 2006 Digital Image Processing Additional Material : Imaging Geometry 11 September.
The Coordinate Plane. Vocabulary Words Axes - two perpendicular number lines used for locating points Origin – the intersection of the two axes Y-axis.
Vectors and the Geometry of Space Section 10.4 Lines and Planes in Space 2015.
Euler Angles This means, that we can represent an orientation with 3 numbers Assuming we limit ourselves to 3 rotations without successive rotations about.
5-1 The Coordinate Plane Introduction. Coordinate Graph.
Unit 10 Transformations. Lesson 10.1 Dilations Lesson 10.1 Objectives Define transformation (G3.1.1) Differentiate between types of transformations (G3.1.2)
Forward Kinematics Where is my hand ?. Examples Denavit-Hartenberg Specialized description of articulated figures (joints) Each joint has only one degree.
Cell Segmentation in Microscopy Imagery Using a Bag of Local Bayesian Classifiers Zhaozheng Yin RI/CMU, Fall 2009.
Lecture 14: Projection CS4670 / 5670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
Warm Up. True or False? 1.A reflection preserves angle measure. 2.A reflection preserves segment length. 3.A reflection preserves orientation. False True.
Lecture 18: Cameras CS4670 / 5670: Computer Vision KavitaBala Source: S. Lazebnik.
The Coordinate Plane. We have worked with both horizontal and vertical number line s Horizontal
Ancona - Municipality Hall The principal point PP is the intersection of the three heights of the triangle with vertices the three V.P. The V.P. procedure.
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
Calibrating a single camera
Geometric Camera Models
Projective geometry Readings
Video Compass Jana Kosecka and Wei Zhang George Mason University
Single-view geometry Odilon Redon, Cyclops, 1914.
Presentation transcript:

May 9, 2005 Andrew C. Gallagher1 CRV2005 Using Vanishing Points to Correct Camera Rotation Andrew C. Gallagher Eastman Kodak Company

May 9, 2005 Andrew C. Gallagher2 CRV2005 Problem An unintentionally tilted camera can negatively affect image appearance. Caused by lightweight cameras that are difficult to hold level. People prefer images where the horizon is level. Human can see as little at 1 o tilt.

May 9, 2005 Andrew C. Gallagher3 CRV2005 Solution Vanishing point location can be used to detect and correct image tilt resulting from camera rotation. A vanishing point is the image of a world line at infinity. Vanishing point location is useful for: –computing focal length [Kanatani] –finding principal point [Caprile et al.] –determining camera parameters and rotation matrix[Cipolla et al.]

May 9, 2005 Andrew C. Gallagher4 CRV2005 Vanishing Points Parallel scene lines meet at a vanishing point in the image. Horizontal Line Vanishing Point Vertical Line Vanishing Point

May 9, 2005 Andrew C. Gallagher5 CRV2005 The Camera Model The camera model describes the projection of 3D world to 2D camera plane. K is a 3x3 matrix of the internal camera parameters. R is a 3x3 matrix describing the rotation from the world to the camera frame. T is a 3x1 matrix describing translation between the world and camera coordinate frame. Assume no skew, square pixels. The vanishing points of world directions are: camera coordinate frame world coordinate frame

May 9, 2005 Andrew C. Gallagher6 CRV2005 The Rotation Matrix R is any matrix in the special orthogonal group SO(3). In practice the camera positions used by typical consumers follow a fairly predictable nonlinear distribution. This distribution is then used to find where vanishing points will occur.

May 9, 2005 Andrew C. Gallagher7 CRV2005 Camera Position Analysis Default Position World rotation by  about the Y-axis World rotation about the Z-axis TILTED IMAGE World rotation by  about the X-axis

May 9, 2005 Andrew C. Gallagher8 CRV2005 Camera Position Analysis Rotation about both X- and Y- axes This position model encompasses all “preferred” camera positions. The vanishing point associated with vertical world direction (Y-axis) is constrained to fall on the image y-axis. The horizon is parallel to image x-axis. Location of V y Location of V x or V z

May 9, 2005 Andrew C. Gallagher9 CRV2005 Camera Position Analysis Additional rotation about the Z-axis The original rotation matrix is multiplied by a rotation about the Z-axis. The new vanishing points are simply rotated by the same amount! In essence, the rotation of the camera from the ideal position is equivalent to the rotation of the vanishing points. Location of V x or V z Location of V y

May 9, 2005 Andrew C. Gallagher10 CRV2005 Ground Truth Analysis Location of V x or V z Location of V y 357 vanishing points were manually labeled to compare with expected distribution. 160 vertical (V y ) vanishing points 197 horizontal (V x or Vz ) vanishing points. The match is visually good. EXPECTED DISTRIBUTION MEASURED DISTRIBUTION

May 9, 2005 Andrew C. Gallagher11 CRV2005 Vanishing Point Classification The vertical and horizontal vanishing point distributions are well-separated. A classifier can be used to identify vertical vanishing points. The camera rotation is found from the vertical vanishing point. On ground truth, only 2 vanishing points (0.6%) are misclassified. Vertical vanishing point classifier

May 9, 2005 Andrew C. Gallagher12 CRV2005 The Tilt Correction Algorithm Find vanishing points Identify vertical vanishing points Compute camera rotation angle  from the vertical vanishing point Compute correction angle  c according to table: Rotate image The rotated image can be shown to be equivalent to capturing with a camera having no component of rotation about the Z-axis. ^

May 9, 2005 Andrew C. Gallagher13 CRV2005 Vanishing Point Detection Initial work by Barnard Line Segment Detection –Lines are found by calculating local gradients, then clustering, or by using Hough transform. Line Intersection Computation –Intersections of the lines are found. Line intersections are possible locations of a vanishing point. Maximum Detection –A detected vanishing point is hypothesized to be at a location of many line intersections.

May 9, 2005 Andrew C. Gallagher14 CRV2005 Vanishing Point Detection Original Image Detected Line Segments Plot of all line segment Intersections (Higher probabilities are red). Lines associated with 1 st VP. Lines associated with 2 nd VP. Detected Vanishing Points

May 9, 2005 Andrew C. Gallagher15 CRV2005 Algorithm Results Original Lines associated with vertical VP Corrected

May 9, 2005 Andrew C. Gallagher16 CRV2005 Algorithm Results Original Lines associated with vertical VP Corrected

May 9, 2005 Andrew C. Gallagher17 CRV2005 Conclusions Rotation of the camera about the principal axis moves the vertical vanishing point from the image y-axis. This novel algorithm corrects a tilted image by detecting the vertical vanishing point, and determining the magnitude of camera rotation.