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.

Structured Light 3D Scanning

Step 6Capture and Decoding

Capture and Decoding
«
  • 3720257253_bd1a060098_b.jpg
  • three-phase-decoding-parameters.gif
Capture
With everything in place and calibrated, set your resolution to 1024x768 and open up the three cosine images and display them full screen, one at a time. Most operating systems have a built in image viewer that will let you use "slide show" mode and step forward manually. Zoom in your camera if necessary. Focus the projector on the subject, not behind them. Try to match the example images as much as possible.

Decode Setup
Once captured, transfer your images to the computer and resize them, reorienting them to portrait if necessary. 480x640 is a good size to start with. That might sound small, but remember: this is 300k points, or 600k triangles! Rename the images to "phase1.jpg", "phase2.jpg", and "phase3.jpg" and replace the example images. Make sure the images are in order. It's not important which one comes first, just that the pattern moves gradually in 2π/3 steps from image to image.

Decode Parameters
There are three decoding parameters: noise threshold, zskew, and zscale. Both zskew and zscale are dependent on the projector-camera configuration, and the noise threshold depends on the brightness of the subject as well as the ambient light. In other words, once your camera and projector are in place, you only need to tweak zskew and zscale once. zskew and zscale are related to the two measurements described in Step 1 (distance between camera and projector, and angle between camera and projector).

First tweak the noise threshold so that anything that's too dark to decode doesn't affect the decoding. Anywhere from 5-20 is a good starting point. Then modify the zscale so the points have some depth. Make sure the depth is in the right direction, and that your subject isn't flipped left-right (or really inside-out, like a mirror). Finally, modify zskew so the points are slanted correctly. If your camera is looking down slightly towards a vertical wall, the wall should lean forward slightly. Changing the decoding parameters is an iterative process: sometimes you have to get one right before you can see how to change the others.

« Previous StepDownload PDFView All StepsNext Step »
11 comments
Jan 23, 2010. 9:19 AMcarolinevfx says:
 Does the projector need to be set at 1024x768 or the camera or the computer? 
Jan 11, 2010. 12:41 PMCapsfan09 says:
im sorry to have so many questions, but when i try to replace the pictures in the three phase file and open it up, the window comes up white and the second window wont open eaiter
Jan 12, 2010. 7:28 PMCapsfan09 says:
is it possiable that the image is too large?
Jan 13, 2010. 2:25 PMCapsfan09 says:
how would i resize the photos?
Jan 6, 2010. 2:37 PMCapsfan09 says:
(removed by author or community request)
Jan 8, 2010. 8:48 AMCapsfan09 says:
found it thanks

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!
111
Followers
6
Author:kylemcdonald