Next Article in Journal
Poly(1-Napthylamine) Nanoparticles as Potential Scaffold for Supercapacitor and Photocatalytic Applications
Previous Article in Journal
Investigation of the Physical Mechanism of Acoustic Attenuation in Viscous Isotropic Solids
Previous Article in Special Issue
All-MEMS Lidar Using Hybrid Optical Architecture with Digital Micromirror Devices and a 2D-MEMS Mirror
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Real-Time CGH Generation by CUDA-OpenGL Interoperability for Adaptive Beam Steering with a MEMS Phase SLM

James C. Wyant College of Optical Science, University of Arizona, 1630 E. University Blvd., Tucson, AZ 85719, USA
*
Author to whom correspondence should be addressed.
Micromachines 2022, 13(9), 1527; https://doi.org/10.3390/mi13091527
Submission received: 28 July 2022 / Revised: 2 September 2022 / Accepted: 13 September 2022 / Published: 15 September 2022
(This article belongs to the Special Issue Beam Steering via Arrayed Micromachines)

Abstract

:
Real-time, simultaneous, and adaptive beam steering into multiple regions of interest replaces conventional raster scanning with a less time-consuming and flexible beam steering framework, where only regions of interest are scanned by a laser beam. CUDA-OpenGL interoperability with a computationally time-efficient computer-generated hologram (CGH) calculation algorithm enables such beam steering by employing a MEMS-based phase light modulator (PLM) and a Texas Instruments Phase Light Modulator (TI-PLM). The real-time CGH generation and display algorithm is incorporated into the beam steering system with variable power and scan resolution, which are adaptively controlled by camera-based object recognition. With a mid-range laptop GPU and the current version of the MEMS-PLM, the demonstrated scanning speed can exceed 1000 points/s (number of beams > 5) and potentially exceeds 4000 points/s with state-of-the-art GPUs.

1. Introduction

Laser beam steering (LBS) by using spatial light modulators (SLMs) has been adopted for a variety of scientific and industrial optical instruments and applications such as optical tweezers, optical switches [1,2], optical communication systems, and lidar [3,4,5]. In LBS applications, computer-generated holograms (CGHs) displayed on a spatial light modulator (SLM) alter the phase and amplitude of illumination and, consequently, a diffraction pattern is manipulated. With a phase light modulator (PLM), the diffraction efficiency of a CGH for beam steering outperforms that of an amplitude-based CGH. In this regard, a phase CGH is suitable for applications with high optical throughput such as beam steering for lidar [3,4,5]. Phase-based light modulation is commonly employed by SLMs such as a Liquid Crystal on Silicon (LCoS) SLM [6]. In particular for lidar applications, the device area (A) is a critical aspect since the maximum detectable range scales with √A [7]. Despite the large device area of LC-based devices, the slow response time of liquid crystal polymers limits the speed of beam scanning (frame rate) to up to hundreds of Hz [8]. Moreover, linear polarization is required for a LCoS SLM. Due to the scattering of object surface, returning light from objects is not completely linear even when linearly polarized illumination is employed for a lidar transmitter. The polarization requirement reduces the photon throughput at least by half. The limited frame rate and polarization prohibit LC-based SLM devices from high-speed and high-efficiency beam steering applications.
A reflective and Micro Electro-Mechanical System (MEMS) SLM and PLM have recently become available [9,10]. MEMS-SLMs are uniquely positioned in terms of device area, operation speed, and diversity in polarization for a lidar transmitter and receiver. Commercially available MEMS-SLMs, such as the Digital Micromirror Device (DMD) accommodates an array area of over 140 mm2, operating at a tens of kHz frame rate [11]. The MEMS-PLM modulates phase by piston motion of micromirror array; therefore, no polarization specific illumination is required. Beam steering by SLMs, however, including the MEMS-PLM, suffers from a relatively narrow scanning angle, on the order of λ/d, where λ and d are the wavelength and the pixel period, respectively. Recently, over 48 degrees of angular throw by diffractive beam steering is demonstrated by employing unpolarized short-pulse illumination in a synchronous manner to the movement of the MEMS mirror array of the DMD [4,12]. Combination of two scanning modalities with pulsed illumination increases number of scanning points while not sacrificing the fast refresh rate of MEMS-SLMs [13,14]. As those works indicate, with the large Etendue (product of area and angular throw) of arrayed MEMS-SLMs, laser beam steering is feasible with a high frame rate, a wide field of view, a large device area (consequently increased range for object detection), and a lower laser power density satisfying eye safety regulation.
In addition to MEMS-SLMs’ high speed, large beam area, and large angle scanning operation, random access steering makes MEMS-PLMs even more attractive. Instead of scanning the entire field of view (FOV) in a sequential manner, beam is steered into and scans the vicinity of the object. Such random-access scanning increases the scanning rate and the number of beams/s. The other interesting use case is camera-assisted and foveated lidar. For example, positions and relative distances among multiple objects are first estimated by using a camera. Based on the estimation, the MEMS-PLM steers beams into multiple objects to measure precise distance information. The camera–lidar hybrid object detection makes the lidar system more adaptive; consequently, it solves challenges in lidars such as a strong reflection signal from retro-reflective objects, i.e., traffic signs. Additionally, the dynamic range of a lidar detector can be effectively increased by pre-adjusting the beam intensity to objects, based on the initial estimation of the relative distance of objects by camera. In this way, the signal levels returning from the multiple objects are equalized.
Foveated camera–lidar interoperability solves major challenges for lidar; however, it requires a fast and real-time calculation and display of a CGH without resorting to the iterative CGH calculation algorithm, along with interfacing the algorithm to the camera-based object detection. Such fast and non-iterative calculation of CGHs displaying simple objects such as line is reported by using a look-up table, and deep learning. For a more complex image, a single FFT-based CGH calculation is reported [15,16,17]. A real-time CGH generated for displaying a relatively complex structure is also reported [18]. Along with those works, we address the challenge in particular on CGH generation for diffractive beam steering: generating a simpler pattern, such as multiple beams while varying the beam intensity of those beams based on an input from camera. The whole process is performed in real time and satisfies the frame rate requirement of a modern lidar system.
In this paper, we address each of the building blocks of the foveated lidar framework in particular by using a recently developed high-speed phase MEMS-PLM, the Texas Instruments Phase Light Modulator (TI-PLM). In Section 2, we discuss the real-time CGH calculation algorithm for adaptive and multi-ROI (region of interest) beam steering with a variable beam ratio by GPU-accelerated CUDA-OpenGL interoperability. Benchmarking results in CGH computation and the display speed is reported. In Section 3, the integration of multiple object recognition and estimation of mutual distance by a deep learning model (YOLOv4-tiny [19]) is addressed along with beam steering by using the information. Real-time multi-point and variable beam ratio beam steering is demonstrated and discussed in Section 4. In Section 5, we address controlling the power ratio in multi-point beam steering by simulation and experiment. Finally, the limitations and scalability of the approach for lidar with adaptive laser beam steering are discussed.

2. Multi-Point and Variable Beam Steering Implemented in CUDA-OpenGL Interoperability with the TI-PLM

Adaptive and foveated beam tracking with the TI-PLM involves three building blocks: (1) GPU-based calculation of a CGH for multi-point beam steering, (2) CUDA-OpenGL interoperability to display a CGH on the TI-PLM, and (3) AI-based and real-time multiple object recognition by camera.

2.1. A CGH for Multi-Point and Variable Beam Ratio Steering

The TI-PLM is a MEMS-based reflective phase light modulator [9,10]. The phase is modulated by a 960 × 540 pixel array of micromirrors with a pixel period d = 10.8 um with piston motion. The maximum phase modulation depth of the current generation of the PLM is 2π at 633 nm (Figure 1a).
The incident plane wave to the PLM is diffracted by the phase modulation in tilt across the PLM plane. Equivalently, a lateral shift of the focused spot is observed at the back focal plane of the lens placed between the PLM and the image plane. The lateral shift of the beam Δ x k ,   Δ y k is related to the phase of the SLM k x h ,   y h by,
ϕ k x h , y h , Δ x k ,   Δ y k   = 2 π λ f Δ x k x h + Δ y k y h   m o d   2 π
where x h ,   y h is the pixel coordinate of the SLM and Δ x k ,   Δ y k is a lateral shift of the beam with respect to the 0th-order beam indexed by k at the image plane of a focusing lens. F is the focal length of the lens. The maximum displacement Δ x k 2 + Δ y k 2   is limited by the wavelength λ and the pixel pitch d and is given by λ f / 2 d .
We consider steering the beam into multiple points on the image plane while varying the power of each of the diffracted beams. Assuming a plane wave with unit amplitude illuminates the TI-PLM, the modulated field is given by,
ψ x h , y h , Δ x k ,   Δ y k   = k = 1 n A k e j ϕ k
For a phase-only MEMS-SLM, the phase θ of the hologram is given by,
θ x h , y h , Δ x k ,   Δ y k   = arg   k = 1 n A k e j ϕ k  
So far, we know the phase on the hologram plane to generate multiple points on the image plane. To decrease the computational time, Equation (3) can be re-written as,
θ x h , y h , Δ x k ,   Δ y k   = tan 1 k = 1 n A k sin ϕ k k = 1 n A k cos ϕ k
Equations (3) and (4) generate identical phase holograms. However, with Equation (4), the computational time is substantially decreased. Equation (4) indicates that phase at each pixel coordinate ( x h , y h ) is independently calculated by summation operation. Due to the large amount of independency and low complexity in the computation of phase θ, the phase of each pixel can be processed in parallel by using CUDA (Compute Unified Device Architecture) with a GPU (Graphic Processing Unit) [20,21]. Further, a substantial part of rendering of a CGH and streaming them to the TI-PLM is also handled by the GPU by CUDA-OpenGL interoperability while applying a CGH rendering scheme specific to the TI-PLM [5,22]. In this manner, data transfer required between the CPU and the GPU is minimized; consequently, the CGH computational time and display time are drastically decreased.

2.2. Parallel Processing of CGH Calculation

CUDA is a parallel programming platform introduced by NVIDIA to access GPU resources by organizing threads, blocks, and grids for CUDA kernel functions. In CUDA, a grid is composed of a set of blocks, and a block is composed of a set of threads. One thread is a unit of parallel processing in the GPU that handles calculation of the phase of a single pixel (Figure 2). Since the TI-PLM has 960 × 540 physical pixels, we allocate (32, 30) threads in a single block, and (30, 18) blocks in a grid, which results in (960, 540) threads, and the CGH of (960, 540) pixel area is generated.
The pixel position ( x h ,   y h ) and the index of the blocks and threads in a block are related by the parameter set of (threadIdx.x, threadIdx.y) as the thread index, (blockDim.x, blockDim.y) as the number of threads in a block, i.e., (32, 30) in our case, and (blockIdx.x, blockIdx.y) as the indices of the blocks. Phase values ϕ k x h , y h , Δ x k ,   Δ y k   for a given ( Δ x k ,   Δ y k ) is computed in a distributed manner. Computational results at each of the pixel positions ( x h , y h ) are compiled by using indices and are given by,
x h = b l o c k I d x . x × b l o c k D i m . x + t h r e a d I d x . x
y h = b l o c k I d x . y × b l o c k D i m . y + t h r e a d I d x . y
For example, the phase at a pixel position of (102, 334) for single-beam steering is represented by ϕ k 102 ,   334 ,   Δ x k ,   Δ y k = 2 π λ f 102 Δ x k + 334 Δ y k   m o d   2 π .

2.3. CUDA-OpenGL Interoperability for CGH Calculation, Rendering and Display

CUDA-OpenGL interoperability combines the advantages of GPU-based calculation and GPU-accelerated display via sharing OpenGL resources with CUDA, and mapping a buffer object from OpenGL to CUDA memory [22].
To implement CUDA-OpenGL interoperability, the CUDA resource should share the memory with a pixel buffer object created by OpenGL. In Figure 3, the operational flow is listed. First, we declare global variables that will be used to store handles to the data we intend to share between OpenGL and CUDA, and then initialize the OpenGL library (GLUT) and create a graphics window. The pixel buffer object (PBO) stores the pixel data and asynchronously transfers the pixel data to the graphic card without wasting CPU cycles. Next, we register the PBO with the CUDA resource to share the buffer with both OpenGL and CUDA drivers. Then, we map the buffer to CUDA memory, meaning pointing the pointer of CUDA memory to the OpenGL buffer. Next, we use CUDA to calculate the pixel data through the kernel function and store the mapped memory so that OpenGL can render the results directly once the mapping between CUDA and the buffer is cancelled as well as mapping the buffer to CUDA to keep processing until the next frame is initiated (Figure 4). The workflow minimizes data transfer between the CPU and the GPU and maximizes the throughput of CGH calculation.

3. Multi-Point and Real-Time Beam Tracking System with Camera-Based Adaptive Beam Steering and Pre-Estimation of the Position and Size of the Target

CUDA-OpenGL interoperability enables fast calculation of a CGH based on real-time input, i.e., camera-based object detection (Figure 5). First, the camera captures multiple objects followed by identification of the position and the extent of the multiple objects within an FOV (Figure 5a). The task, defining the region of interest (ROI), is performed by a YOLOv4-tiny pretrained model for object recognition [19]. The camera captures the scene and input to the pretrained deep learning model. When the object of interest is detected, the coordinates and the extent of ROIs will be assigned to GPU-based CGH processing. The calculated CGH is displayed on the TI-PLM through the HDMI. The camera will capture the next frame once the objects of interest in the previous scene are scanned through. In this manner, a CGH simultaneously steers beams into multiple ROIs that are calculated and displayed on the TI-PLM. Furthermore, with Equation (4), it is capable of controlling the beam energy distribution to equalize the returning signal strength by assuming that the ratio of the apparent extent of objects depends on distance. Within the ROIs, objects are sequentially scanned while allocating appropriate beam power to each of the ROIs.

4. Experimental Results

Based on the camera input, adaptive beam steering steers the beam into a single ROI (Figure 6a), multiple ROIs (Figure 6b), and multiple ROIs with a variable beam ratio (Figure 6c). CGH calculation time and beam steering are demonstrated. Benchmarking and beam steering are performed by using a laptop with a NVIDIA GeForce GTX 1650-ti GPU (16 Streaming Multiprocessors with the total of 1024 CUDA cores), an Intel© C©TM) i7-10750H CPU and 16 GB memory. CUDA version 11.4(NVIDIA) was used.

4.1. Benchmarking of CGH Calculation Time: On a Laptop

The TI-PLM supports two data transfer modes, the monochromatic and RGB modes. The monochromatic mode displays one encoded CGH for each of the frames at a maximum frame rate of 60 Hz. In contrast, the RGB mode transfers three CGHs in 60 Hz such as a color-encoded CGH in 60 Hz that increases the display frame rate to 180 Hz. Table 1 and Table 2 tabulate the CGH calculation speed performed on the laptop using the monochromatic (1 CGH/frame) and RGB (3 CGHs/frame) modes for single- and multi-beam steering. Both the CPU and GPU GCH processing programs are written in C++. The CPU code is based on OpenCV, a well-optimized image processing library; the GPU code is based on the CUDA-OpenGL approach. As the tables show, a GPU performs 3.5- and 7.8-fold faster than CPU processing for the monochromatic and RGB modes, respectively, in single-beam steering. For multi-beam steering, the GPU speeds up to 6.8- to 10.8-fold (monochromatic mode) and 10.4- to 15-fold (RGB mode) faster from 2-beam to 7-beam steering. The following beam-steering speed test experiments (laptop with a PLM) are using the GPU-RGB mode since it performs the best.

4.2. Benchmarking of CGH Calculation Time: Laptop with a PLM

As Table 2 shows, the GPU-based CGH calculation time (without a PLM connected) from single-beam steering to 5-beam steering performs above 60 FPS (180 CGHs/s). With a PLM connected over HDMI (Table 3), the PLM frame rate is now limited to 180 FPS (180 CGHs/s) and is limited by the data rate of the current PLM driver. While steering and scanning multiple beams over multiple ROIs, the effective scanning speed is enhanced; however, such multi-point CGH calculation imposes an overhead. Table 3 summarizes the calculation speed and the scan speed in the RGB transfer mode for scanning 1, 2, 3, 4, 5, 6, and 7 ROIs. As Table 3 shows, the frame rate of the PLM slightly decreases as the number of beams (or number of ROIs) exceeds 6; however, the increased number of scanning points for multiple ROIs still improves the overall scan rate. For example, 5 independent ROIs are scanned with 180 points/s for each of the ROIs, results in an effective beam-steering speed of 900 points/s.

4.3. Multi-Point and Adaptive Beam Tracking with a Variable Beam Ratio

With a camera connected, adaptive single- and multi-beam tracking is demonstrated by capturing an image of a pedestrian displayed on an LCD monitor (Figure 7a) and two miniature toy cars (Figure 7b). Based on the captured video, the extent of ROIs is calculated in real time with YOLOv4-tiny. Since these two cars have approximately the same size, the ratio of the distance of the cars is approximately equal to the ratio of the extent of the ROIs of each of the cars. In such a case, the beam intensity ratio was modulated as the inverse of the ratio of the extent of each ROI, so that returning signal levels from each of the ROIs are equalized. The weighting factor A k for the k-th ROI is given by,
A k = C k ,   k ¯ H k × W k
where H k and W k are the height and the width of the k-th ROI, k ¯ is the index of ROIs other than the k-th ROI, and C k ,   k ¯ is a correction factor for (a) converting the amplitude to the power ratio while encoding an amplitude + phase CGH as a phase-only CGH, and (b) variation of the diffraction efficiency as a function of set ROIs. The calculation and experimental verification of the ratio of the weighting factor A k ,   k ¯ = A k / A k ¯ to the power ratio in two ROIs is P k ,   k ¯ = P k / P k ¯ , where P k is the power to k-th ROI, is addressed later is Section 5. For the single-beam steering, the rectangular area will be scanned in real time at the maximum speed of the current generation of the TI-PLM, which is 180 points/s. For multi-point beam steering, two ROIs are scanned while adaptively varying the beam power ratio.

5. Calibration of the Power Ratio for Multiple ROIs and Adaptive Beam Steering

The adjustment of the beam power is performed via weighing factor A k (Equation (8)). In Equation (2), A k is defined as an amplitude of fields for the k-th ROI; however, since the TI-PLM is a phase-only SLM, the ratio of powers is not simply a square of the ratio of amplitude since the amplitude and the phase over the PLM plane are encoded as a phase-only CGH. Additionally, the TI-PLM is a pixelated SLM with a finite number of, 16, phase levels with a pixel period d = 10.8 um. The available 16 phase levels are not evenly distributed but rather non-equally between 0 and 2π [9,10]. The discretized and non-equally distributed finite levels affect the beam ratio via variation of the diffraction efficiency as a function of beam-steering angles, or the effective grating periodicity of the CGH [5]. Those effects are combined into a single correction factor C k ,   k ¯ .

5.1. Beam Ratio Experiment

To adjust the beam power ratio among multiple ROIs, we experimentally evaluated the diffraction efficiency (DE) of the TI-PLM for a case where two ROIs are simultaneously scanned at a wave length λ = 532 nm and correlated the ratio of the weighting factor, A i , j = A i / A j , to the measured power ratio, P i , j = P i / P j . We setup five representative diffraction angles corresponding to i = 1 ~ 5 ,   j < i (Figure 8). Beams are steered into two ROIs out of the five total ROIs. Power at i-th ROI was measured by a power meter placed at the back focal point of the f = 300 mm lens to calculate DE.
In Figure 8, the x-axis is the diffraction angle θ x in the x-direction normalized by the wavelength λ and the pixel pitch d of the PLM, which is also represented as the inverse of the x-direction grating period Λ x in the unit of 1/pixel. This is similar for the y-axis. The beam index k = 0 to 4 spans and corresponds to 1/ Λ x of 0 to 0.41 (1/pixels) with the same 1/ Λ y of 0.125 (1/pixels). As reported by Deng et al., the diffraction efficiency monotonically decreases as the periodicity of the CGH decreases (Figure 8) [5]. By measuring the single-beam steering diffraction efficiency at those five diffraction angles, we can also evaluate the energy loss from multi-beam steering.
Figure 9a plots P i , j as a function, A i , j , for all the combinations of ( i , j ), where 0 i   j 4 . Figure 9b plots the total diffraction efficiency DE t o t a l ,   i , j = ( P i + P j ) / P i n p u t , where P i and P i n p u t are the diffracted power to i-th ROI and total power impinging upon the PLM, respectively. The power ratio P i , j and assigned weight ratio A i , j are well correlated, while the correlation is ROI (diffraction angle) dependent. As Figure 8 shows, the larger diffraction angle produces the lower diffraction efficiency [5]. Consequently, when steering the beam to two different angles with the assigned ratio A i , j = 1, the power ratio should not be 1; instead, it is affected by the ratio of DE of a single beam. Furthermore, as the beam angle separation becomes larger, a higher power ratio is observed since the difference in DE becomes larger. For example, we observed P 0 , 4 > P 0 , 3 > P 0 , 2 > P 0 , 1 for A i , j = 3 . This can be explained by the denominator ( P j ) of the power ratio P i , j = P i / P j , becomes larger due to the small diffraction angle. Figure 9b plots DE t o t a l ,   i , j as a function of A i , j and no significant energy loss is observed for multi-beam steering compared with single-beam steering.

5.2. Simulation

We numerically related P i , j to A i , j by simulation. The simulation flow is shown in Figure 10a. Based on Equation (4), the phase of each pixel is forced to the available 16 phase levels of the PLM to model a OPD (Optical Path Difference) map of the TI-PLM [5]. The field on the image plane is calculated by the Fast Fourier Transform of e j 2 π λ O P D , and the intensity distribution is the field multiplied by its complex conjugate. The power ratio, P i , j , is calculated by integrating the intensity at the vicinity of the spots. The simulation intensity distribution results are shown in Figure 10b.
Figure 11 shows the calculated power ratio P i , j as a function of assigned weight, A i , j . The results indicate that larger-diffraction-angle separation of two beam causes the larger power ratio. For instance, A i , j = 3 results in P 0 , 4 > P 0 , 3 > P 0 , 2 > P 0 , 1 , and P 1 , 4 > P 1 , 3 > P 1 , 2 . The experimental and simulated P i , j (Figure 9a and Figure 11) match very well, and they are also separately compared case by case in Figure 12.

6. Discussions

The proposed real-time CGH calculation and display by CUDA-OpenGL interoperability along with object recognition enables foveated and variable power ratio beam tracking. Two major benefits from the framework in lidar applications are (a) an improved scanning speed by avoiding raster scan, and (b) equalization of the power of returning signals from multiple objects at different distances. The pre-calculated weighting factor, A i , j , based on object recognition enables adaptive control of the transmitter power towards multiple objects for the purpose of equalizing returning signal levels at the receiver.
The following question arises: what is the optimum number of beams/CGH for multi-beam steering? The effective beam-steering speed is tested by varying the number of scanning points/CGH to determine the optimal effective beam-steering speed on a GTX-1650-ti compared with a CPU (i7-10750H). As Figure 13 shows, the effective steering speed on the GPU rapidly increases from 1 to 50 beam steering and the speed starts converging at 400 beams/CGH, which corresponds to 2146 pts/s. In contrast, the effective beam-steering speed of the CPU slightly increases up to 20 beams/CGH and it saturates at approximately 80 beams/CGH, which corresponds to 108 pts/s, which the GPU performs almost 20-fold faster than the CPU. A realistic beam-tracking scenario assisted by camera, with a large number of beams/CGH, computational architecture to detect and classify large number of objects in conjunction with CUDA-OpenGL-based calculation of a CGH, needs to be determined as a future work. Nonetheless, a current mid-range GPU, with the CGH calculation speed, can still increase the number of scanning points (or ROIs) for detection of multiple objects with beam tracking by the TI-PLM.
Currently, we have demonstrated that GPU (GTX 1650-ti, Nvidia)-based TI-PLM single-beam steering and multi-beam steering (number of beams < 6) with a speed of 180 FPS are limited by the frame rate of the current generation of the TI-PLM. When the beam-steering speed needs to be faster, three aspects can be considered. Using the higher-performing GPU increases the calculation speed of CGHs significantly. For example, the Nvidia RTX 3080 GPU (clock speed of 1440 MHz, floating-point performance of 29.77 TFLOPS, texture rate of 465.1 GTexels/s, effective memory clock speed of 19,000 MHz, memory bandwidth of 760 GB/s, 10 GB of VRAM, and 320 bits memory bus width) can perform at least 4-fold faster than the GTX 1650-ti.
The current generation of the TI-PLM supports displaying CGHs up to 180 fps, so either increasing the supported frame rate or encoding more CGHs inside a single frame will improve the beam-steering speed. The newer version of the 0.67 TI-PLM supports a 24 bit RGB mode and can transfer 24 CGHs with a frame rate of 60 FPS, or 1440 (24 × 60) CGHs can be displayed per second. The current HDMI 2.1 can handle up to 240 Hz when using a 1080 p (1080 × 1920) resolution. With a high-end and state-of-the-art GPU, a 0.67 inch PLM, and a 24 bit multiplexed CGH transfer via HDMI 2.1, it is estimated that the single-beam-steering speed can achieve 5760 points/s, and multi-beam steering can reach even more higher steering efficiency.
The angular extent of steering is still limited to several degrees due to the large pixel period of the TI-PLM compared to the wavelength. The limited angular extent can be increased to tens of degrees by employing additional MEMS-SLMs such as the DMD [11] while preserving the high-speed, foveated, and adaptive nature of the proposed beam steering by the TI-PLM. In particular, the combination of two kinds of MEMS-SLMs, the DMD and the PLM, enables rejection of the 0th-order beams as well as unnecessary diffractions (side lobes) other than the beam of interest [13]. The hybrid MEMS beam-steering optical architecture with real-time CGH generation and display by CUDA-OpenGL interoperability enables DC- and side-lobe-free adaptive beam tracking.
Simultaneous control of the power ratio requires a lookup table to determine the assigned ratio in calculating CGH with a desired power ratio. Our simulation results show good agreement between the calculated power ratio and the assigned weight ratio for beam steering with two ROIs. For three or more ROIs, an FFT-based simulation we presented here is applied to identify an empirical transfer function to determine the assigned ratio to achieve the desired power ratio among multiple ROIs.

7. Conclusions

CUDA-OpenGL interoperability demonstrated for real-time beam tracking with a MEMS-based phase light modulator and a Texas Instruments PLM enables real-time calculation of phase CGH and steering the laser beam into multiple objects on the fly while varying the beam power ratio. The CGH calculation method is interfaced to camera input and AI-based recognition of the position and the size of multiple regions of interest (ROIs). The end-to-end demonstration of beam tracking makes a lidar system more adaptive and intelligent, while not adopting time-consuming raster scanning. In particular, the correlation between the beam power ratio and the weight factor ratio in CGH calculation is experimentally confirmed and well predicted by simulation. The correlation factor is used as a look-up table to precisely control the beam ratio.
With the current state of the art of the GPU, the proposed CUDA-OpenGL interoperability framework for real-time CGH calculation enables adaptive, variable beam ratio and multiple-ROI tracking with over 4000 points/s of beam-steering speeds, while employing a commercial USB camera and computational devices.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/mi13091527/s1, Video S1: Single ROI scan with single-beam steering; Video S2: Multiple ROIs scan with the same beam weights; Video S3: Multiple-ROI scan with different beam weights; Video S4: Pedestrian crossing the street on an LCD screen—the TI-PLM scans through the man as he is moving; Video S5: Two miniature cars captured by a USB camera—the distant (smaller in appearance) car is steered with a higher-energy beam; Closer (larger in appearance) car is steered with a lower-energy beam.

Author Contributions

C.-I.T. conducted the coding of CGH calculation and the display by CUDA-Open GL interoperability and beam steering experiments with X.D. as well as drafting the manuscript. Y.T. oversaw the research, verified the findings, and finalized the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Semiconductor Research Corporation, Texas Instruments, and Mitsubishi Electric.

Data Availability Statement

Data are available upon request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Crossland, W.; Manolis, I.; Redmond, M.; Tan, K.; Wilkinson, T.; Holmes, M.; Parker, T.; Chu, H.; Croucher, J.; Handerek, V. Holographic optical switching: The” ROSES” demonstrator. J. Lightwave Technol. 2000, 18, 1845. [Google Scholar] [CrossRef]
  2. Wang, M.; Zong, L.; Mao, L.; Marquez, A.; Ye, Y.; Zhao, H.; Caballero, F.J.V. LCoS SLM study and its application in wavelength selective switch. Photonics 2017, 4, 22. [Google Scholar] [CrossRef]
  3. Haellstig, E.; Stigwall, J.; Lindgren, M.; Sjoqvist, L. Laser beam steering and tracking using a liquid crystal spatial light modulator. In Laser Systems Technology; SPIE: Bellingham, WC, USA, 2003. [Google Scholar]
  4. Wang, D.; Watkins, C.; Xie, H. MEMS mirrors for LiDAR: A review. Micromachines 2020, 11, 456. [Google Scholar] [CrossRef] [PubMed]
  5. Deng, X.; Tang, C.-I.; Luo, C.; Takashima, Y. Diffraction Efficiency of MEMS Phase Light Modulator, TI-PLM, for Quasi-Continuous and Multi-Point Beam Steering. Micromachines 2022, 13, 966. [Google Scholar] [CrossRef] [PubMed]
  6. Chang, C.; Zhu, D.; Li, J.; Wang, D.; Xia, J.; Zhang, X. Fast calculation of computer generated hologram based on single Fourier transform for holographic three-dimensional display. Displays 2021, 69, 102064. [Google Scholar] [CrossRef]
  7. McManamon, P.F. Field Guide to Lidar; SPIE Press: Bellingham, WC, USA, 2015. [Google Scholar]
  8. Esmer, G.B. Real-Time Diffraction Field Calculation Methods for Computer-Generated Holograms. In Holographic Materials and Applications; IntechOpen: Vienna, Austria, 2019. [Google Scholar]
  9. Bartlett, T.A.; McDonald, W.C.; Hall, J.N. Adapting Texas Instruments DLP technology to demonstrate a phase spatial light modulator. In Emerging Digital Micromirror Device Based Systems and Applications XI; SPIE: Bellingham, WC, USA, 2019. [Google Scholar]
  10. Bartlett, T.A.; McDonald, W.C.; Hall, J.N.; Oden, P.I.; Doane, D.; Ketchum, R.S.; Byrum, T. Recent advances in the development of the Texas Instruments phase-only microelectromechanical systems (MEMS) spatial light modulator. In Emerging Digital Micromirror Device Based Systems and Applications XIII; SPIE: Bellingham, WC, USA, 2021; Volume 11698, pp. 103–116. [Google Scholar]
  11. Smith, B.; Hellman, B.; Gin, A.; Espinoza, A.; Takashima, Y. Single chip lidar with discrete beam steering by digital micromirror device. Opt. Express 2017, 25, 14732–14745. [Google Scholar] [CrossRef]
  12. Rodriguez, J.; Smith, B.; Kang, E.; Hellman, B.; Chen, G.; Gin, A.; Espinoza, A.; Takashima, Y. Beam steering by digital micro-mirror device for multi-beam and single-chip lidar. In Optical Data Storage 2018: Industrial Optical Devices and Systems; SPIE: Bellingham, WC, USA, 2018. [Google Scholar]
  13. Deng, X.; Guan, J.; Luo, C.; Tang, C.-I.; Lee, T.; Liu, P.; Takashima, Y. Solid-state beam steering with adaptive side lobe rejection and enhanced angular throw of MEMS phase SLM by angular spatial and phase combined modulation. In Emerging Digital Micromirror Device Based Systems and Applications XIV; SPIE: Bellingham, WC, USA, 2022. [Google Scholar]
  14. Kang, E.; Choi, H.; Hellman, B.; Rodriguez, J.; Smith, B.; Deng, X.; Liu, P.; Lee, T.L.-T.; Evans, E.; Hong, Y. Large etendue solid-state-lidar with MEMS-resonant mirror assisted diffractive beam steering by digital micro mirror device. In Emerging Digital Micromirror Device Based Systems and Applications XIV; SPIE: Bellingham, WC, USA, 2022. [Google Scholar]
  15. Nishitsuji, T.; Shimobara, T.; Kakue, T.; Ito, T. Fast calculation of computer-generated hologram of line-drawn objects without FFT. Opt. Express 2020, 28, 15907–15924. [Google Scholar] [CrossRef] [PubMed]
  16. Horisaki, R.; Takagi, R.; Tanida, J. Deep-learning-generated holography. Appl. Opt. 2018, 57, 3859–3863. [Google Scholar] [CrossRef] [PubMed]
  17. Meng, D.; Ulusoy, E.; Urey, H. Non-iterative phase hologram computation for low speckle holographic image projection. Opt. Express 2016, 24, 4462–4476. [Google Scholar] [CrossRef] [PubMed]
  18. Kakue, T.; Wagatsuma, Y.; Yamada, S.; Nishitsuji, T.; Endo, Y.; Nagahama, Y.; Hirayama, R.; Shimobaba, T.; Ito, T. Review of real-time reconstruction techniques for aerial-projection holographic displays. Opt. Eng. 2018, 57, 061621-1–061621-11. [Google Scholar] [CrossRef]
  19. Bochkovskiy, A.; Wang, C.-Y.; Liao, H.-Y.M. Yolov4: Optimal speed and accuracy of object detection. arXiv 2020, arXiv:2004.10934. [Google Scholar]
  20. Harish, P.; Narayanan, P.J. Accelerating large graph algorithms on the GPU using CUDA. In Proceedings of the International Conference on High-Performance Computing, Goa, India, 18–21 December 2007; Springer: Berlin/Heidelberg, Germany, 2007. [Google Scholar]
  21. Sanders, J.; Kandrot, E. CUDA by Example: An Introduction to General-Purpose GPU Programming; Addison-Wesley Professional: Boston, MA, USA, 2010. [Google Scholar]
  22. Storti, D.; Yurtoglu, M. CUDA for Engineers: An Introduction to High-Performance Parallel Computing; Addison-Wesley Professional: Boston, MA, USA, 2015. [Google Scholar]
Figure 1. (a) The TI-PLM and image of pixels; (b) schematic diagram of the CGH plane x h ,   y h and the image plane Δ x k ,   Δ y k . For a given beam-steering angle Δ x k / f , Δ y k / f , the phase of the pixel located at x h ,   y h is calculated by Equation (1).
Figure 1. (a) The TI-PLM and image of pixels; (b) schematic diagram of the CGH plane x h ,   y h and the image plane Δ x k ,   Δ y k . For a given beam-steering angle Δ x k / f , Δ y k / f , the phase of the pixel located at x h ,   y h is calculated by Equation (1).
Micromachines 13 01527 g001
Figure 2. CUDA for CGH calculation. Each thread handles a pixel of a CGH, calculating the phase value using Equation (1) for single-beam steering, or Equation (4) for multi-beam steering. Δ x k and Δ y k are the lateral shift in x and y direction (Figure 1b), respectively.
Figure 2. CUDA for CGH calculation. Each thread handles a pixel of a CGH, calculating the phase value using Equation (1) for single-beam steering, or Equation (4) for multi-beam steering. Δ x k and Δ y k are the lateral shift in x and y direction (Figure 1b), respectively.
Micromachines 13 01527 g002
Figure 3. Operational flow of CUDA-OpenGL interoperability.
Figure 3. Operational flow of CUDA-OpenGL interoperability.
Micromachines 13 01527 g003
Figure 4. Schematic diagram for CUDA-OpenGL interoperability. CUDA and OpenGL share the same memory by mapping the buffer with CUDA. Once it has unmapped the buffer, OpenGL can directly render the calculated CGH.
Figure 4. Schematic diagram for CUDA-OpenGL interoperability. CUDA and OpenGL share the same memory by mapping the buffer with CUDA. Once it has unmapped the buffer, OpenGL can directly render the calculated CGH.
Micromachines 13 01527 g004
Figure 5. (a) The system of adaptive beam steering. Multiple regions of interest (ROIs) are captured by camera. (b) Workflow of adaptive beam steering. Camera-based rough order of magnitude (ROM) detection of the relative size of objects. For example, the relative appearance of multiple cars indicates the relative distance of multiple ROIs.
Figure 5. (a) The system of adaptive beam steering. Multiple regions of interest (ROIs) are captured by camera. (b) Workflow of adaptive beam steering. Camera-based rough order of magnitude (ROM) detection of the relative size of objects. For example, the relative appearance of multiple cars indicates the relative distance of multiple ROIs.
Micromachines 13 01527 g005
Figure 6. (a) Single ROI scan with single-beam steering. See Video S1. (b) Multiple ROIs scan with the same beam weights. See Video S2. (c) Multiple-ROI scan with different beam weights (ROI 2 > ROI 1 > ROI 3). See Video S3.
Figure 6. (a) Single ROI scan with single-beam steering. See Video S1. (b) Multiple ROIs scan with the same beam weights. See Video S2. (c) Multiple-ROI scan with different beam weights (ROI 2 > ROI 1 > ROI 3). See Video S3.
Micromachines 13 01527 g006
Figure 7. Adaptive single-beam steering demo. The USB camera captures the image of (a) a pedestrian crossing the street on an LCD screen. The TI-PLM scans through the man as he is moving. See Video S4. (b) Two miniature cars captured by a USB camera. A distant (smaller in appearance) car is steered with a higher-energy beam; Closer (larger in appearance) car is steered with a lower-energy beam. See Video S5.
Figure 7. Adaptive single-beam steering demo. The USB camera captures the image of (a) a pedestrian crossing the street on an LCD screen. The TI-PLM scans through the man as he is moving. See Video S4. (b) Two miniature cars captured by a USB camera. A distant (smaller in appearance) car is steered with a higher-energy beam; Closer (larger in appearance) car is steered with a lower-energy beam. See Video S5.
Micromachines 13 01527 g007
Figure 8. ROIs defined to characterize P i , j and the diffraction efficiency for k = 0–4.
Figure 8. ROIs defined to characterize P i , j and the diffraction efficiency for k = 0–4.
Micromachines 13 01527 g008
Figure 9. (a) P i , j as a function A i , j for all the combinations of ( i , j ), 0 i , j 4 ; (b) the total diffraction efficiency DE t o t a l ,   i , j = ( P i + P j ) / P i n p u t , where P i and P i n p u t are the diffracted power to i-th ROI and total power impinging upon the PLM, respectively.
Figure 9. (a) P i , j as a function A i , j for all the combinations of ( i , j ), 0 i , j 4 ; (b) the total diffraction efficiency DE t o t a l ,   i , j = ( P i + P j ) / P i n p u t , where P i and P i n p u t are the diffracted power to i-th ROI and total power impinging upon the PLM, respectively.
Micromachines 13 01527 g009
Figure 10. (a) Multi-beam steering power simulation process based on the FFT method; (b) the simulated intensity distribution in log scale, steering to positions 1 and 4 with the assigned weight ratio of 1, and beam steering to positions 3 and 4 with the assigned ratio of 0.6, with their experiment beam-steering image aside.
Figure 10. (a) Multi-beam steering power simulation process based on the FFT method; (b) the simulated intensity distribution in log scale, steering to positions 1 and 4 with the assigned weight ratio of 1, and beam steering to positions 3 and 4 with the assigned ratio of 0.6, with their experiment beam-steering image aside.
Micromachines 13 01527 g010
Figure 11. Power ratio simulation for ten cases. The simulation results also show that larger-diffraction-angle separation causes the larger power ratio.
Figure 11. Power ratio simulation for ten cases. The simulation results also show that larger-diffraction-angle separation causes the larger power ratio.
Micromachines 13 01527 g011
Figure 12. The comparison between power ratio measurement results (blue) and simulated power ratio results (orange) case by case from P 0 , 1 to P 3 , 4 .
Figure 12. The comparison between power ratio measurement results (blue) and simulated power ratio results (orange) case by case from P 0 , 1 to P 3 , 4 .
Micromachines 13 01527 g012
Figure 13. Effective beam-steering speed (RGB mode) on a GPU and a CPU. X-axis represents the number of points/CGH for beam steering; Y-axis represent the effective beam-steering speed. The inset shows the calculation speed of the CPU-based approach for the # of beams/CGH up to 80.
Figure 13. Effective beam-steering speed (RGB mode) on a GPU and a CPU. X-axis represents the number of points/CGH for beam steering; Y-axis represent the effective beam-steering speed. The inset shows the calculation speed of the CPU-based approach for the # of beams/CGH up to 80.
Micromachines 13 01527 g013
Table 1. CGH processing time for single-beam steering using a CPU and a GPU in the monochromatic mode (Beam # refers to number of beams; # pts/s refers to the number of points are steered per second).
Table 1. CGH processing time for single-beam steering using a CPU and a GPU in the monochromatic mode (Beam # refers to number of beams; # pts/s refers to the number of points are steered per second).
MonoGPUCPUSpeedup Factor
Beam #FPS# pts/sFPS# pts/s
123223267673.5
219839629586.8
318455223698.0
417369220808.7
516180517859.5
6149894148410.6
7140980139110.8
Table 2. CGH processing time for single-beam steering using a CPU and a GPU in the RGB mode.
Table 2. CGH processing time for single-beam steering using a CPU and a GPU in the RGB mode.
RGBGPUCPUSpeedup Factor
Beam #FPS# pts/sFPS# pts/s
112537516487.8
29456495410.4
38576576312.1
47792467212.8
571106557514.2
665117059013.0
760126048415.0
Table 3. Experimental beam-steering speed in the GPU-RGB mode with a PLM connected to a laptop.
Table 3. Experimental beam-steering speed in the GPU-RGB mode with a PLM connected to a laptop.
# of ROIsWith a PLM Connected
PLM FPSpts/s
1180180
2180360
3180540
4180720
5180900
61741044
71591113
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Tang, C.-I.; Deng, X.; Takashima, Y. Real-Time CGH Generation by CUDA-OpenGL Interoperability for Adaptive Beam Steering with a MEMS Phase SLM. Micromachines 2022, 13, 1527. https://doi.org/10.3390/mi13091527

AMA Style

Tang C-I, Deng X, Takashima Y. Real-Time CGH Generation by CUDA-OpenGL Interoperability for Adaptive Beam Steering with a MEMS Phase SLM. Micromachines. 2022; 13(9):1527. https://doi.org/10.3390/mi13091527

Chicago/Turabian Style

Tang, Chin-I, Xianyue Deng, and Yuzuru Takashima. 2022. "Real-Time CGH Generation by CUDA-OpenGL Interoperability for Adaptive Beam Steering with a MEMS Phase SLM" Micromachines 13, no. 9: 1527. https://doi.org/10.3390/mi13091527

APA Style

Tang, C. -I., Deng, X., & Takashima, Y. (2022). Real-Time CGH Generation by CUDA-OpenGL Interoperability for Adaptive Beam Steering with a MEMS Phase SLM. Micromachines, 13(9), 1527. https://doi.org/10.3390/mi13091527

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop