Skip to content

2. Theoretical principles

PhotonicsOpenProjects edited this page Nov 28, 2023 · 2 revisions

Hyperspectral imaging

A digital image is a matrix in which each element called a pixel contains spatial information from the light intensity reflected by the photographed scene. This light intensity can also be resolved spectrally. The spectral resolution of an image can range from a single spectral information (panchromatic/monochromatic image) to more than 1000 spectral channels (hyperspectral image).

hyperspectral image

Thus a hyperspectral image is a three-dimensional matrix called datacube or hypercube. Two dimensions are spatial and the third is spectral. Thus each pixel of a hyperspectral image contains a spectrum of the photographed scene:

hyperspectral image

Hyperspectral imaging thus makes it possible to obtain spatial and spectral information about a scene. Its use coupled with spectroscopy analysis tools (chemometrics, index calculation or neural network) allows to estimate maps of concentration, identification or discrimination of chemical compounds from the photographed scene.

hyperspectral image

Single Pixel Imaging theory

General formulation

Single pixel imaging enables to reproduce a parsimonious under-sampled image of a scene using a single detector and several acquisitions. For each measurement, a specific pattern is projected onto a scene and an associated spectral coefficient is acquired.

A real positive measurement, $m_{k}$ (photon counts), of a scene $S$ of size $(M,N)$ can be expressed as a function of the integration time of the detector, $\Delta t$ (s), where the power is emitted by the source, $\phi_{0}$ (photons counts/s), a $p_{k} \in \mathbb{R}_{M \times N}$, and the dark current of the detector, D (photons/s), such that:

$$m_{k}=\Delta t \cdot (\phi_{0} \cdot p_{k}^{t}\cdot S+D)$$

Three examples of patterns from distinct bases are represented below:

patterns examples

Fourier basis

In a coordinate system (𝑥, 𝑦) a scene 𝑆 is analysable in the spatial frequency domain (𝑢, 𝑣) using its two-dimensional Fourier transform $\hat{S}$ such that:

$$\hat{S}(u,v)=\int_{x=-\infty}^{+\infty}\int_{y=-\infty}^{+\infty} S(x,y)\cdot e^{-2i\pi \cdot(xu+yv)}dxdy$$

This duality in 2D space is represented below:

patterns examples

Numerically, this relationship can be decomposed into two double sums such that:

$$\hat{S}(u,v)=\sum\limits_{x=0}^M\sum\limits_{y=0}^N S(x,y)\cdot cos\Big(2\pi \cdot\big(\frac{xu}{M}+\frac{yv}{N}\big)\Big) -i\cdot \sum\limits_{x=0}^M\sum\limits_{y=0}^N S(x,y)\cdot sin\Big(2\pi \cdot\big(\frac{xu}{M}+\frac{yv}{N}\big)\Big)$$

This relationship is reflected in the fact that a Fourier spectrum is reconstructable after projections of a series of real patterns (represented by the cosine) and a series of imaginary patterns (represented by the sine)

This double projection is compensated by the conjugate symmetry property of the Fourier transform. It is then only necessary to measure the values of a half spectrum in order to deduce the entirety:

patterns examples