Abstract
Introduction
Over recent years a lot of effort has been devoted to research and development of range sensors. These are widely used in numerous applications in medicine, industry, defence, automotives, robotics, and home entertainment. The majority are based on active optical-range measurement techniques [1, 2], which involve the projecting of structured light patterns onto a scene with further reconstruction of the range map by measuring the temporal or spatial distribution of the reflected light. These methods are efficient in controlled disturbance-free environments. The lack of cost-efficient and robust solutions suitable for work in real-world environments motivated our prior work [3, 4], where we introduced the concept of modulated acquisition of

Laser triangulation principle and modulated imaging system scheme
Thus, distance detection in this method relies on determining the coordinates of the illuminated pixels and the index of line (i.e., angle
The classical approach is to try to detect the illuminated pixels in plain snapshots taken from the sensor. This approach is sensitive to external light sources which can overpower the laser and cause erroneous results. Our improvement (pixel intensity modulation controlled by pseudo-random binary sequences) makes pattern detection more robust. Pattern parsing, i.e., robust segmentation and indexing of the detected lines, is a subject for further study. Promising approaches to 3D reconstruction based on multi-line patterns are considered in [6, 7]. In this paper we focus only on the performance of modulated imaging systems, which should produce sharp and accurate images of the projected patterns used as input data for further 3D transformation that is beyond the scope of this paper.
In prior work we showed the efficiency of using
In this work we propose suitable system-specific spreading codes in order to extend the system capacity. Furthermore, we demonstrate the application of the selected codes in the real environment.
The paper is organized as follows: in Section 2 the model of modulated imaging system is introduced. In Section 3 the system-specific requirements for modulation codes are identified, while the proposed codes' design and performance evaluation methodology are presented in Section 4. In Section 5 the experimental set-up and conditions are given. In Section 6 the experimental results are demonstrated. Finally, the concluding remarks and further work are given in Section 7.
Essentially, active optical range sensors are advanced devices which emit electromagnetic energy in the visible or IR spectrum and utilize the reflected energy for 3D reconstruction of the scene surface. Range data (or
Let us define
Such a system can be built upon a CCD or CMOS sensor supplemented with an electronically triggered laser as depicted in Figure 1. Both laser and sensor may operate in either the visible or the IR spectrum. A diffractive optical element is installed at the laser's emitter in order to form a desired pattern. The laser is triggered synchronously with the electronic shutter of the sensor when the snapshot is being taken.
The robustness of such an imaging system (i.e., its ability to produce sharp images of the projected pattern) is directly related to the laser's power. Unfortunately, increasing the laser's power is problematic because of high energy consumption and eye safety issues. In addition, the high laser power does not solve the problem of mutual interference from nearby systems. Better results can be achieved with an identical or even a weaker laser by applying a
where
Thus, pixels of inactive sub-frames (
The greater the parameter
A similar effect of raising the
Our imaging system can be considered as an
Consider
The interference as the resulting pixel intensity at the hypothetical intersection of all interfering projections (as seen by the distinct detector) is evaluated by introducing the contribution of
It is self-evident that in order to minimize
Ideally, modulation sequence should exhibit a specific type of
where
Frame collisions can be detected in several ways during image processing. For example, a drastic rise of “white level” in a histogram or unexpected number of lines in multi-line pattern could be detected. Efficient error-recovery strategy in this case involves dropping the erroneous frame and introducing a random (several sub-frames long) delay before restarting the frame integration cycle.
If the sequence is not perfect but provides at least a constantly low level of out-of-phase correlation, it can be considered
where
Error probability
The recommended approach for minimizing this error involves introducing a proper threshold for pixel values below the accepted noise level before detecting the frame collisions. A recovery strategy is to extend
Hunting for perfect sequences, i.e., sequences with zero out-of-phase periodic
We examined some known modulation codes with almost-perfect ACF, including Barker codes [18] and Wolfmann codes [19], and concluded that none of them satisfy our specific criteria for both optimal periodic bipolar-unipolar correlation and balancing.
However, m-sequences were found to be promising candidates because of their perfect

Bipolar-unipolar correlation (
The only challenge is balancing, since the binary m-sequences are of odd-length
Our approach to code balancing uses Manchester encoding: each “1” symbol of the original sequence is replaced with the combination of “−1;+1” while “−1” (or “0”) is replaced with “+1;−1”. By applying this transform to an m-sequence of length

Bipolar-unipolar correlation (
Obtained MEMS sequences can be compared to COWHC codes of similar widths evaluated in prior work. According to conducted numerical simulations the newly proposed design based on MEMS sequences can accommodate more units than the previous design until
Low
We performed computer simulations to compare
The simulation results are depicted in Figure 4, showing that the capacity of the system using MEMS codes outperforms the system with COWHC codes. The difference in system capacities is increased by increasing the number of bits in the sequences.

Error probability (
In the experiments we demonstrate the background light and the mutual interference suppression effects, described in the previous chapters.
The experimental set-up demonstrating the discussed principle of modulated imaging is depicted in Figure 5. It was built around a commercially available industrial camera (Velociraptor, Optomotive Mechatronics Ltd, Ljubljana, Slovenia) [20] based on a high-speed CMOS sensor (CMOSIS CMV2000). The camera makes a series of snapshots at a high frame rate (up to 600 fps) with a short exposure time. A specifically programmed FPGA processing core performs in-camera frame integration as discussed in Section 2. Each pixel of the frame is calculated as a sum of the corresponding pixels of

Experimental setup
The scene is illuminated using a modulable 650 nm LED laser combined with a DOE (diffractive optical element) projecting a pattern of parallel horizontal lines. The resulting frame rate for the 30-bit-long modulation code is ca. 22–24 fps.
During the experiments we took a series of snapshots from the live view of the camera in different illumination conditions and with the presence of a nearby detector.
The background light suppression experiment was conducted indoors in normal daylight conditions first. Next, the experiment was conducted outdoors in sunlight.
A mutual interference suppression experiment was conducted indoors with the presence of a second detector. In the first part of this experiment the detectors were modulated by a non-optimal pair of orthogonal codes. In the second part of the experiment both detectors were modulated by the same MEMS code proposed in this work.
In the first series of the results we demonstrate the background light suppression effect of the proposed active imaging system. Snapshots from the indoor live footage are shown in Figure 6, while the snapshots taken outdoors are shown in Figure 7.

Backgroung light suppression effect indoors. Plain-view snapshot (up) and demodulated-view snapshot (down).
As expected, a remarkable effect of real-time background suppression is achieved – only the pattern itself is present in the live footage, while the objects and the background are suppressed completely.
In the latter case it is clearly seen that even if laser illumination seems completely overpowered by the sunlight and is not clearly visible to the naked eye, the introduced approach allows us to amplify the tiny differences induced by the laser such that the resulting image captured outdoors (Figure 7) is of satisfactory quality for further pattern recognition.

Background light suppression effect outdoors. Plain-view snapshot (up) and demodulated-view snapshot (down).
The second series of results demonstrates mutual interference of the two detectors currently available to us. Figure 8 demonstrates the influence of a nearby detector when the detectors are modulated by a non-optimal pair of orthogonal codes. In the demodulated-view snapshot the interference is clearly observed. Visually, a similar effect is produced by any other non-optimal pair of modulation codes, or when optimal MEMS codes operate in-phase (synchronously activated).

Interference of nearby detector with non-optimal modulation code. Plain-view snapshot (up) and demodulated-view snapshot (down).
Finally, we tested the proposed MEMS modulation codes and achieved satisfactory results with out-of-phase operation. There is no noticeable interference present in the live footage (Figure 9) when the MEMS code operates normally (out-of-phase) with the applied threshold.

Interference of nearby detector with optimal modulation code. Plain-view snapshot (up) and demodulated-view snapshot (down).
This work has discussed the principle of modulated active imaging and its non-orthogonal design. The proposed approach can be considered optimal for development of fail-tolerant self-adapting active sensing systems with non-fixed number of units when it is not technically possible to coordinate the system centrally or provide each unit with a unique predefined modulation code. With the proposed approach, a greater number of users (i.e., greater system capacity) can be achieved than with the prior (orthogonal) design. A possible disadvantage of the proposed solution is the requirement for thresholding the low-intensity pixels, which may be induced by partial (in-chip) coincidence with the main peak or secondary peaks of correlation with the interfering signal, and thus may lead to loss of density of distant objects in the resulting range map. However, it can still solve the application-critical task of robust detection of the nearest obstacles in the presence of interfering devices. Improvement of the proposed system may be achieved by increasing the length of the modulation sequence or searching for sequences with better bipolar-unipolar correlation properties.
