随时间变化的光谱成像 – Elad Orbach
Spectral imaging through time – Elad Orbach

原始链接: https://eladorbach.com/writing/rolling-shutter-multispectral/

卷帘快门单色相机与精确计时的LED闪光可从单帧重建29张光谱图像。由于传感器行依次曝光,波长变化会在图像中放置不同的光线条纹。该装置使用33个LED波长中的29个,由Arduino与Basler相机同步。重建利用五个可调值及邻近行测量拟合平滑光谱曲线,同时校正LED光谱、传感器灵敏度、噪声与平滑。这产生29个光谱波段及日光颜色近似。与单波长参考图像的验证显示相关性提高、归一化误差降低、光谱角降低。该系统还在Jetson AGX Xavier上实时运行,以12.21 fps处理120帧,在2592×1944网格上的中值重建时间为29.76 ms。未来工作旨在提高光谱精度、空间细节与性能。

黑客新闻 最新 | 历史 | 评论 | 提问 | 展示 | 工作 | 提交 登录 随时间变化的光谱成像 – Elad Orbach ( eladorbach.com ) 4 分 由 rbanffy 23 分钟前 | 历史 | 收藏 | 讨论 帮助 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文
← Selected writing

26 November 2026 | Computational imaging

Reconstructing 29 spectral images from a single monochrome frame using precisely timed flashes of light.

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

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.

Multispectral LED array in darkness

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.

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.

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

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.

MeasureInitial methodFinal method (GPU)
Median correlation (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 comparison with the reference images.

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.

Reconstruction and frame processing times
Processing times and the time from receiving each frame to publishing its preview.

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.

联系我们 contact @ memedata.com