HOME   FORUM   GALLERY

(click here to get to DAVID 2.x User Manual)

DAVID 3.x User Manual Pages

Structured Light Scanning

Introduction

Structured Light Scanning (SL) is 3D scanning with a video projector instead of the laser. DAVID will use the video projector to project a number of stripe patterns onto the object. The camera will watch that from a different point of view (above, below, left or right of the projector) and take (at least) one image of each pattern. Based on the deformations of the stripe patterns in these images, DAVID will compute a precise 3D mesh of the object surface.

Camera calibration is the same as for laser scanning. Scanning however is much faster and simpler:

  • Calibration panels can be removed after camera and projector calibration
  • No moving parts
  • One click only
  • Scan takes only a very few seconds

Mobile scanner: It is easily possible to mount camera and projector with a fixed distance to one stand (e.g. tripod). Once calibrated, this mobile scanner can be moved and scan anywhere, as long as camera and projector remain fixed and their optics remain unchanged.

Step 1: Projector Setup in Microsoft Windows

Connect your projector to your PC (usually via VGA, DVI, HDMI, or DisplayPort).

Short story: Set up your projector as extended desktop (screen 2). Set both your monitor and projector to their respective native resolution. Go to Step 2.

Long story: Windows does not make a difference between a projector and a monitor: Both are “screens” or “displays” with a certain resolution. It can be set to show the same content on both (clone), or different content (extended desktop) that expands from one screen to the other. That's what we need! Icons, program windows and mouse pointer etc. can be placed on either screen, or moved from one to the other. The only thing that is “cloned” on both displays is your desktop background image.

Fast version: In Windows 7, you can press Win+P to get a menu like this. Choose “Extend”, usually then you are done:

In any Windows version, you can right-click on your desktop and choose “Properties” or “Screen Resolution” (depending on your Windows version). Choose “Extend”, and set each display to its native resolution (maximum). You can click “Identify” to see which is which. Also you can choose which is your “main display” (should be your monitor).

Move your mouse pointer around toward the display borders to see how it leaves one display and appears on the other. You can move any windows, desktop icons or even the taskbar where you want, but usually you will want them all on your monitor.

We recommend to disable all filters that your projector may have for image “improvement”, like increased sharpness or contrast, frame interpolation etc.

Step 2: Hardware Setup

Choose a calibration pattern that fits your object size / desired scan volume. If possible, place the object in the corner and let the camera and projector point into the corner.

The projector must be placed left, right, above or below the camera (e.g. the projector on the table and the camera well spaced above the projector, or next to it, or…). The illumination should be similar to the camera view, at least cover the calibration corner area that you want to scan later. Structured Light is based on triangulation, so many things are similar to laser scanning. Please make sure that you have a sufficient triangulation angle between camera viewing axis and illumination axis.

  1. Start DAVID 3. (Be sure to use the latest version, at least 3.2.)
  2. If the DAVID window appears on your projector, move it to your monitor (click and hold on title bar…).
  3. In “Hardware Setup”, choose “Structured Light Setup”.
  4. Below that, set the Screen ID so that the stripe pattern is shown by your projector (usually: 2).
  5. Under “Camera:” select your camera model. You should then see its live image.

  6. DAVID projects a pattern with circular smooth “sine wave” stripes and a cross of sharp black+white lines.
  7. Adjust the projector so its image covers the whole object, but not too much space around it.
  8. Adjust projector focus so that the black+white lines are sharp on the object.
  9. Adjust the camera so that it sees the whole object, but not too much space around it.
  10. Adjust camera focus so that the object and the projected sharp lines are also sharp in the camera image.

  11. DAVID displays three horizontal and three vertical red profile lines showing measured intensity curves.
  12. In DAVID, set projector brightness to maximum, using the slider at the top. Set camera exposure so that these curves show “clean” shapely sine waves and the whole image is constant and does not flicker/pulse. The sine waves must never be truncated at the top or bottom. Depending on your camera / projector combination, this can be easy or fiddly… for some camera/projector model combinations it can be helpful against flickering to set the exposure time to exactly 1/30s or 1/60s.
    If you cannot get a clean, undistorted sine wave, decrease the projector brightness.

This image shows a perfect setup:
good sine wave profile lines(red)

On the following image the sine waves are distorted (over-saturated). This will cause waves in the scan result. Avoid this by decreasing camera exposure or brightess. If that is not possible, you can decrease the projector brightness with the slider at the top.
oversaturated

The next image is too dark. In this case increase camera exposure and/or brightness.
undersaturated

Step 3: Camera Calibration

Remove the object from the scene, so the camera can see the calibration corner. It does not need to see ALL markers.

At the left, open the Camera Calibration menu, enter the correct calibration scale, and calibrate your camera. Fore more information please see this page.

Step 4: Projector Calibration

Structured Light Menu Like the camera, the projector must be calibrated, i.e. DAVID must know its location, viewing direction, focal length, lens distortion etc. We use the same calibration panels like for camera calibration. The markers are not used, but the flat panels must be at the same position as during camera calibration! So we recommend you to perform camera and projector calibration always in succession without moving anything.

At the left, open the Structured Light menu. There are presets “Quality”, “Default”, and “Speed” that mainly influence the number of patterns used for scanning. A larger number of patterns usually gives better scan quality at the cost of a longer scanning time. For most cases “Default” is recommended.

Click “Calibrate Projector” and wait a few seconds. The whole pattern sequence will now be projected and captured by the camera. After a while you should see a debug image popping up that shows a phase error (i.e. phase deviation & compensation curve). This image is not easy to interpret so do not hesitate to close it. If you are and advanced user and try to optimize your SL results, please read "How to interpret the Phase Deviation & Compensation Curve".

Afterwards, your scanner is calibrated! You can remove the calibration panels, but keep your camera and projector fixed to each other and don't change the optics (focus, zoom).

Once you move camera or projector, or change focus (e.g. if you want to scan something much smaller or larger), or if you are not sure, you will have to calibrate the camera and the projector again.

Step 5: SL Scanning

Place the object in front of the scanner, or (mobile scanner) place the object in front of the object / region of interest.

Click “Start”, wait a few seconds, there is your scan result!

If you activate “Auto. grab texture”, DAVID will grab a texture for this scan immediately after the scan. It will use the camera and projector settings that you have set previously in the Texturing Menu, so it is recommended to go there first and adjust the settings.

Please note that good scan results are only possible for object sizes and at distances in front of the scanner that are similar to the conditions during calibration. If you need to scan much larger or much smaller spaces, you will have to set up and re-calibrate camera and projector (usually with a larger or smaller calibration pattern) for best results.

SL Parameters

Usually you don't need to worry about these parameters. Just choose one of the Parameter Presets “Quality”, “Default”, or “Speed”, depending on your requirements.

There are several SL parameters that you can change (some in Advanced Settings). Most influence the Total Number of patterns, and thus the scan time and quality. In general: More patterns = more time, but better results. When you change a parameter, you will usually have to calibrate the projector again. Here are the ones you might want to play with, the most important ones are bold:

  • Pattern ID: Only to help you with the setup. Will run automatically during calibration and scan.
  • Orientation: Will be set/recommended automatically.
  • (important) Frequencies: As you see, the stripe patterns have different stripe widths (frequencies). Choose a higher number of Frequencies to get finer results. The maximum depends on your projector and camera resolution! The stripes in the finest pattern should still be clearly distinguishable in the camera image.
  • Brightness = “Projector Brightness”: Reduce only when you can't get shapely sine waves otherwise.
  • (important) PatternHoldingTime: How long each pattern is projected. The camera needs some time to capture it. You can try lower values to speed up the scan, but be sure that each pattern is correctly captured by the camera.
  • (important) CodedLight→Inverse: Projects each stripe pattern (frequency) also inverted. Switch off to speed up the scan by nearly factor 2, at a slightly lower scan quality.
  • PhaseShift→Shifts: Number of sine wave patterns. 6 is a good compromise. Higher values may slightly improve scan quality. Lower values may cause waves in the scan result.
david3_user_manual/structured_light.txt · Last modified: 2011/12/19 10:45 by simon
Back to top

Disclaimer: Please be advised that nothing found here has necessarily been reviewed by people with the expertise required to provide you with complete, accurate or reliable information. DAVID-Laserscanner Wiki cannot guarantee the validity of the information found here. The content of any given article may recently have been changed, vandalized or altered by someone whose opinion does not correspond with the state of knowledge in the relevant fields.
DAVID-Laserscanner Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0