Why do cameras go in and out of focus? Why can’t everything just be in focus?

161 views

Why do cameras go in and out of focus? Why can’t everything just be in focus?

In: 3

6 Answers

Anonymous 0 Comments

Fun Fact: Our eyes aren’t always in focus, either. They’re just really fast and efficient at going in and out of focus.

Anonymous 0 Comments

Some types of cameras can always be in focus, but the problem of focus comes from the physics of how your typical camera works.

In short, a large three-dimensional space must be projected onto a small two-dimensional image (the sensor). This is typically achieved by a combination of lens and mirrors. Let’s focus on the lens as the main mechanism.

The focus depends on the type/curvature of the lens, the position of the object, the position of the lens, and the position of the sensor. Notice that of these, when we move the focus ring, we only change the position of the lens. At an appropriate position for a nearby object, the far-away object is no longer properly focused; and vice versa.

The imagery here helps to illustrate this:

https://www.bhphotovideo.com/explora/photography/tips-and-solutions/how-focus-works

Anonymous 0 Comments

With a typical still or movie camera, you have a lens system that focus light from the field onto a flat sensor.

https://www.physicsclassroom.com/class/refrn/Lesson-5/Converging-Lenses-Ray-Diagrams

The diagrams here show light passing through opposite sides of a lens. If you narrow that lens opening further and further you get a pinhole camera: https://en.wikipedia.org/wiki/Pinhole_camera

But pinhole cameras are pretty dim because the hole that light passes through is so small. In photography this is the **aperture** component of exposure. The smaller the aperture the more that appears sharp. This is called **depth of field**. There is a tradeoff of much light passes through for a given amount of time. The other components are shutter speed (how long the film or sensor is exposed) and how sensitive said film or sensor is.

But why *should* everything be in focus with a camera? Shallow or deep depth of field can be an artistic choice. Portrait mode on smartphone cameras simulates the background blurring that’s otherwise only possible with larger lenses.

Anonymous 0 Comments

Because of physics, basically. The way light has to pass through your camera’s aperature and lens. It’s fairly hard to describe how a camera works in an ELI5 way, with no visual aids.

But to achieve the best possible chance of having most of the image in focus, you want to have bright light so outside and sunny and shoot images that are further away.

The less light you have, and if you have a photo that mixes really close stuff and far stuff together, it makes it nearly impossible to have everything in focus, without some specialized camera.

Anonymous 0 Comments

The camera is seeing the world through a circular lens and any light reaching that circle helps form the image. The right side of the circle sees the world from a slightly different point of view than the left side. The image you get is an average from every point of view on the lens.

Focus allows you to correct for the different points of view but it only works for a small range of distances. Objects within that range will be in sharp focus.

Big lenses have the worst problem because the range of points of view is greater. Lenses can be “stopped down” to let in less light and this makes focusing less critical; you have a greater “depth of field”. Stopping down will happen automatically in bright lighting conditions, so outdoor shots on a sunny day tend to be all in focus but, in a dark scene, focus is critical and more of the image tends to be blurry.

Anonymous 0 Comments

Stuff gives off light. Whether that’s an actual light source like an LED or just a regular object reflecting light, the light goes off in all directions.

When we take a photo, we are trying to get light from a particular “source” to hit a particular part of the camera sensor (film, chip, etc). But the light going in all directions means light would hit the sensor from everywhere, and we wouldn’t see anything. So we need to refine things.

One way to do this is to use a pinhole. You block the subject of the picture from the sensor by a board or sheet or something which stops the light getting through. Then, you poke a tiny hole in the middle of it. Because the light can only go in a straight line, stuff from the bottom left of the subject hits the top right of the sensor, and vice versa. The image is completely sharp and in focus. The problem with this is that very little of the original light gets in.

One way to fix this is to use a lens. This focuses bits of light that have come from the same place in different directions onto a single part of the sensor. Say you’re taking a picture of a tree. The light coming from the topmost branch goes in different directions and hits all different parts of the lens. But the lens bends it just enough to focus it so it all hits the bottom of the sensor. Similarly, light from the base of the trunk hits all parts of the lens but gets focused on the top of the sensor.

However, lenses focus light more or less depending on the distance the light is coming from. So even though the tree is in focus, light coming from behind the tree gets bent too much and tries to focus in front of the sensor, meaning it’s spread out by the time it reaches the sensor. Meanwhile, light from something in front of the tree doesn’t get bent enough and wants to focus *behind* the sensor, so it’s not yet in focus when it reaches the sensor.