26 November 2026 | Computational imaging
Reconstructing 29 spectral images from a single monochrome frame using precisely timed flashes of light.
A different way to capture light
My earlier multispectral imaging experiments involved taking a separate image for each wavelength. This time I wanted to see how much spectral information could fit into a single frame.
A rolling shutter starts exposing the rows of a sensor one after another. By changing the wavelength of the light at the right moment, each flash is recorded by a different group of rows. Repeating the sequence spreads samples from different wavelengths throughout the image.
The imaging system
For illumination, I used an array of 132 LEDs covering 33 wavelengths. Four LEDs of each wavelength were spaced around the imaging area. Three PCA9685 boards controlled the array, with 16 channels on each of the first two boards and one on the third. An Arduino Yún synchronized the LEDs with a Basler acA2500-14gm monochrome camera. The experiment used 29 of the 33 channels.

Synchronizing the camera and LEDs
The camera sent a timing signal to the Arduino at the start of each frame, and all three LED controllers shared a clock. To establish the timing, I flashed one wavelength from each controller at startup and measured where the light strips appeared on the sensor. The software used those positions to map the wavelengths and check the pattern in every frame.
- The camera signals the start of a frame.
- The Arduino synchronizes the LED sequence.
- Rows start collecting light one after another.
- The LEDs flash at different wavelengths.
- The camera records a pattern of light strips.
LED illumination0 µs
Sensor rowsMonochrome
Exposure windowBrightness: collected light
Frame starts
Shown in slow motion with four wavelengths. A new row starts collecting light about every 35 µs. Each row collects light for 140 µs, so several rows are exposed at the same time. In this example each flash lasts 50 µs.
Reconstructing the spectrum
The raw image was covered in thin horizontal strips. Each row recorded the light from the LEDs that were on during its exposure. The timing of the flashes tells us which wavelengths contributed to each row, but no single pixel recorded all 29 wavelengths.
Imagine a curve showing how a surface responds to different wavelengths of light. Instead of trying to find 29 separate values at every pixel, the reconstruction fits a smooth curve using five adjustable values. Measurements from nearby rows help determine its shape.
Each LED emits a range of wavelengths, and the camera is more sensitive to some wavelengths than others. The final method took both into account, gave less weight to noisier measurements and gently smoothed the resulting estimates.
Once the curve was estimated, the software could calculate the response at all 29 LED bands and approximate the colors of the scene under standard daylight. The images were reconstructed on the original pixel grid, but fine details and abrupt changes in spectral response were harder to recover.

One frame, 29 views
Move through the spectrum to see how the same scene changes from the edge of the ultraviolet to the near infrared.
379.85 nm878.31 nm
All images use the same brightness scale.
Measuring reconstruction accuracy
To check the reconstruction, I photographed the same scene one wavelength at a time. The comparison with a separate single frame reconstruction covered four regions spanning the height of the image, with each wavelength normalized separately. The final method gave results closer to the reference on all three measures below. These are relative spectral responses rather than absolute reflectance.
| Measure | Initial method | Final method (GPU) |
|---|---|---|
| Median correlation (PCC) | 0.627 | 0.691 |
| Median normalized error (RMSE) | 0.268 | 0.230 |
| Mean spectral angle | 25.05° | 19.49° |

From an image to a live stream
The next step was to run the reconstruction live on a Jetson AGX Xavier. The system reconstructed 120 consecutive frames at a camera rate of 12.21 frames per second and detected every expected light strip. The median reconstruction time was 29.76 ms, with each spectral image reconstructed on a 2592 × 1944 pixel grid.

The rolling shutter made it possible to move from capturing each wavelength separately to reconstructing 29 spectral images from a single frame in real time. What interests me now is how much finer spatial detail can be recovered.
Future Development
This project demonstrates the feasibility of real time multispectral reconstruction using a conventional rolling shutter camera. The current implementation serves as a proof of concept, with considerable potential for further improvements in spectral accuracy, spatial detail and overall system performance. These possibilities will be explored in future revisions.