跳到正文
Hacker News (official RSS)(eladorbach.com)·· 3 小時前品質評分62

Elad Orbach 用滾動快門從一張黑白影像還原 29 個光譜影像

Spectral imaging through time – Elad Orbach

重點導讀

逐個波段拍照才能取得光譜資訊,拍攝流程會比較繁複。

  • Elad Orbach 改用會逐列曝光的滾動快門相機,配合不同波長的 LED 定時閃光,讓影像不同列記錄不同波長的光,再用附近幾列的資料估算各處的光譜。這個方法從一張黑白影像還原出 29 個波段,並用逐波段拍攝的影像比對結果。
  • 作者也讓系統在 Jetson AGX Xavier 上即時處理連續畫面。這項實驗展示了用一般滾動快門相機取得多波段影像的做法,目前仍是概念驗證,細節還原和光譜準確度仍有改善空間。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文

← Selected writing

26 November 2026 | Computational imaging

Spectral imaging
through time

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

Reconstructed color imageReconstructed color

Spectral image at 398.76 nm398.76 nm

Spectral image at 514.60 nm514.60 nm

Spectral image at 657.58 nm657.58 nm

Spectral image at 878.31 nm878.31 nm

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

PrincipleApparatusTimingReconstructionExplore wavelengthsValidationPerformance

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.

Spectral image at 570.38 nm570.38 nm

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.

來源: Hacker News (official RSS) (eladorbach.com)
開啟原文

讀者討論

理性交流 · 即時討論