3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

DIY Camera Array 2: Computational Refocusing With Just One Camera

DIY Camera Array 2: Computational Refocusing With Just One Camera
DIY Camera Array 1: Computational Photography Primer.
DIY Camera Array 2: Computational Refocusing With Just One Camera.

You don't need to register to download the PDF because I have made them available here and here.

This Instructable is a primer on the field of Computational Photography, which is a new field of research that is developing extremely powerful cameras. These cameras allow the Depth of Field, the object in focus, and the position of the camera to be modified after the picture is taken. None of those things are possible with a traditional camera.

We show how to build one kind of computational camera -- a light field array. There are many other designs out there.

Before you go to all the trouble of building your own array, you should know that you can play with computational refocusing with just one camera.




You can think of it like this: 12 cameras taking a picture in a row is the same as 1 camera taking 12 pictures in a row.



Can work like this:



What you need:

A digital camera. (Any kind is fine)
A clamp.
A ruler, T-square, or meterstick.
A table or flat surface.
Patience.
Time.
LFTEXTURES.

 
Remove these adsRemove these ads by Signing Up
 

Step 1Oh Man Here Comes Some Theory; Stick With Us.

Oh Man Here Comes Some Theory; Stick With Us.
There are many methods to achieve computational refocusing. We do it the simplest way.

I'm going to try to explain this intuitively and imprecisely, because the mathematical definition has been well explained elsewhere.. First of all, light field imaging treats light as rays, each with a direction and intensity. So think of the light around you as a bunch of long thin rays traveling through space. They shoot around in all directions, all the time, reflecting off things, refracting through glass, air, water, etc.

What we want to do is select certain light rays from certain angles to form our final image. To do this, first we need to actually capture rays which are coming in from different angles.

It goes without saying that the most obvious way to capture rays from different angles is to measure them from different points in space. What is not so obvious is how to recombine these intermediate images into the final, refocused image.

Let's try to think of this in terms of cameras. Imagine you have an object sitting on a table. You have a camera centered on it. You take a picture.



When you move the camera left and right, the object moves right and left in the image, respectively.



Think about this for a minute -- by looking at the object like this, you have captured different rays of light moving in different directions from the surface of the object. And in the extremes of the left and right image, you can actually see around the object a little bit. If you took enough pictures, you could "see through" the object by choosing only the rays of interest.



The clever trick here is that by placing our cameras at exactly the same distance apart every time, we "know" the angle of incoming rays relative to each other. We don't know them in an absolute sense (like in radians or degrees), but that's not really very important -- if we overlay the images and shift them all relative to each other, we "select" different rays by blurring out the ones we're not interested in.

In other words, the important thing is that by making the distance between the cameras the same every time, we automatically preserve the angular relationships between incoming rays.


ý
« Previous StepDownload PDFView All StepsNext Step »
11 comments
Apr 18, 2011. 8:51 PMwestender says:
Getting back to the aerial use of this, as in googleearth, for example, this could be used to erase peple and vehicles, no?
Oct 19, 2010. 10:42 AMVadimS says:
Thought I should mention it's worth using a camera capable of setting everything manual, or using CHDK on a Canon so that the images are consistent.
Same exposure, white balance etc.
Dec 21, 2009. 8:47 PMUncle Kudzu says:
it would be interesting to see some aerial computational photography.

i have seen overlapped stereo flight lines (large format conventional photography) that yielded some information for mapping purposes, and it seems like something similar done with your camera array might be useful for that sort of thing.
Dec 21, 2009. 4:11 PMPS118 says:
Great stuff, and 1000 bonus points for the free software!

I've seen some of the research before, and I seem to recall one sensor with multiple lenses.

Since then I've wondered about those bug-eye viewers kids play with.  Granted they're cheap plastic, but I wonder if you could get any worthwhile data if you fitted one to a camera??

Example:
http://www.physlink.com/estore/cart/FlyEyeViewer.cfm
Dec 19, 2009. 11:17 AMUncle Kudzu says:
hmmm... so every single thing in the photograph(?) is in focus in some way? looks like a shifting depth-of-field in the animation.

any use beyond being very interesting? could you make a single image with infinite depth-of-field, for instance?

thanks for sharing this!


Dec 19, 2009. 11:14 PMmikeasaurus says:
"could you make a single image with infinite depth-of-field, for instance?"

Couldn't you achieve this by keeping the camera stationary and just taking photographs as you refocus, then import to PS and compile the image?
Dec 20, 2009. 9:43 AMmikeasaurus says:
Judging from the images you've shown here I'm not "seeing through" anything. As Uncle Kudzu mentions, is there a practical application for this? If you're attempting to see through, or see around someone wouldn't it be easier to just use 2 cameras set apart to create a stereoscopic image?

Maybe in the intro you could go into some detail about what the aim of this technique is, and the advantages and disadvantages.

Dec 20, 2009. 1:01 PMmikeasaurus says:
"This method captures and exploits angular information and allows lots of control in post as a result. Depth of field, the object in focus, and position of the virtual camera are all able to be somewhat modified after the picture is taken. None of those things can be done with a traditional camera."

This is what should be included in your intro.



Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
141
Followers
5
Author:daniel_reetz
Hacker, Artist, Researcher, and founder of the diybookscanner.org community.