
Title:
1602 Image Formation

Description:
Unit 16 02 Image Formation.mp4

[Thrun] The science of how images are created using cameras is called image formation,

where formation just means the way an image is being captured.

Perhaps the easiest model of a camera is called a pinhole camera.

In a pinhole camera, the light from within the world

goes through a various small holeideally it's a really, really small hole

to project into a camera chip that sits somewhere in the background.

So for example, if you had an object that was a person over here,

then this person would be projected as follows.

The feet would be projected to over here and the head to over here,

which gives us this inverted person on the projection plane or the camera chip.

There is some very basic math that governs the geometry of a pinhole camera.

If we call X the physical height of the object and small x the height of the projection,

which I'll call x because it points in the opposite direction as the original object,

then we can also talk about other values

such as the distance of the object to the camera plane

and f, which is the focal distance of the camera,

which is the distance between the pinhole and the projection plane over here.

There's a simple piece of math that relates all of those 4 variables over here,

and it's easily obtained by what's called equal triangles.

In particular, it turns out if I map this triangle over here to right over here

so these are the same triangles, just flipped, where x is over here and f is over here

we get that the ratio of upper caps X to Z is the same as lower caps x to f.

So I write this as follows.

This is a result of equal triangles.

So as you take a triangle of a certain shape,

when you scale it up to larger triangles, those proportions are retained,

so therefore, upper caps X divided by Z is the same as lower caps x divided by f.

If we now transform this, I find that the projection of lower caps x,

which I might care about, is upper caps X, the physical size of the object itself,

times the quotient of the focal length over the distance.

That's an interesting equation.

The further an object is away, the smaller it appears.

The larger the focal length of the camera, the larger the object in its projection.

And of course the size of the object itself directly influences

how big its image of the object really is.

So let's see if you can practice that equation using a quiz.