SBOU157 September   2015 OPT8241

 

  1.   Voxel Viewer
    1.     Trademarks
    2. 1 Introduction
      1. 1.1 TI 3D Depth Sensors
      2. 1.2 Operating Principles
      3. 1.3 Voxel Viewer and Voxel SDK
    3. 2 User Interface
      1. 2.1 Menu Bar
        1. 2.1.1 File
        2. 2.1.2 Settings
          1. 2.1.2.1 Camera Profiles
          2. 2.1.2.2 Edit Profiles
          3. 2.1.2.3 Statistics
        3. 2.1.3 Windows
        4. 2.1.4 Help
      2. 2.2 Source Bar
      3. 2.3 Main Viewport
      4. 2.4 Left Pane
        1. 2.4.1 Side Viewports
      5. 2.5 Right Pane
        1. 2.5.1 Frequently Used Parameters Window
        2. 2.5.2 Parameter List Window
      6. 2.6 Bottom Pane
        1. 2.6.1 Watch List and Statistics Window
        2. 2.6.2 Data Flow Diagram Window
        3. 2.6.3 Logs Window
    4. 3 Basic Operations
      1. 3.1 Connecting Devices
      2. 3.2 Adjusting the Settings
      3. 3.3 Visualizing the Data
        1. 3.3.1 Ambient
        2. 3.3.2 Amplitude
        3. 3.3.3 Depth
        4. 3.3.4 Distance
        5. 3.3.5 Phase
        6. 3.3.6 Point Clouds
        7. 3.3.7 Histogram
      4. 3.4 De-Noising
        1. 3.4.1 Temporal Filters
          1. 3.4.1.1 IIR Filter
          2. 3.4.1.2 Median Filter
        2. 3.4.2 Spatial Filters
          1. 3.4.2.1 Smooth Filter
          2. 3.4.2.2 Bilateral Filter
          3. 3.4.2.3 Median Filters
        3. 3.4.3 Recommended Starting Point
    5. 4 Calibration
      1. 4.1 Lens Calibration
      2. 4.2 Frequency Calibration
      3. 4.3 Crosstalk Calibration
      4. 4.4 Nonlinearity Calibration
      5. 4.5 Temperature Calibration
      6. 4.6 Common Phase Calibration
      7. 4.7 Pixel-Wise Calibration
      8. 4.8 Profiles and Calibration
    6. 5 TFC Programming
    7. 6 Summary
    8. 7 References

Lens Calibration

Lens calibration aims at overcoming optical distortions introduced by the lens. In absence of any optical distortions, each pixel (uI, vi) can be converted to the equivalent world coordinates (xi, yi, zi) by applying the pin-hole camera model shown in Figure 22. The goal of lens calibration is to transform the distorted pixel coordinates to equivalent coordinates that can be used under the pin-hole camera model.

fig22_sbou157.gifFigure 22. Pin-Hole Camera Model

The process extracts a set of parameters commonly known as intrinsics that include nine values [k1, k2, k3, p1, p2, cx, cy, fx, fy], where [k1, k2, k3] are the radial distortion coefficients, [p1, p2] are the tangential distortion coefficients, and [cx, cy] are the coordinates of the image center, and [fx, fy] are the x and y focal distances.

The procedure takes several amplitude images of a checkerboard pattern, similar to the one shown in Figure 24. The checkerboard corners are extracted as data points used in computing the intrinsics through least-square minimization. Users wishing to learn about the theory behind lens calibration are encouraged to review the OpenCV tutorial link in the Reference section.

To perform lens calibration, first select SettingsEdit Profiles to bring up the profile window. Make sure the lens calibration checkbox is selected. Add a new profile by providing a new profile name, then click Next, and the lens calibration window as shown in Figure 23 displays.

fig23_sbou157.gifFigure 23. Lens Calibration Window

Lens calibration will require a flat, rigid checkerboard pattern like the one shown in Figure 24. Please contact TI for the checkerboard pattern. The checkerboard should be printed on A2 sized paper.

fig24_sbou157.gifFigure 24. Checkerboard Pattern for Lens Calibration

To start calibration, make sure the camera is running then click Add to bring up the image capture window shown in Figure 25. Some of the important considerations when performing lens calibration are:

  1. Filling the screen as much as possible with the entire checkerboard pattern
  2. Presenting the pattern in different poses—normally significant translation is not needed, it is more important to present the pattern at different orientations
  3. Keep the checkerboard pattern still while capturing is taking place. Multiple samples (default is 200 frames) will be captured and averaged to remove noise, before the corner points are extracted for calibration.
fig25_sbou157.gifFigure 25. Checkerboard Capture Window

One can verify whether a capture is good is by double-clicking on the captured image. Figure 26 shows a good captured image. A good capture will have a zig-zag colored pattern going through all the corner points overlaid on top of the image. If the scan pattern is in entirely in red, or if the image showed no overlaying pattern, then the capture is not good, and the captured image must be discarded and a new capture repeated.

fig26_sbou157.gifFigure 26. Example of a Good Capture

After capturing at least 8 different views, something equivalent to the following window should result. Now click Calibrate to compute the intrinsic parameters, which will display at the bottom left-hand-corner. Click Next to conclude lens calibration.

fig27_sbou157.gifFigure 27. Lens Calibration After 8 Captures