COMP 558 Exercises 1 Oct 2, 2010

Similar documents
Geometric Optics Converging Lenses and Mirrors Physics Lab IV

Lecture 2: Homogeneous Coordinates, Lines and Conics

AP Physics B Ch. 23 and Ch. 24 Geometric Optics and Wave Nature of Light

2) A convex lens is known as a diverging lens and a concave lens is known as a converging lens. Answer: FALSE Diff: 1 Var: 1 Page Ref: Sec.

Vector Notation: AB represents the vector from point A to point B on a graph. The vector can be computed by B A.

Geometric Camera Parameters

Lecture 17. Image formation Ray tracing Calculation. Lenses Convex Concave. Mirrors Convex Concave. Optical instruments

(a) We have x = 3 + 2t, y = 2 t, z = 6 so solving for t we get the symmetric equations. x 3 2. = 2 y, z = 6. t 2 2t + 1 = 0,

INTRODUCTION TO RENDERING TECHNIQUES

LIGHT REFLECTION AND REFRACTION

Math 241, Exam 1 Information.

Revision problem. Chapter 18 problem 37 page 612. Suppose you point a pinhole camera at a 15m tall tree that is 75m away.

Shutter Speed in Digital Photography

521493S Computer Graphics. Exercise 2 & course schedule change

Practice Final Math 122 Spring 12 Instructor: Jeff Lang

C) D) As object AB is moved from its present position toward the left, the size of the image produced A) decreases B) increases C) remains the same

Elements of a graph. Click on the links below to jump directly to the relevant section

HW6 Solutions Notice numbers may change randomly in your assignments and you may have to recalculate solutions for your specific case.

TWO-DIMENSIONAL TRANSFORMATION

Advanced Computer Graphics. Rendering Equation. Matthias Teschner. Computer Science Department University of Freiburg

Solution Guide III-C. 3D Vision. Building Vision for Business. MVTec Software GmbH

Lecture 12: Cameras and Geometry. CAP 5415 Fall 2010

1. You stand two feet away from a plane mirror. How far is it from you to your image? a. 2.0 ft c. 4.0 ft b. 3.0 ft d. 5.0 ft

Geometric Transformation CS 211A

Endoscope Optics. Chapter Introduction

Solving Simultaneous Equations and Matrices

Section Continued

White paper. In the best of light The challenges of minimum illumination

6. Vectors Scott Surgent (surgent@asu.edu)

When the fluid velocity is zero, called the hydrostatic condition, the pressure variation is due only to the weight of the fluid.

PHOTON mapping is a practical approach for computing global illumination within complex

Parametric Equations and the Parabola (Extension 1)

Solution Derivations for Capa #14

Solutions to Homework 10

Determine whether the following lines intersect, are parallel, or skew. L 1 : x = 6t y = 1 + 9t z = 3t. x = 1 + 2s y = 4 3s z = s

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

Exam 1 Practice Problems Solutions

Reflection and Refraction

Chapter 10 Rotational Motion. Copyright 2009 Pearson Education, Inc.

Solutions to old Exam 1 problems

1. Kyle stacks 30 sheets of paper as shown to the right. Each sheet weighs about 5 g. How can you find the weight of the whole stack?

MAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A =

LS.6 Solution Matrices

WHITE PAPER. Are More Pixels Better? Resolution Does it Really Matter?

Imaging Systems Laboratory II. Laboratory 4: Basic Lens Design in OSLO April 2 & 4, 2002

Fraunhofer Diffraction

Question 2: How do you solve a matrix equation using the matrix inverse?

DICOM Correction Item

1 Determinants and the Solvability of Linear Systems

Digital Image Requirements for New Online US Visa Application

Basic Manual Control of a DSLR Camera

DOING PHYSICS WITH MATLAB COMPUTATIONAL OPTICS RAYLEIGH-SOMMERFELD DIFFRACTION INTEGRAL OF THE FIRST KIND

Epipolar Geometry. Readings: See Sections 10.1 and 15.6 of Forsyth and Ponce. Right Image. Left Image. e(p ) Epipolar Lines. e(q ) q R.

Experiment 3 Lenses and Images

Math 1B, lecture 5: area and volume

MATHEMATICS FOR ENGINEERING BASIC ALGEBRA

Solving Quadratic Equations

Representing Vector Fields Using Field Line Diagrams

Lenses and Telescopes

Chapter 22: Mirrors and Lenses

Two vectors are equal if they have the same length and direction. They do not

Lecture 2: Geometric Image Transformations

4. CAMERA ADJUSTMENTS

3D Scanner using Line Laser. 1. Introduction. 2. Theory

Lecture on Solid Angle

Lecture 14: Section 3.3

Basic Problem: Map a 3D object to a 2D display surface. Analogy - Taking a snapshot with a camera

4.5 Linear Dependence and Linear Independence

The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION GEOMETRY. Thursday, January 24, :15 a.m. to 12:15 p.m.

WHITE PAPER. Source Modeling for Illumination Design. Zemax A Radiant Zemax Company

Orthogonal Projections

XI / PHYSICS FLUIDS IN MOTION 11/PA

x = + x 2 + x

LIST OF CONTENTS CHAPTER CONTENT PAGE DECLARATION DEDICATION ACKNOWLEDGEMENTS ABSTRACT ABSTRAK

MATH2210 Notebook 1 Fall Semester 2016/ MATH2210 Notebook Solving Systems of Linear Equations... 3

OPTICAL IMAGES DUE TO LENSES AND MIRRORS *

Hydrostatic Force on a Submerged Surface

Digital Photography Composition. Kent Messamore 9/8/2013

Review Sheet for Test 1

Lecture L3 - Vectors, Matrices and Coordinate Transformations

High-resolution Imaging System for Omnidirectional Illuminant Estimation

egyptigstudentroom.com

UNIVERSITY OF SASKATCHEWAN Department of Physics and Engineering Physics

The purposes of this experiment are to test Faraday's Law qualitatively and to test Lenz's Law.

Lenses and Apertures of A TEM

Unified Lecture # 4 Vectors

Texture. Chapter Introduction

Chapter 22: Electric Flux and Gauss s Law

Section 9.5: Equations of Lines and Planes

Rutgers Analytical Physics 750:228, Spring 2016 ( RUPHY228S16 )

LINEAR EQUATIONS IN TWO VARIABLES

Polarization of Light

The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION GEOMETRY. Thursday, January 26, :15 a.m. to 12:15 p.m.

Vector Algebra II: Scalar and Vector Products

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Activity Set 4. Trainer Guide

Physics, Chapter 38: Mirrors and Lenses

Chapter 17: Light and Image Formation

L 2 : x = s + 1, y = s, z = 4s Suppose that C has coordinates (x, y, z). Then from the vector equality AC = BD, one has

Size Of the Image Nature Of the Image At Infinity At the Focus Highly Diminished, Point Real and Inverted

Transcription:

Questions 1. When a face is photographed from the front and from a small distance, the nose appears much larger than it should in comparison to the other parts of the face. Why? 2. Below are sketches of a cylinder and sphere. What are the slant and tilt for the various points marked on these surfaces? Note: To define slant and tilt, you need a plane. The plane being marked here is the tangent plane, namely the plane that touches the surface at one point only. This plane defines the normal vector to the surface. 3. Below is a photograph some (upside-down) dessert plates on my dining room table. The plates are all the same size in 3D and they are spaced evenly on the table. You can see that both the image size and aspect ratio of the plates vary in the image. The image width x of the near plate is about twice as great as the far plate. The aspect ratio y/ x of the far plate is about 1/3 whereas the aspect ratio of the near plate is close to 1. 1

Motivated by the above image, let s try to derive an expression for the aspect ratio of the disks. The general equation of a plane in camera coordinates is AX +BY +CZ = D. Take the case such as in the above photograph in which the tilt is 90 degrees, and so the equation plane reduces to BY +CZ = D. (a) Write the equation of the plane in terms of slant σ. (b) Suppose you drop a disk of diameter 1 onto the plane. (For example, if the XYZ coordinates were cm, then the disk would be 1 cm in diameter.) What is the δy and δz for the closest and farthest points on the disk? What is the corresponding image distance y between these two points? (c) What is the image width x of the disk? (d) What is the aspect ratio y x as a function of 1 Z? 4. True or false? Explain why. (a) The bidirectional reflectance distribution function (BRDF) of a surface in a given scene depends on the lighting of that scene. (b) If a curved surface is illuminated by a parallel source (e.g. sunlight), then all points on the surface have the same irradiance. (c) Two points on the sensor plane have the same RGB irradiance E RGB (x,y) if and only if they have the same irradiance spectra E(x,y,λ). 5. For the camera calibration matrix K, (a) Describe what happens to the appearance of an image if α x < α y. (b) What are typical values of p x and p y? (Your answer must be in terms of other camera parameters.) 6. Suppose a photographer chooses the following camera settings to get an acceptable exposure for a scene: focal length f = 80 mm, shutter speed 1 = 32, f-number = 5.6. t Give an example of alternative settings that result in a greater range of depths that are in-focus. Do not change the exposure or the field of view angle. 7. Suppose and B(x) = 80, x > x 0 I(x) = 40, x = x 0 20, x < x 0 1, x = 1, i.e. x = ±1 4 1, x = 0 2 0, otherwise 2

(a) What is I(x) B(x)? (b) What is I(x) B(x) D(x)? 8. Suppose we have a plane 1, x = 1 D(x) = 1, x = 1 0, otherwise ax +by +cz = d that is observed by a laterally moving observer (T z = 0). Give an expression for the image velocity field as a function of x,y,t x,t y,f and any other scene variables. 9. Consider a wall at constant depth Z 0. What is the region of this wall that contributes to the image at position (x 0,y 0,Z s ) on the sensor plane, assuming the image is formed under a thin lens model? 10. The projection matrix P = KR[ I C] is a 3 4 matrix, i.e. I is 3 3 and C is 3 1. (a) You might think that it has 12 degrees of freedom, but in fact it has only 11. Why? (b) What is the null space of P? (P is not invertible since it has more columns than rows.) (c) What are the four columns of P? Geometrically, what do they represent? (d) What are the three rows of P? i.e. Geometrically, what do they represent? 11. For many artificial light sources such as candles and light bulbs, it is common to approximate the source as an infinitely bright single point (or a very bright small sphere) and to describe the illumination from that point in terms of the power of light radiated over the sphere of directions centered at that point. Define the radiant intensity of such a source to be power per unit solid angle. In general, radiant intensity is a function defined on the unit sphere. Suppose you have a spherical light source, centered at position X src = (0,4,3) in a scene, where distances are measured in meters. The sphere is of radius 0.1 m and suppose the radiant intensity in direction l is (1 + l g) 2 where g = (0, 1,0) is the unit vector in the direction of gravity. Suppose the light source is illuminating a plane Y = 0. (a) What is the irradiance of a surface at the origin. (b) What is the solid angle subtended by the sphere, as seen from the origin? (c) What is the radiance of the sphere as seen from the origin (X,Y,Z) = (0,0,0)? 3

Answers 1. Since the nose is the closest part of the face, the depth Z of the nose is less than for other parts of the face. For fixed X, note that x = f X Z. Thus for two neighboring points on the nose that are separated by X and are at roughly at the same depth Z nose, the x will be greater than the x value for two neighboring non-nose points with the same X but greater Z. 2. SLANT TILT 70 90 SLANT 70 45 0 45 70 70 45 45 90 TILT 180 180 undefined 0 0 45 45 70 180 180 270 0 0 70 270 3. (a) Multiplying the equation of the plane by f/z and dividing by C gives (b) so B Df y +f = C CZ ytanσ +f = Df CZ. Taking the derivative of y with respect to Z, ytanσ = Df C (1 Z ) Df CZ 2 Z. The farthest and nearest points on the disk have a Z difference Z = sinσ. Thus y fd CZ 2 cosσ. 4

(c) The width of the disk in the X direction is X = 1, and x = f X, so we get Z x = f X Z = f Z. (d) The image aspect ratio of the projected disk is y x Dcosσ CZ = D Z B 2 +C 2. As we approach the horizon (Z ), the aspect ratio goes to 0. For example, for the case C = 0, we have Y = D/B, and so But for this case, y = Df BZ so y x y f. y x D ZB. 4. (a) False. BRDF = f(x,l in,l out ) and so the BRDF depends only on the position and on the directions of incoming and outgoing light. It does not depend on the incoming radiance of a particular scene. (b) False. On a curved surface, the normal n varies. So, the irradiance E(x) will not be constant. (c) False. The question says if and only if. Two points on the sensor plane have the same RGB irradiance E RGB (x,y) if they have the same irradiance spectra E(x,y,λ), However, the converse is not true. Two points can have the same E RGB (x,y) but can have different irradiance spectra. 5. (a) α x and α y are the number of pixels per mm in the x,y directions. If α x < α y then the density of pixels is less in the x direction. When the image is displayed on a square grid of pixels on a monior it will appear squished in the x direction. (b) (p x,p y ) is the pixel coordinate of the optical axis (or principal point). This is supposed to be in the center of the image, so it should be about (N x /2,N y /2) where (N x,n y ) are the number of pixels in the x,y directions. [You needed to know this for Assignment 1.] 6. The question says to change neither the exposure nor the field of view angle. If you cannot change the field of view angle, then you cannot change the focal length. Thus, you change only the shutter speed and/or the aperture. You need to decrease the blur width X at each point. So you need to decrease the aperture (increase the f-number, since focal length is fixed). To keep the exposure constant, you need to decrease the shutter speed. The exposure depends on the inverse of the shutter speed and on the square of the aperture. Consecutive f-numbersvarybyafactor 2whereasconsecutive shutter speeds varybyafactor 2. So, a shutter speed of 1/t = 16 (changed from 32) and f-number of 8 = 64 (changed from 5.6 = 32) would do the trick. 5

7. (a) (I B)(x 0 2,x 0 1,x 0,x 0 +1,x 0 +2) = (20,25,45,70,80) and values are less than x 0 2 are 20, and all values greater than x 0 +2 are 80. (b) Take the answer from (a) and convolve with D(x). This is easy (and tedious) to do by hand and gives (I f D)(x 0 2,x 0 1,x 0,x 0 +1,x 0 +2) = (...,0,0,5,25,45,35,10,0,0,...). 8. The velocity field for lateral motion is (v x,v y ) = f Z ( T x, T y ). Multiplying the equation of a plane by df Z gives: ax+by +cf d = f Z. Substituting the left side into the velocity field expression gives: (v x,v y ) = ax+by +cf d ( T x, T y ). The field has a constant direction but the magnitude varies linearly with (x, y). 9. The center (X 0,Y 0 ) of the region on the wall is determined by: ( X 0 Z 0, Y 0 Z 0 ) = ( x 0 Z s, y 0 Z s ) To find the width X of the region on the wall, use reverse projection: Z 0 Zs X = Z s A where A is the diameter of the lens (the aperture), and A similar expression holds for Y. 1 f = 1 + 1. Z s Zs 10. (a) We can multiply the matrix P by any constant a > 0 but this will not change the projection, since P maps vectors that are represented in homogeneous coordinates, so P(aX) represents the same point as PX. But, PX represents the same point as ap)x). (b) The null space of P is the set of vectors X PX = 0. 6

By inspection (see lecture 4, page 3), the camera position X = C is a null vector since that is, 0 0 0 = [I C]C = O 1 0 0 c x 0 1 0 c y 0 0 1 c z This is the only null vector since both R and K are invertible. (c) The first three columns of P are, by definition, the image projection of the of the world coordinate axes (1,0,0,0), (0,1,0,0), (0,0,1,0), which are direction vectors. The last column of P is the image projection of the world origin. Note that the world origin is not the same thing generally as the camera origin (and if it is, then fourth column will be (0,0,0) T ). (d) We begin with the third row of P. If we treat this row as the set of coefficients of the 3D plane, P 3,1 X +P 3,2 Y +P 3,3 Z +P 3,4 = 0 then any point (X,Y,Z) on this plane will map either to a point at infinity in the image, i.e. to some point (,,0). Actually there is one exception to this. Since the camera center C lies in the null space of P, the camera center must lie on this plane as well. What scene points project to image points at infinity? These are the scene points that lie in a plane containing the camera s center of projection and whose normal is the optical axis. This is called the principal plane of the camera. Note that the 3-vector (P 3,1,P 3,2,P 3,3 ) must be in the direction of the optical axis of the camera, since it is normal to the principal plane. The first row of P can be interpreted as the set of coefficients of a different plane, c x c y c z 1 P 1,1 X +P 1,2 Y +P 1,3 Z +P 1,4 = 0 whose points are projected to the line x = 0 in the image plane. Note that since the camera center C lies in the null space of P, the camera center must lie on this plane as well. Does the optical axis lie in this plane? Not necessarily, since the image coordinate coordinate system does not necessarily have the optical axis at (0, 0). By similar reasoning, the second row of P corresponds to a plane containing the camera center and the x-axis of the image plane. 11. (a) Consider a small patch of area a containing the origin. If this patch were oriented so that it faced the source directly, then it would subtend a solid angle a steradians, as 5 2 viewed from the center of the spherical source. It is oriented obliquely, however, and so its solid angle is less: the area is foreshortened and so the solid angle is multiplied by (0, 4, 3 ) (0,1,0) = 4. Thus, the solid angle of the patch as seen from the center of the 5 5 5 sphere is a 4 steradians. 5 2 5 7

To calculate the irradiance, we first calculate how many Watts this patch of area a would receive. The radiant intensity of the source is given in the question, and the unit vector l in question is (0, 4 5, 3 ). Plugging in, we get that the radiant intensity in the direction 5 of our surface patch is (1+l g) 2 = (1+ 4 5 )2 = ( 9 5 )2 Watts per steradian. Thus, the patch receives ( 9 5 )2 Watts per steradian * a 4 steradians = 5 2 5 (9)2 a 4 Watts. 5 5 2 5 Finally, to get the irradiance (Watts per m 2 ), we must divide by the area a. (b) The sphere is at a distance 5 = 3 2 +4 2 from the origin. If the sphere were projected onto a unit sphere centered at the origin, it would cover an area of about π(0.1)2, so this 5 2 is the solid angle (in steradians). (c) Since the source subtends a small angle only and has a smooth irradiant intensity (as a function of direction l), we can assume that the radiance over incident directions is approximately constant: E = L in n l in Ω where Ω was the answer to (b), E is the answer to (a), and l n = (0, 4 5, 3 5 ) (0,1,0) = 4 5. i.e. same foreshortening factor as above. Substituting gives the solution for L in. 8