Image formation ECE 847: Digital Image Processing Stan Birchfield Clemson University.

Slides:



Advertisements
Similar presentations
Image formation. Image Formation Vision infers world properties form images. How do images depend on these properties? Two key elements –Geometry –Radiometry.
Advertisements

Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
CS 691 Computational Photography Instructor: Gianfranco Doretto 3D to 2D Projections.
Capturing light Source: A. Efros. Image formation How bright is the image of a scene point?
CPSC 641 Computer Graphics: Radiometry and Illumination Jinxiang Chai Many slides from Pat Haranhan.
Basic Principles of Surface Reflectance
RADIOSITY Submitted by CASULA, BABUPRIYANK. N. Computer Graphics Computer Graphics Application Image Synthesis Animation Hardware & Architecture.
Radiometry. Outline What is Radiometry? Quantities Radiant energy, flux density Irradiance, Radiance Spherical coordinates, foreshortening Modeling surface.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Review Pinhole projection model What are vanishing points and vanishing lines? What is orthographic projection? How can we approximate orthographic projection?
Computer Vision - A Modern Approach Set: Radiometry Slides by D.A. Forsyth Radiometry Questions: –how “bright” will surfaces be? –what is “brightness”?
Camera Models A camera is a mapping between the 3D world and a 2D image The principal camera of interest is central projection.
Capturing light Source: A. Efros. Review Pinhole projection models What are vanishing points and vanishing lines? What is orthographic projection? How.
Cameras (Reading: Chapter 1) Goal: understand how images are formed Camera obscura dates from 15 th century Basic abstraction is the pinhole camera Perspective.
Image Formation (approximately) Vision infers world properties form images. So we need to understand how images depend on these properties. Two key elements.
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.
3-D Computer Vision CSc83029 / Ioannis Stamos 3-D Computer Vision CSc Radiometry and Reflectance.
Stefano Soatto (c) UCLA Vision Lab 1 Homogeneous representation Points Vectors Transformation representation.
Announcements Mailing list (you should have received messages) Project 1 additional test sequences online Talk today on “Lightfield photography” by Ren.
Image Formation (approximately) Vision infers world properties form images. So we need to understand how images depend on these properties. Two key elements.
CS485/685 Computer Vision Prof. George Bebis
Radiometry, lights and surfaces
Image Formation1 Projection Geometry Radiometry (Image Brightness) - to be discussed later in SFS.
© 2002 by Davi GeigerComputer Vision January 2002 L1.1 Image Formation Light can change the image (and appearances). What is the relation between pixel.
Introduction to Computer Vision CS / ECE 181B Tues, May 18, 2004 Ack: Matthew Turk (slides)
Computer Vision - A Modern Approach
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.
© 2004 by Davi GeigerComputer Vision February 2004 L1.1 Image Formation Light can change the image and appearances (images from D. Jacobs) What is the.
Image formation 2. Blur circle A point at distance is imaged at point from the lens and so Points a t distance are brought into focus at distance Thus.
© 2003 by Davi GeigerComputer Vision September 2003 L1.1 Image Formation Light can change the image and appearances (images from D. Jacobs) What is the.
The Pinhole Camera Model
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
The Camera : Computational Photography Alexei Efros, CMU, Fall 2008.
Camera: optical system d  21 thin lens small angles: Y Z  2 1 curvature radius.
Cameras, lenses, and calibration
Basic Principles of Imaging and Photometry Lecture #2 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Light and shading Source: A. Efros.
CS 445 / 645: Introductory Computer Graphics
EECS 274 Computer Vision Light and Shading. Radiometry – measuring light Relationship between light source, surface geometry, surface properties, and.
Reflectance Map: Photometric Stereo and Shape from Shading
776 Computer Vision Jan-Michael Frahm Fall Camera.
Image Formation Fundamentals Basic Concepts (Continued…)
Geometric Models & Camera Calibration
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Image Formation Dr. Chang Shu COMP 4900C Winter 2008.
Capturing light Source: A. Efros.
Vision Review: Image Formation Course web page: September 10, 2002.
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
04/30/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling We are now all done with modeling, the standard hardware pipeline.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
CSCE 641 Computer Graphics: Reflection Models Jinxiang Chai.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
Cameras, lenses, and sensors 6.801/6.866 Profs. Bill Freeman and Trevor Darrell Sept. 10, 2002 Reading: Chapter 1, Forsyth & Ponce Optional: Section 2.1,
Radiometry of Image Formation Jitendra Malik. A camera creates an image … The image I(x,y) measures how much light is captured at pixel (x,y) We want.
01/27/03© 2002 University of Wisconsin Last Time Radiometry A lot of confusion about Irradiance and BRDFs –Clarrified (I hope) today Radiance.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Radiometry of Image Formation Jitendra Malik. What is in an image? The image is an array of brightness values (three arrays for RGB images)
1 Ch. 4: Radiometry–Measuring Light Preview 。 The intensity of an image reflects the brightness of a scene, which in turn is determined by (a) the amount.
Computer vision: geometric models Md. Atiqur Rahman Ahad Based on: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince.
CS580: Radiometry Sung-Eui Yoon ( 윤성의 ) Course URL:
CS262 – Computer Vision Lect 4 - Image Formation
Jan-Michael Frahm Fall 2016
Image formation ECE 847: Digital Image Processing Stan Birchfield
Radiometry (Chapter 4).
© 2002 University of Wisconsin
Terminology.
Capturing light Source: A. Efros.
Lecturer: Dr. A.H. Abdul Hafez
Lecture 28: Photometric Stereo
Presentation transcript:

Image formation ECE 847: Digital Image Processing Stan Birchfield Clemson University

Cameras First photograph due to Niepce Basic abstraction is the pinhole camera –lenses required to ensure image is not too dark –various other abstractions can be applied F. Dellaert,

Image formation overview Image formation involves geometry – path traveled by light radiometry – optical energy flow photometry – effectiveness of light to produce “brightness” sensation in human visual system colorimetry – physical specifications of light stimuli that produce given color sensation sensors – converting photons to digital form

Pinhole camera D. Forsyth,

Parallel lines meet: vanishing point each set of parallel lines (=direction) meets at a different point –The vanishing point for this direction Sets of parallel lines on the same plane lead to collinear vanishing points. –The line is called the horizon for that plane

Perspective projection k O P Q j i p q C f Properties of projection: Points go to points Lines go to lines Planes go to whole image Polygons go to polygons Degenerate cases –line through focal point to point –plane through focal point to line F. Dellaert,

Perspective projection (cont.) F. Dellaert,

Weak perspective projection perspective effects, but not over the scale of individual objects collect points into a group at about the same depth, then divide each point by the depth of its group D. Forsyth,

Weak perspective (cont.) F. Dellaert,

Orthographic projection Let Z 0 =1: F. Dellaert,

Pushbroom cameras

Pinhole too big - many directions are averaged, blurring the image Pinhole too small- diffraction effects blur the image Generally, pinhole cameras are dark, because a very small set of rays from a particular point hits the screen. Pinhole size D. Forsyth,

The reason for lenses D. Forsyth,

The thin lens focal points D. Forsyth,

Focusing

Thick lens thick lens has 6 cardinal points: –two focal points (F 1 and F 2 ) –two principal points (H 1 and H 2 ) –two nodal points (N 1 and N 2 ) complex lens is formed by combining individual concave and convex lenses D. Forsyth,

Complex lens All but the simplest cameras contain lenses which are actually composed of several lens elements

Choosing a lens How to select focal length: –x=fX/Z –f=xZ/X Lens format should be >= CCD format to avoid optical flaws at the rim of the lens

Lenses – Practical issues standardized lens mount has two varieties: –C mount –CS mount CS mount lenses cannot be used with C mount cameras

Spherical aberration perfect lensactual lens On a real lens, even parallel rays are not focused perfectly en.wikipedia.org/wiki/Spherical_aberration

Chromatic aberration On a real lens, different wavelengths are not focused the same

Radial distortion straight lines are curved: uncorrectedcorrected

Radial distortion (cont.) barrel distortion (more common) pincushion distortion pincushion barrel Two types:

Vignetting vignetting – reduction of brightness at periphery of image D. Forsyth,

Normalized Image coordinates P O u=X/Z = dimensionless ! 1 F. Dellaert,

Pixel units P O u=k f X/Z = in pixels ! [f] = m (in meters) [k] = pixels/m f Pixels are on a grid of a certain dimension F. Dellaert,

Pixel coordinates P O u=u 0 + k f X/Z f We put the pixel coordinate origin on topleft F. Dellaert,

Pixel coordinates in 2D j i (u 0,v 0 ) (0.5,0.5) (640.5,480.5) F. Dellaert,

Summary: Intrinsic Calibration skew 5 Degrees of Freedom ! F. Dellaert,

Camera Pose In order to apply the camera model, objects in the scene must be expressed in camera coordinates. World Coordinates Camera Coordinates Calibration target looks tilted from camera viewpoint. This can be explained as a difference in coordinate systems. F. Dellaert,

Rigid Body Transformations Need a way to specify the six degrees-of-freedom of a rigid body. Why are there 6 DOF? A rigid body is a collection of points whose positions relative to each other can’t change Fix one point, three DOF Fix second point, two more DOF (must maintain distance constraint) Third point adds one more DOF, for rotation around line F. Dellaert,

Notations Superscript references coordinate frame A P is coordinates of P in frame A B P is coordinates of P in frame B Example: F. Dellaert,

Translation F. Dellaert,

Translation Using homogeneous coordinates, translation can be expressed as a matrix multiplication. Translation is commutative F. Dellaert,

Rotation means describing frame A in The coordinate system of frame B F. Dellaert,

Rotation Orthogonal matrix! F. Dellaert,

Example: Rotation about z axis What is the rotation matrix? F. Dellaert,

Rotation in homogeneous coordinates Using homogeneous coordinates, rotation can be expressed as a matrix multiplication. Rotation is not communicative F. Dellaert,

Rigid transformations F. Dellaert,

Rigid transformations (con ’ t) Unified treatment using homogeneous coordinates. F. Dellaert,

Projective Camera Matrix 5+6 DOF = 11 ! F. Dellaert,

Projective Camera Matrix 5+6 DOF = 11 ! F. Dellaert,

Columns & Rows of M m 2 P=0 O F. Dellaert,

Effect of Illumination Light source strength and direction has a dramatic impact on distribution of brightness in the image (e.g. shadows, highlights, etc.) (Subject 8 from the Yale face database due to P. Belhumeur et. al.) F. Dellaert,

Image formation Light source emits photons Absorbed, transmitted, scattered fluorescence Camera source F. Dellaert,

Surfaces receives and emits Incident light from lightfield Act as a light source How much light ? F. Dellaert,

Irradiance Irradiance – amount of light falling on a surface patch symbol=E, units = W/m 2 dA F. Dellaert,

Radiosity power leaving a point per area symbol=B, units = W/m 2 dA F. Dellaert,

Light = Directional Light emitted varies w. direction F. Dellaert,

Steradians (Solid Angle) 3D analogue of 2D angle A R F. Dellaert,

Steradians (cont’d) F. Dellaert,

Polar Coordinates F. Dellaert,

Intensity Intensity – amount of light emitted from a point per steradian symbol=I, units = W/sr F. Dellaert,

Irradiance and Intensity dA F. Dellaert,

Radiance Radiance – amount of light passing through an area dA and symbol=L, units = W x m -2 x sr -1 F. Dellaert,

Radiance is important Response of camera/eye is proportional to radiance Pixel values Constant along a ray F. Dellaert,

Lightfield = Gibson optic array ! 5DOF: Position = 3DOF, 2 DOF for direction F. Dellaert,

Lightfield Sampler F. Dellaert,

Lightfield Sample F. Dellaert,

Lambertian Emitters Lambertian = constant radiance More photons emitted straight up Oblique: see fewer photons, but area looks smaller Same brightness ! Total power is proportional to wedge area “Cosine law” Sun approximates Lambertian: Different angle, same brightness Moon should be less bright at edges, as gets less light from sun. Reflects more light at grazing angles than a Lambertian reflector F. Dellaert,

Radiance Emitted/Reflected Radiance – amount of light emitted from a surface patch per steradian per area foreshortened ! dA F. Dellaert,

Calculating Radiosity If reflected light is not dependent on angle, then can integrate over angle: radiosity is an approximate radiometric unit F. Dellaert,

Example: Sun Power= W Surface Area: m 2 Power = Radiance. Area.  L = W/m 2.sr Example from P. Dutre SIGGRAPH tutorial F. Dellaert,

Irradiance (again) Integrate incoming radiance over hemisphere F. Dellaert,

Example: Sun F. Dellaert,

BRDF L E Symmetric in incoming and outgoing directions – this is the Helmholtz reciprocity principle F. Dellaert,

BRDF Example F. Dellaert,

Lambertian surfaces and albedo For some surfaces, the DHR is independent of illumination direction too –cotton cloth, carpets, matte paper, matte paints, etc. For such surfaces, radiance leaving the surface is independent of angle Called Lambertian surfaces (same Lambert) or ideal diffuse surfaces Use radiosity as a unit to describe light leaving the surface DHR is often called diffuse reflectance, or albedo for a Lambertian surface, BRDF is independent of angle, too. Useful fact: F. Dellaert,

Specular surfaces Another important class of surfaces is specular, or mirror-like. –radiation arriving along a direction leaves along the specular direction –reflect about normal –some fraction is absorbed, some reflected –on real surfaces, energy usually goes into a lobe of directions –can write a BRDF, but requires the use of funny functions F. Dellaert,

Lambertian + specular Widespread model –all surfaces are Lambertian plus specular component Advantages –easy to manipulate –very often quite close true Disadvantages –some surfaces are not e.g. underside of CD’s, feathers of many birds, blue spots on many marine crustaceans and fish, most rough surfaces, oil films (skin!), wet surfaces –Generally, very little advantage in modelling behaviour of light at a surface in more detail -- it is quite difficult to understand behaviour of L+S surfaces F. Dellaert,

Radiometry vs. Photometry F. Dellaert,

Sensors CCD vs. CMOS Types of CCDs: linear, interline, full- frame, frame-transfer Bayer filters progressive scan vs. interlacing NTSC vs. PAL vs. SECAM framegrabbers blooming F. Dellaert,

Bayer color filter