Spectral imaging through time – Elad Orbach

Hacker News by 4 min read 504x views
Spectral imaging through time – Elad Orbach

Share Post

← Selected writing

26 November 2026 | Computational imaging

Reconstructing 29 spectral images from a sole monochrome example using exactly timed flashes of light.

Elad Orbach

Reconstructed color imageReconstructed color

Spectral depiction at 398.76 nm398.76 nm

Spectral depiction at 514.60 nm514.60 nm

Spectral depiction at 657.58 nm657.58 nm

Spectral depiction at 878.31 nm878.31 nm

One camera frame, shown as a color depiction and four selected wavelengths. Explore all 29 wavelengths
PrincipleApparatusTimingReconstructionExplore wavelengthsValidationPerformance

A distinct way to grasp light

My before multispectral imaging experiments engaged taking a distinct depiction for all wavelength. This period I wanted to see how much spectral data could fit into a sole frame.

A rolling shutter starts exposing the rows of a sensor one following another. By changing the wavelength of the ray at the correct moment, all flash is recorded by a distinct collection of rows. Repeating the sequence spreads samples from distinct wavelengths throughout the image.

The imaging system

For illumination, I used an gathering of 132 LEDs covering 33 wavelengths. Four LEDs of all wavelength were spaced about the imaging area. Three PCA9685 boards controlled the array, alongside 16 channels on all of the archetypal two boards and one on the third. An Arduino Yún synchronized the LEDs alongside a Basler acA2500-14gm monochrome camera. The test used 29 of the 33 channels.

Multispectral LED gathering in darkness

Synchronizing the camera and LEDs

The camera sent a timing indication to the Arduino at the commencement of all frame, and all three LED controllers shared a clock. To established the timing, I flashed one wavelength from all controller at startup and measured anywhere the ray strips appeared on the sensor. The application used those positions to map the wavelengths and inspect the form in all frame.

Reconstructing the spectrum

The raw depiction was covered in lean horizontal strips. Each row recorded the ray from the LEDs that were on during its exposure. The timing of the flashes tells us which wavelengths contributed to all row, but no sole pixel recorded all 29 wavelengths.

Imagine a curve showing how a exterior responds to distinct wavelengths of light. Instead of trying to discover 29 distinct values at all pixel, the reconstruction fits a gentle curve using five adjustable values. Measurements from nearby rows assistance decide its shape.

Each LED emits a range of wavelengths, and the camera is additional delicate to several wavelengths than others. The final method took the two into account, gave small importance to noisier measurements and gently smoothed the resulting estimates.

Once the curve was estimated, the application could compute the reply at all 29 LED bands and approximate the colors of the environment under norm daylight. The images were reconstructed on the first pixel grid, but fine particulars and abrupt changes in spectral reply were harder to recover.

Raw frame, reconstructed color depiction and reference
Raw frame, reconstructed color depiction and a separately captured RGB reference.

One frame, 29 views

Move through the spectrum to see how the identical environment changes from the border of the ultraviolet to the near infrared.

Spectral depiction at 570.38 nm570.38 nm

Wavelength

379.85 nm878.31 nm

All images use the identical brightness scale.

Measuring reconstruction accuracy

To inspect the reconstruction, I photographed the identical environment one wavelength at a time. The difference alongside a distinct sole example reconstruction covered four regions spanning the height of the image, alongside all wavelength normalized separately. The final method gave results nearer to the citation on all three measures below. These are related spectral responses fairly than complete reflectance.

MeasureInitial methodFinal method (GPU)
Median association (PCC)0.6270.691
Median normalized error (RMSE)0.2680.230
Mean spectral angle25.05°19.49°
LED spectra, estimated sensor sensitivity and reconstruction accuracy
Measured LED spectra, estimated sensor sensitivity and difference alongside the citation images.

From an depiction to a live stream

The next stage was to run the reconstruction live on a Jetson AGX Xavier. The scheme reconstructed 120 successive frames at a camera charge of 12.21 frames per second and detected all expected ray strip. The median reconstruction period was 29.76 ms, alongside all spectral depiction reconstructed on a 2592 × 1944 pixel grid.

Reconstruction and example handling times
Processing times and the period from receiving all example to publishing its preview.

The rolling shutter made it imaginable to move from capturing all wavelength separately to reconstructing 29 spectral images from a sole example in genuine time. What interests me now is how much finer spatial item can be recovered.

Future Development

This project demonstrates the feasibility of genuine period multispectral reconstruction using a accepted rolling shutter camera. The current implementation serves as a evidence of concept, alongside significant possible for additional improvements in spectral accuracy, spatial item and general scheme performance. These possibilities volition be explored in forthcoming revisions.

Other Article Hacker News
↑
Close Right Ads
Close Left Ads