20 views

Uploaded by leeyaojun

Attribution Non-Commercial (BY-NC)

- 79024061 GATE Mathematics Questions All Branch by S K Mondal
- Bsp Smg Book
- GATE 2014 Question Paper & Answers - EE 01
- Gate Guide_Signals and Systems by R K Kanodia (1)
- Centralised reactive power compensation
- A Formula for Student Cheating: Big Campus, Weak Community
- Hidin Camera Project
- Made Easy Notes-Control System 5
- The Gun Digest Book of Firearms Assembly Disassembly Part3
- Engineering Electromagnetics
- Excellent
- Expedient Homemade Firearms Vol II PA Luty
- IES exam Paper
- made easy test series
- Gate Preparation
- Distinction Between Public Sector Undertaking and Private Company
- Electrical IEEE Projects
- 230219192PSU's GATE-2015.pdf
- O’ Level Biology - Home › Gayaza High School.pdf
- An Introduction to Photography

You are on page 1of 6

Projection & Lens CS510 Lecture #2 January 16th, 2002 Bruce A. Draper

Camera model has a focal point and an image plane All (and only) light rays that pass through the focal point alter the image plane.

Perspective Projection

u up zfp x = x - xt y = y - yt z = z - (z - zfp)t

zvp

Perspective (cont.)

P(x,y,z) z

x' = u = x

t= zvp z z fp z

=x f x = f z fp z z z fp f y = f z fp z z z fp

z fp zvp z fp z z fp z vp z fp z

These equations describe all points (x, y, z) along the ray from fp to P(x,y,z)

y' = v = y

=y

Perspective (III)

Setting Zfp = 0 yields the perspective projection matrix:

1 0 0 0 0 0 1 0 0 1 0 1/f 0 0 0 0

Perspective (IV)

Not used to this the perspective matrix? There are many variations depending on your choice of coordinate system. All perspective projection is based on the following relations:

u= f X Z Y v =f Z

(From H&B)

Ray Casting

The value of any pixel is determined by casting a ray from the focal point through the pixel and out into the world

Camera Models

We had better review camera models, too

ITEM DESCRIPTION Ref. Frame.

Cameras in 3D

(maxu,maxv)

u

n

PRP

W or ld

View Reference Point View Plane Normal Up Vector - Define V Projection Reference Point

World Y

vpn

(minu,minv) World X

n = u=

v=nxu

Camera Hints:

Remember, VRP & PRP are points in the world coordinate system VPN, n, u, and v are vectors in the world coordinate system minu, minv, maxu, maxv are 2D points in the uv (image) plane All units are pixels, unless otherwise stated

// udir is direction of u axis, etc. For v from minv to maxv { For u from minu to maxu { Ray R from PRP toward (VRP+u*udir+v*vdir); Point P = Intersect(R, World); Image[u,v] = Color(P); } } // or you could play with coordinate systems

Questions

Is it possible to build a pin-hole camera? In what way is a pin-hole camera not a good model of modern cameras?

Mathematical Model (light rays intersect plane on way to meet at focal point)

Physical Pin-hole Camera: (light rays pass through pin-hole, then intersect plane; image is mirrored)

Lens Screen

Rays entering parallel on one side converge at focal point. Rays diverging from the focal point become parallel. Thin Lens

Thin Lens

1) All rays eminating from a single point in space must converge on a single point in the image plane (definition of focus) 2) Any ray entering the lens parallel to the axis on one side goes through the focus point on the other side 3) Any ray entering the lens from the focus point on one side emerges parallel to the axis on the other side

FR FL

Optical Axis

fR

fR

P Z+f Thin Lens Q O FL f R f FR s Optical Axis

The ray PQ (parallel to the optical axis) must be deflected to pass through FR by property #2 The ray PR must be deflected so that it becomes parallel to the optical axis by property #3 After deflection, PQ & PR must intersect at p, by property #1. Now, use similar triangles.

Z S

P Y S Z FL f Y O f y R y p

1 1 1 + = Z + f z+ f f

Q FR

Y y = f z

z s Optical Axis

Y y = Z f

http://www.physics.gatech.edu/academics/tutorial/phys2121/Java%20Applets/ntnujava/Lens/lens_e.html

Question

What happens when

1 1 1 + Z+ f z+ f f

Why (and how) does a thin lens implement perspective projection? How do you focus on objects that are very far away? You can recover the depth of a static scene with a single camera how?

Spherical Blurring

Partial Obscuration

Thin Lens

How do you do ray casting with a thin lens? Every point on the image plane (i.e. every pixel) generates many rays toward different points on the lens

Optical Axis FL

FR

How many? How much time do you have. Arrange points in spherical pattern

Partially obscured objects may be dimmer than other objects; If out-of-focus, blurring may be non-symmetric

Every ray is deflected by the lens Compute color along every deflected ray, average the results

RC + TL (II)

How do you compute lens deflections? Every ray (from a single image point) deflects toward a single point in the world. Shoot two rays from the image point toward the lens:

One parallel to the optic axis One through the back focal point Focused Point in 3D World Lens Image Plane

One through the front focal point One parallel to the optic axis.

RC + TL (III)

Spherical Distortion

Most lenses exhibit spherical (a.k.a. radial) distortion which creates a slightly curved focal plane Thin Lens Curved Focal Plane

These two deflected rays intersect at some point in the world. All other rays (associated with this pixel) go from the surface of the lens toward this point. So fire rays from every lens surface point toward this point and average the results.

The two initial rays are used only for finding the point that is in focus. Do not expect all rays to intersect the same surface at the same point, unless the image is in focus

Optical Axis FL

FR

Chromatic Aberration

The focal length of a lens is a function of the wavelength of the light. Therefore, different colors of light from a single point will be out-of-focus

Points are distorted geometrically from the true perspective position as a result of flattening out the plane.

1) convert points to 2D spherical coordinates, based in the middle of the image 2 3 2) = ' '+ ' + ' +...

FR FL

Optical Axis

Points also become more blurred as they approach the edge of the image

Field of View

Aperture: limits the effective diameter of the lens Thin Lens

d FL

FR

Optical Axis

FOV = tan 1 d

2f

- 79024061 GATE Mathematics Questions All Branch by S K MondalUploaded bymyidprince
- Bsp Smg BookUploaded bybovine splendor
- GATE 2014 Question Paper & Answers - EE 01Uploaded byaglasem
- Gate Guide_Signals and Systems by R K Kanodia (1)Uploaded byAmit1504
- Centralised reactive power compensationUploaded byHans De Keulenaer
- A Formula for Student Cheating: Big Campus, Weak CommunityUploaded byCheatingCulture.com
- Hidin Camera ProjectUploaded byArpit Agarwal
- Made Easy Notes-Control System 5Uploaded byloughboroughsantosh
- The Gun Digest Book of Firearms Assembly Disassembly Part3Uploaded byVanesa Maldonado Videla
- Engineering ElectromagneticsUploaded byKaustubh Upadhyay
- ExcellentUploaded byapi-3859620
- Expedient Homemade Firearms Vol II PA LutyUploaded byFlavio Marçal
- IES exam PaperUploaded byganeshkumarkota
- made easy test seriesUploaded byKapil Goyal
- Gate PreparationUploaded byCraig Daugherty
- Distinction Between Public Sector Undertaking and Private CompanyUploaded byArun Kumar Sharma
- Electrical IEEE ProjectsUploaded byChilukuri Rajesh
- 230219192PSU's GATE-2015.pdfUploaded byPrasad Molleti
- O’ Level Biology - Home › Gayaza High School.pdfUploaded byGustavo Kst
- An Introduction to PhotographyUploaded byCristina Ivan
- [GUNSMITHING] The 12g PistolUploaded byMago Invisivel
- 2003 - Soil Deformation Measurement Using Particle Image Velocimetry PIV by WHITEUploaded byHiram Plaza Gamez
- GRE-notesUploaded byMatheus Loss Lize
- Exam PrepUploaded byJackGuan
- Energetic EyeHealingUploaded byMadon Maria
- Microscope BasicsUploaded byDickyStevanoZukhri

- EcoliUploaded byExSktu
- Uponor CAD Details_Heating and CoolingUploaded byadigeto
- Cement Mill DrivesUploaded byTimon Tim
- ThyroiHormoITO12Uploaded bytara manroe
- Tutorial 1Uploaded byPraveen Krishna
- BDPS480_580_BX58Uploaded byRigel Anne Linke
- 2400-ca001_-en-pUploaded byabenitech
- GMP Packing HouseUploaded bypujan77
- Hoja de datos QSK60G5_fr6321Uploaded byacere18
- 7 TRAS Very Fast Transient RecorderUploaded byemmanuel_rl
- NOTES_for_EMT4801_2018Uploaded byRixizoNgobeni
- Computer Aided Analysis of the Structural Behaviour of Sloped Open Lattice Towers 1Uploaded byOladunni Afolabi
- CIWEM Statement - Control of OdourUploaded byjos123456789
- Diarrhoeal DiseaseUploaded byFayasulhusain Muthalib
- Palm Oil Fruit Loader Machine (Pattern Doc)Uploaded byMuhamad Radhzi
- asus-zenfone-6-0.pdfUploaded byAnanDaa LibRaa
- Mechanical Unit Manager 3HAC028797-001 RevA EnUploaded byGokerAkgun
- GAS ----AMPZILLA originalUploaded byDOMINO66
- Csi SoftwareUploaded byOrlando Castillo Brito
- Project Lunar 28Uploaded byAnish Kv
- Johann Wolfgang DöbereinerUploaded by怡霖
- Underwater Concrete - Mix Design and Construction Practices(1).DocUploaded byprasad
- Cheikh Anta Diop and the New Light on African HistoryUploaded byallisee7154
- SE.pdfUploaded bytesfayregs gebretsadik
- Electric Shop.pdfUploaded byversine
- WOB SciUploaded byGenus Luzares
- SYPHILIS Annual TechUploaded bykimotosan
- 6-Exercises-Solutions-2009.pdfUploaded bysyafiq hashim
- Response of Concrete Block Structure to Quarry Induced Ground Motion and WeatherUploaded byTony Chan
- Women s Era Apr09-jalsa.tkUploaded byyenki