Existing event-based structured light obtains a dense projector-camera correspondence from the timestamp of an event. It assumes that the projector scans a parallel raster and that the sensor timestamps each pixel independently, and we show that neither assumption holds. We obtain the correspondence from a temporal code that identifies the projector pixel directly and therefore needs no prior calibration, we calibrate the projector time map from the same recording, and we recover the geometry of the system and the offsets between its clocks by a spatio-temporal self-calibration in a preamble of a few seconds that needs no reference object and no second camera.
Figures & tables
Figure 1: Left: the capture setup, with the laser-scanning projector P , the measuring camera C and the verification camera C′ . Top right: iso-contours of the calibrated time map ϕ over the projector image, one every 0.5 ms, and the rows at which an ideal raster would place the same instants. The contours are tilted, the tilt changes with the row, and the two families separate by as much as 26 projector rows. Bottom right: ϕ minus the ideal raster. It reaches 457 μ s, whereas ϕ itself fits the measurements to 5.07 μ s rms.
Figure 2: The temporal code as it is received, from R1 of Table 1 . Left: the events of one block accumulated into an image of the measuring camera, with a magnified region in which the individual dots and the grid they lie on are resolved. A dot is brighter when its codeword carries more one bits, and the faint ring around it is the blurred edge of its image, where the step in brightness reaches the threshold in some frames only. Right: one dot of that block. The number of events it produces in each projector frame is either about twenty or none, so a single threshold recovers one bit per frame, and all four repetitions of the codeword reproduce the transmitted 32 bits exactly. The frames after them carry the white and dark phases between blocks.
Figure 3: The pattern in time, at the four scales it has, and the grid it carries. (a) The two ways of capturing. The time map is calibrated once per projector, from a recording of 64 blocks; a 3D capture sends one block as the preamble of Section 3.4 and then projects white while it measures. (b) One block, as the event rate of a recording measures it. The data phase is what the decoding of Section 3.1 reads, the dark phases delimit it, and the all-white phase is the one Section 4.3 uses to measure the scan. (c) The data phase carries the 32-bit codeword four times, one bit per frame, which is what lets a window of the length of the codeword find it wherever it starts. (d) The dots of one block sit on a grid of pitch 8, drawn here over the projector pixels, and the grid moves by one pixel from block to block, so the 64 blocks place a dot on every projector pixel in turn.
Scene
Blocks
White
Used in
R1
flat wall
64, 170 s
—
Sections 4.2 , 4.3 and 4.4
R2
box on the floor
64, 170 s
—
Section 4.4
R3
a second box
64, 170 s
—
Section 4.4
R4
flat wall
64, 168 s
—
Section 4.2
S1
flat wall
64, 170 s
10 s
Fig. 5
S2
sphere, 150 mm
S1 ’s
10 s
Fig. 5
Table 1: The recordings. The two middle columns give the number of identifier blocks and the length of the recording that carries them, and the length of the all-white recording. A block is one shift of the grid, and the 64 shifts of a long recording place a dot on every projector pixel in turn. S1 and S2 were recorded on the same day without moving the rig, so the blocks of S1 calibrate both. S4 holds its blocks and its measurement in one recording of 25 s, of which the first 8 s are the preamble.
Figure 4: The structure of the projector scan, measured under a full-white projection. Left: the rate at which the event time advances along each of 100 consecutive scan lines. It changes sign from one line to the next, which is the alternation. The one line drawn in orange is a window that straddles a line boundary, where the rate is not significant. Right: the iso-timestamp contours of the calibrated time map, in orange inside the projector image, and their extensions, which meet at the vertex of a pencil far outside it. A parallel raster would put these contours parallel and leave no vertex. The test is made in the coordinates of the projector, where an oblique view of the scene cannot produce the convergence.
Unit
Tilt, edge to edge
Vertex
Affine ramp
[deg]
[widths]
[ μ s rms]
A
−1.00 to +1.93
8.5
117.1
B
−1.52 to +1.63
7.9
127.4
C
−1.66 to +1.42
8.1
122.6
A , from Section 4.1
−1.41 to +1.49
8.5
118.5
Table 2: The fan on the three units of the projector we hold. A is the one used throughout the paper. Each iso-timestamp contour of the fitted ϕ is traced across the projector image and fitted by a straight line, as in Fig. 4 ; the vertex is where those lines meet, in frame widths outside the image. The last column is how far the fitted ϕ departs from the best affine ramp over the whole projector image, which is near but not equal to the fit residual of Table 3 . The last row is A calibrated from the dense recording R1 of Table 1 instead of in the later rig, which is the same device measured twice.
Model of ϕ
Parameters
Residual rms [ μ s]
Affine ramp (idealized raster)
3
119.34
Bivariate quadratic
6
27.48
Bivariate cubic (ours)
10
5.07
Fan: degree 1 in the angle at the vertex
4
31.79
Fan: degree 3 in the angle
6
31.52
Table 3: Time map models, fitted to the same 684,079 decoded dots. The idealized raster is the affine ramp a+bpx+cpy . The fan model is a polynomial in the angle at the pencil vertex: degree 1 carries one coefficient and degree 3 three, and each carries a constant and the two coordinates of the vertex as well, which is where the 4 and the 6 come from. The free constant per block is common to every model and is not counted.
Residual [mm]
Reference
Calibrated
Idealized
C + C′
map, P + C
raster, P + C
Whole frame, rms
1.51
3.07
8.88
Whole frame, 90th percentile
1.73
5.06
13.65
Inner quarter, rms
1.22
1.77
2.95
Outer quarter, rms
2.28
4.98
20.93
Table 4: Residual of a plane fitted to the reconstructed wall, which needs no reference reconstruction. The wall spans 851 by 496 mm and the fit uses 7,402,626 points; the 505 points that lie more than 50 mm from the plane of the reference are discarded as outliers, once, for all three columns. The regions are measured from the center of the frame toward a corner, and the percentile is of the absolute residual.
Figure 5: Quantitative evaluation of 3D shape reconstruction. Each row is one recording of one object. The first column is a photograph of the object, and the other three are depth maps rendered in the pixels of the measuring camera C : the reference reconstruction, from the two cameras, which does not use the time map at all; the measurement under test, from the projector and C with the calibrated time map; and the same measurement with the time map replaced by the best-fitting ramp, the idealized raster. The number in the corner is the median absolute difference from the reference, and the bar of the reference panel gives the color scale; both are in millimeters. The three depth maps of a row share that scale. Gray is depth outside the window, white the absence of a measurement. We can observe that the idealized raster bends the flat wall into a saddle.
Blocks
1
2
4
8
16
32
Time [s]
2.7
5.4
10.8
21.5
43.0
86.1
Corresp. [ 103 ]
10.9
21.6
43.5
85.3
174
328
Rotation [ ∘ ]
0.018
0.023
0.018
0.019
0.019
0.019
Baseline [ ∘ ]
0.035
0.051
0.034
0.043
0.049
0.052
∣t∣/d [%]
0.068
0.067
0.084
0.072
0.073
0.037
Table 5: Self-calibration from a prefix of the preamble, compared against the solution from all 64 blocks of the same recording. Median over 32 random prefixes of each length; the 90th percentile of an entry is at most four times its median.