Parallel Processing Method for Generating Elemental Images from Hexagonal Lens Array

Dohyeong Kim, Chan Park, Jisung Jung, Ki‐Chul Kwon, Nam Kim, Kwan‐Hee YooThe Journal of the Korea Contents Association 2012

Abstract

Most integral imaging techniques utilize rectangular lens arrays, resulting in light distributions recorded in a rectangular grid format. However, hexagonal lens arrays offer higher packing density and a more accurate approximation of ideal circular lenses, leading to superior image quality in both recording and display. The primary challenge lies in the computational complexity of mapping pixels to a staggered hexagonal grid, which requires significant processing power for real-time applications. This paper proposes a parallel processing method using OpenCL to generate elemental images from 3D volume data for hexagonal lens arrays. Experimental results using a "Male" volume dataset ($128 \times 256 \times 256$ pixels) demonstrate that the proposed method can generate elemental images for a $20 \times 20$ hexagonal lens array at speeds of 20–60 frames per second (FPS).

Introduction

Integral Imaging (InIm) is a prominent technique for creating autostereoscopic 3D displays. While rectangular lens arrays are common due to their simple geometric mapping, they suffer from lower sampling density compared to hexagonal configurations. Hexagonal arrays provide a more efficient tiling of the plane, mimicking the circular aperture of ideal lenses more closely.

Conceptual setup of the 3D volume object, hexagonal virtual lens array, and the resulting elemental image.

Despite these advantages, the staggered nature of hexagonal grids introduces a "hexagonal tax" in computation. Determining which lens a specific pixel belongs to is no longer a simple integer division; it requires calculating distances to multiple lens centers. To overcome this bottleneck, this research leverages the parallel processing capabilities of GPUs via OpenCL to achieve real-time rendering speeds.

Methodology

Staggered Grid Geometry

The algorithm first defines the geometry of the virtual hexagonal lens array. Unlike rectangular grids, hexagonal grids are staggered. The researchers developed mathematical models to calculate the $(x, y)$ center coordinates for each lens, using separate formulas for even and odd rows to account for the offset.

To map a display pixel to its corresponding lens, the system calculates the distance from the pixel to the centers of the nearest candidate lenses. The pixel is then assigned to the lens with the minimum distance. This distance-based approach effectively handles the complex boundaries of the hexagonal cells.

Parallel Rendering Pipeline

The core of the proposed method is an OpenCL-based parallel rendering pipeline. The process is divided into several stages:

  1. Initialization: 3D volume data is loaded into memory, and lens array parameters (size, count, focal length) are defined.
  2. Parameter Generation: The centers of the $N \times N$ hexagonal lenses are pre-calculated to serve as virtual camera positions.
  3. Parallel Execution: An OpenCL kernel is launched where each thread corresponds to a single pixel in the final elemental image.
  4. Lens Search and Ray Casting: Each thread identifies its parent hexagonal lens by searching for the nearest center. Once the lens is identified, the thread performs ray-casting through the 3D volume to determine the pixel's color value.
  5. Output: The completed elemental image is output to the display.
Flowchart of the proposed parallel processing algorithm, showing the high-level process (a) and the detailed thread-level logic (b).

Experimental Results

The performance of the algorithm was evaluated using various 3D volume datasets, including "Bucky," "Mummy," "Male," and "CTA." The primary benchmark was conducted on the "Male" dataset ($128 \times 256 \times 256$ pixels) using an NVIDIA GTX 550 Ti GPU.

Key findings include:

  • Real-Time Capability: For a $20 \times 20$ hexagonal array, the system achieved 20–60 FPS, meeting the requirements for interactive 3D displays.
  • Computational Overhead: Rendering for hexagonal arrays was found to be approximately 30–50% slower than for rectangular arrays. For example, the "Male" dataset rendered at 21.28 FPS for a hexagonal grid versus 32.26 FPS for a rectangular grid. This difference is attributed to the additional logic required for staggered indexing and distance calculations.
  • Scalability: Performance is highly sensitive to the number of pixels per lens. As the resolution per lens increases, the frame rate drops significantly, highlighting a trade-off between image detail and rendering speed.

Conclusion

This paper demonstrates that OpenCL-based parallel processing can effectively mitigate the computational challenges of hexagonal lens arrays in integral imaging. By achieving real-time frame rates (up to 60 FPS), the proposed method enables the use of high-density hexagonal grids for more realistic and higher-fidelity 3D displays. Future work will focus on optimizing memory management for larger volume datasets and scaling the algorithm for commercial-grade lens arrays with higher resolutions.

Summary updated

BibTeX
@article{kim2012parallel,
  author = {Dohyeong Kim and Chan Park and Jisung Jung and Ki‐Chul Kwon and Nam Kim and Kwan‐Hee Yoo},
  title = {{Parallel Processing Method for Generating Elemental Images from Hexagonal Lens Array}},
  journal = {The Journal of the Korea Contents Association},
  year = {2012},
  doi = {10.5392/jkca.2012.12.06.001},
}
Figure