Image formation & Geometrical Transforms Francisco Gómez J MMS U. Central y UJTL.

Slides:



Advertisements
Similar presentations
C280, Computer Vision Prof. Trevor Darrell Lecture 2: Image Formation.
Advertisements

Computer Vision, Robert Pless
Study the mathematical relations between corresponding image points.
Camera Models A camera is a mapping between the 3D world and a 2D image The principal camera of interest is central projection.
3D Vision Topic 1 of Part II Camera Models CSC I6716 Fall 2010
Geometry of Images Pinhole camera, projection A taste of projective geometry Two view geometry:  Homography  Epipolar geometry, the essential matrix.
Announcements. Projection Today’s Readings Nalwa 2.1.
Lecture 5: Projection CS6670: Computer Vision Noah Snavely.
MSU CSE 803 Stockman Perspective algebra: quick- and-dirty first look Geometry of similar triangles yields algebra for computing world-image transformation.
Announcements Mailing list (you should have received messages) Project 1 additional test sequences online Talk today on “Lightfield photography” by Ren.
CS485/685 Computer Vision Prof. George Bebis
3-D Geometry.
Camera model Relation between pixels and rays in space ?
Announcements Mailing list Project 1 test the turnin procedure *this week* (make sure it works) vote on best artifacts in next week’s class Project 2 groups.
Calibration Dorit Moshe.
Lecture 12: Projection CS4670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
The Pinhole Camera Model
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
Camera: optical system d  21 thin lens small angles: Y Z  2 1 curvature radius.
1 Digital Images WorldCameraDigitizer Digital Image (i) What determines where the image of a 3D point appears on the 2D image? (ii) What determines how.
Cameras, lenses, and calibration
Basic Principles of Imaging and Photometry Lecture #2 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Image Processing Lecture 2 - Gaurav Gupta - Shobhit Niranjan.
Viewing and Projections
Image Formation. Input - Digital Images Intensity Images – encoding of light intensity Range Images – encoding of shape and distance They are both a 2-D.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
Camera Geometry and Calibration Thanks to Martial Hebert.
Transformations Dr. Amy Zhang.
776 Computer Vision Jan-Michael Frahm Fall Camera.
Image Formation Fundamentals Basic Concepts (Continued…)
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
Geometric Camera Models and Camera Calibration
Geometric Models & Camera Calibration
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Imaging Geometry for the Pinhole Camera Outline: Motivation |The pinhole camera.
University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction to computer vision Chapter 2: Image.
CSci 6971: Image Registration Lecture 3: Images and Transformations March 1, 2005 Prof. Charlene Tsai.
Geometric Camera Models
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Vision Review: Image Formation Course web page: September 10, 2002.
DIGITAL CAMERAS Prof Oakes. Overview Camera history Digital Cameras/Digital Images Image Capture Image Display Frame Rate Progressive and Interlaced scans.
A Flexible New Technique for Camera Calibration Zhengyou Zhang Sung Huh CSPS 643 Individual Presentation 1 February 25,
Computer Graphics 3D Transformations. Translation.
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)
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Instructor: Mircea Nicolescu Lecture 3 CS 485 / 685 Computer Vision.
Digital Image Processing Additional Material : Imaging Geometry 11 September 2006 Digital Image Processing Additional Material : Imaging Geometry 11 September.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Robotics Chapter 6 – Machine Vision Dr. Amit Goradia.
Announcements Project 1 grading session this Thursday 2:30-5pm, Sieg 327 –signup ASAP:signup –10 minute slot to demo your project for a TA »have your program.
3D Computer Vision 3D Vision Lecture 3 - Part 1 Camera Models Spring 2006 Zhang Aiwu.
CS 551 / 645: Introductory Computer Graphics Viewing Transforms.
Lecture 18: Cameras CS4670 / 5670: Computer Vision KavitaBala Source: S. Lazebnik.
Image Warping 2D Geometric Transformations
CSE 185 Introduction to Computer Vision
Rendering Pipeline Fall, 2015.
CS5670: Computer Vision Lecture 9: Cameras Noah Snavely
Homogeneous Coordinates (Projective Space)
GEOMETRIC CAMERA MODELS
Lecture 13: Cameras and geometry
Geometric Camera Models
Lecturer: Dr. A.H. Abdul Hafez
Multiple View Geometry for Robotics
Announcements Midterm out today Project 1 demos.
Reflections in Coordinate Plane
Projection Readings Nalwa 2.1.
Credit: CS231a, Stanford, Silvio Savarese
The Pinhole Camera Model
Announcements Midterm out today Project 1 demos.
Presentation transcript:

Image formation & Geometrical Transforms Francisco Gómez J MMS U. Central y UJTL

Digital images Arrays of numbers Numbers can represent: – Intensity (gray level) – Range – X-ray absortion coefficient – Amount of light

Human eye Color sensors Intensity sensors 100,0000,000

Distribution of cones and rods

Sensor simplified Pupil Limit amount of light and incidence angle Lens Focus the light to a single image point Fotosensitive surface Film

Digital cameras – sensor type

Sensor type CCD type (Charge coupled device) Charge is accumulated during exposure CMOS type (complementary metal oxide on silicon) Light affects the conductivity (or gain) of each photodetector Pixel! To take into account: Number and size of sensor elements – Chip size – ADC resolution

Pinhole camera The pinhole camera and camera obscura principle illustrated in 1925, in The Boy Scientist.

Pinhole camera The «Camera obscura» was used by renaissance paienters to help to understand Perspective projection

Pinhole and lens model Pinhole Given a projection plane parallel to X-Y located at distance f where the point (p1,p2,p3) is going to be projected, i.e, which is the value for (u,v)? u=(p 1 /p 3 )f and v=(p 2 /p 3 )f

Pinhole and lens model This is the CCD sensor units in mm Image plane coordinate This is the real object in m

Example Camera – Focal length: 5mm You have an scene point located at (1m,2m,5m) – Where at the image plane coordinate this point is going to be located? – If the image plane is 10mm,10mm which is the FoV? – A building is 100m wide. How far away do we have to be in order that it fills the field of view? (0,0) Optical center (cx,cy) Optical center

Image buffer Optical center digital image Pixel Image Origin

Image Buffer

Example A camera observes a rectangle 2m away – The rectangle is known to be 50 cm x 30 cm – If the image in the rectangle measures 60 x 15 pixels Where is located the focal length in pixels?

Other kind of sensors (Color camera)

Other kind of sensors (Kinect)

Other kind of sensors

Other kind of sensors

Other kind of sensors (MRI)

Other kind of sensors (MRI)

Other kind of sensors (MRI)

Other kind of sensors

All is about tranform between frames

2D to 2d Transforms (Rigid) (1,1)(?,?) 2 2 xx (x’,y’) (?,?) yy  Preserves shape and size Number of degrees of freedom (3): t=(  x,  y) and 

2D to 2d Transforms (Euclidean - Rigid)  R is orthonormal Transpose is the inverse How to invert the transform?

Homogeneous coordinates - Homogeneous coordinates simply add an extra element 1 -If during operations the third element is different of 1 divide by this number -This representation is quite convenient to represent transformations to

Homogeneous coordinates

Example Transform the image point (10,40) using a rotation of 90 degrees and a translation of (15,-60)

2D to 2d Transforms (Similarity - Scaled) Preserve angles but not distances

2D to 2d Transforms (Afinne) Models rotation, translation, scaling, shearing, and reflection

Example I = imread('cameraman.tif'); tform = maketform('affine',[1 0 0; ; 0 0 1]); J = imtransform(I,tform); imshow(I), figure, imshow(J)

2D to 2d Transforms (Afinne) Models rotation, translation, scaling, shearing, and reflection

2D to 2d Transforms (Projective - Homography)

What preserves?

3d to 3d Transforms Coordinate frames – {A}, {B} How to describe points in {B} respect to {A} – We need a t – Rotation matrix R

3d to 3d Transforms (Rotation) 3 degrees of freedom! But we need a convention

Rotations around the axis

Rotation around the axis A rotation matrix can be expressed using a 3 x3 matrix Rotation in X Rotation in YRotation in Z

Rotational transformation R represents a rotational transformation of frame A to frame B From Point represented in frame B Point represented in frame A

Transforming a 3d point

In homogeneous coordinates Homogeneous What is the inverse?

Example Let p=(2,2,5) in frame A Frame B is located at (10,-5,6) and rotated 65 degrees around z-axis with respect to frame A Where is point p located respect to frame B?

Transformations are maps AB Transformation are answers to the question: If there are points in A how they can be written in B?

Small angle approximation sin(  sin(  Useful if you want to rotate objects in a video

Recovering angles

3d to 2d Transforms Projects 3d points into 2d

Perspective projection – Intrinsic matrix Optical center (cx,cy) How can we write the perspective projection as a transform? or How to project 3D points represented in the coordinate system attached to the camera, to the 2D image plane?

Extrinsic camera If 3D points are in world coordinates, we first need to transform them to camera coordinates We can write this as an extrinsic camera matrix, that does the rotation and translation, then a projection from 3D to 2D

World to camera

What about color?

Images in matlab

RGB color space

Hue Purity Luminosity