Hyperspectral imaging is widely used in various fields such as environmental observation, medical diagnosis, agricultural, waste sorting or food quality control [
Journal of the European Optical Society-Rapid Publications, Volume. 19, Issue 2, 2023027(2023)
Design and realization of a miniaturized high resolution computed tomography imaging spectrometer
The computed tomography imaging spectrometer (CTIS) is a relatively unknown snapshot hyperspectral camera. It utilizes computational imaging approaches to gain the hyperspectral image from a spatio-spectral smeared sensor image. We present a strongly miniaturized system with a dimension of only 36 × 40.5 × 52.8 mm and a diagonal field of view of 29°. We achieve this using a Galilean beam expander and a combination of off-the-shelf lenses, a highly aspherical imaging system from a commercial smartphone, and a 13 MP monochrome smartphone image sensor. The reconstructed hyperspectral image has a spatial resolution of 400 × 300 pixel with 39 spectral channels.
1 Introduction
Hyperspectral imaging is widely used in various fields such as environmental observation, medical diagnosis, agricultural, waste sorting or food quality control [
A CTIS system computes the hyperspectral information from a single captured sensor image. A typical optical design is illustrated in
Figure 1.Different CTIS designs using (a) a Keplerian and (b) a Galilean beam expander.
A reconstruction algorithm is required to derive the hyperspectral image from the sensor image. It solves a similar problem as the ones used for computed tomography scanners. Multiple two-dimensional projections are used to infer a three-dimensional data cube. In this paper, we use an implementation based on the expectation-maximization (EM) algorithm that utilizes spatial shift-invariance [
The system model is usually derived from a measured point spread fuction (PSF) for every spectral channel to be reconstructed. The PSF is a commonly utilized metric to assess the quality of imaging systems by measuring the image of a point light source. For a CTIS system, the resulting images look different from normal, as they include not only the direct image of the point light source at the center (zeroth diffraction order), but also the diffracted ones surrounding it. This point pattern still includes the optical aberrations, but more important, it also includes the position and spectral displacement of the higher diffraction orders. With increasing wavelength, the points move farther away from the zeroth diffraction order.
The PSF has to be measured only for one central point light source because spatial shift-invariance is utilized. In a perfect system, the sensor image of a scene matches the spectral sum of all PSF convolved with the corresponding (ground truth) spectral images of the object. The algorithm optimizes the estimated hyperspectral image iteratively by minimizing the difference between the computed sensor image and the measured sensor image.
The EM-algorithm is very sensitive to violations of the spatial shift-invariance. The reconstruction quality decreases considerably when this requirement is not met. Possible reasons for this are, for example, distortion in the sensor signal, spatially dependent aberrations, or noise in the PSF and the measured image of the scene. We use several pre-processing steps to optimize the match between the PSF and the pre-processed sensor signal, and hereby the reconstruction quality.
Furthermore, the EM-algorithm is very computationally intensive, which can lead to reconstruction times of several minutes. In recent years, there has been an increasing number of research efforts aimed at solving this problem by using neural networks [
2 Miniaturization
One major drawback we want to address is the relatively big size of most published CTIS systems [
3 Prototype
The goal for the prototype was to develop a system with a very compact form factor. It should also have a large FOV and a high resolution. To achieve this, we allow a certain degree of vignetting. All optics, except the DOE, should be ready-made. The system is designed for visible light, as there is a larger selection of off-the-shelf components for this range.
After evaluating several lens combinations in an optical design program, we decided on the design shown in
Figure 2.Optical design of the prototype.
It is important to spectrally limit the light transmitted by the system. Light with a wavelength for which there is no PSF measurement disrupts the reconstruction. The resulting signal cannot be assigned to any reconstructed spectral channel by the algorithm.
The following DOE is a custom, in-house produced binary computer generated hologram (CGH). It is made of photoresist on a 500 μm thick glass. It creates a 5 × 5 arrangement of the projections. Its design has been computed using Fourier optics and the binary search algorithm with a loss function that is optimized for CTIS [
The prototype is therefore not single shot capable. There are different possibilities to achieve a real single shot system. It can, for example, be accomplished with a small absorptive filter placed directly in the center of the image sensor. Something similar has been done by Okamoto et al. in one of the first CTIS publications [
Another optimization goal for the CGH design is to have a low stray light level. Because the zeroth order is much brighter, every stray light overlapping the higher order projections significantly worsens the signal, resulting in a reduced reconstruction quality. We cannot perfectly eliminate the stray light. Therefore, we reduce its influence by a pre-processing step as explained in Section 4.
Figure 3.Part of the CGH design file (a) and a photo of the finished glass waver (b).
The lens from a Sony Xperia 10 Plus smartphone (illustrated as a black box model) is used as re-imaging lens. We chose it because its stop is close to the front of the lens housing and its large image size (compared to the focal length of approximately 4 mm). The stop is used as the stop of the full system. Therefore, the light travels through the smartphone lens in the intended way. We also fix it to the aluminum mount with glue. The See3CAM CU135M from e-con Systems, with a monochrome, 10 bit, 13 MP image sensor, is used as the camera body. It has a pixel size of only 1.1 μm. The vital parts of the mechanics are made of anodized aluminum, everything else is 3D printed.
A photo of all the individual components and the assembled prototype can be seen in
Figure 4.Photo of all individual components (a) and the assembled prototype (b). (a) All components of the miniaturized prototype. A: field stop, B: long pass filter, C: lens 1, D: lens 2, E: short pass filter, F: aperture, G: CGH, H: lens 3, I: image sensor. (b) Photo of the assembled prototype.
4 Pre-processing and results
Figure 5.Raw sensor signals (a) and (b), stray light subtracted from the high exposure time image (c) shown in false color, and the pre-processed image (d). The low exposure time image is taken with an exposure time of 62.5 ms, the high exposure time image with an exposure time of (1 s). The subtracted stray light makes up to 20% of the signal of the higher order projections. (a) Low exposure time. (b) High exposure time. (c) Subtracted stray light. (d) Pre-processed image.
Some pre-processing is required to achieve the best result with the EM-algorithm. The following steps are usually performed for each measurement: subtraction of pre-captured dark images, rectification of the distortion caused by the non-linear diffraction, trim images to relevant area, remove stray light from the CGH, superimpose images taken with different exposure times.
The stray light removal gives the greatest improvement in reconstruction quality. The stray light originates mainly from the CGH and cannot be completely avoided. We accomplish the removal in two steps: A first stray light image is computed by convolving the cropped zero order image (low exposure time) with the zeroth diffraction order of the summed PSF (high exposure time). This approximates the stray light near the center, which is well described by the PSF. The second stray light image corrects the stray light farther away from the center. It is computed using a two-dimensional polynomial fit of order 3. Multiple sampling points are picked manually that are then used to calculate the image. The points are chosen to be in areas outside the projections. The signal would be zero here for a perfect system. An example of the combined stray light image is shown as a false color image in
Furthermore, we perform similar pre-processing steps with the measured PSF. To reduce noise, and the influence of local invariance, we perform a two-dimensional Gaussian fit for each spot and replace it with the result. This gives a symmetric, noise free spot. An RGB image, calculated from the PSF’s pre-processed hyperspectral data cube, is shown in
Figure 6.RGB image calculated from the digitally overexposed PSF data cube. The spot of one projection is depicted for a wavelength of 670 nm. It is shown before and after fitting.
Several factors influence the spectral characteristics of the reconstructed hyperspectral image. This includes, for example, the spectral distribution of the halogen light sources and the monochromator, and the spectral sensitivity of the optics (including the DOE) and the sensor. To obtain results comparable to ground truth measurements, we spectrally calibrate the reconstructed hyperspectral image. We use the reconstructed measurement of a Spectralon reflectance standard to determine a calibration curve. This curve contains a correction factor for each spectral channel. The Spectralon standard has a reflectance value of almost 100% over the entire used spectral range. Our measured spectrum gives the difference to this. The calibration curve has to be determined only once for a system when the illumination is kept constant.
The reconstruction result of the measurement taken of the ColorChecker is illustrated in its RGB representation together with some selected spectra in
Figure 7.Reconstruction results of the measurement taken of the ColorChecker. The RGB image is computed according to the CIE 1931 color space. It has a yellow tint because no blue light is measured. The shown spectra are averaged over a 5 × 5 pixel area indicated by A and B. The ground truth is shown in dashed black lines.
The overall system, including the reconstruction, is not linear. Therefore, the quality of the reconstruction is strongly object-dependent. We reconstructed with a step size of 7 nm because it gives good results, and it is the bandwidth of the monochromator. The PSF measurement can thus be used directly for the reconstruction. For simpler scenes, it is possible to reconstruct with a higher spectral resolution without quality loss. Simple to reconstruct scenes are, for example, very sparse (small object in front of a black background). Depending on the application, a tradeoff can be made between spectral resolution and reconstruction quality.
5 Conclusion
A strongly miniaturized and portable CTIS system has been presented. Despite its size, it has a large resolution and field of view. We achieved this using a Galilean instead of a Keplerian beam expander. It can be used in applications where a small physical size is required. The CGH has been optimized for the use with CTIS systems. Several pre- and post-processing steps are necessary to achieve a good reconstruction quality. The final result is in a good agreement with the ground truth values.
[1] M.J. Khan, H.S. Khan, A. Yousaf, K. Khurshid, A. Abbas. Modern trends in hyperspectral image analysis: A review.
[2] F. Hilton, R. Armante, T. August, C. Barnet, A. Bouchard, C. Camy-Peyret, V. Capelle, L. Clarisse, C. Clerbaux, P.F. Coheur, A. Collard. Hyperspectral earth observation from IASI: Five years of accomplishments.
[3] O. Carrasco, R.B. Gomez, A. Chainani, W.E. Roper. Hyperspectral imaging applied to medical diagnoses and food safety. Faust N.L., Roper W.E. (eds),
[4] M.A. Calin, S.V. Parasca, D. Savastru, D. Manea. Hyperspectral imaging in the medical field: Present and future.
[5] A. Picon, O. Ghita, P.M. Iriondo, A. Bereciartua, P.F. Whelan. Automation of waste recycling using hyperspectral image analysis.
[6] Y.Z. Feng, D.W. Sun. Application of hyperspectral imaging in food safety inspection and control: A review.
[7] J. Behmann, K. Acebron, D. Emin, S. Bennertz, S. Matsubara, S. Thomas, D. Bohnenkamp, M. Kuska, J. Jussila, H. Salo, A.K. Mahlein. Specim IQ: Evaluation of a new, miniaturized handheld hyperspectral camera and its application for plant phenotyping and disease detection.
[8] P. Levin, E. Ashkenazy, A. Raz, M. Hershcovitz, S. Bouwstra, D. Mendlovic, S. Krylov. A wafer level packaged fully integrated hyperspectral Fabry-Perot filter with extended optical range.
[9] B. Geelen, N. Tack, A. Lambrechts. A compact snapshot multispectral imager with a monolithically integrated per-pixel filter mosaic. von Freymann G., Schoenfeld W.V., Rumpf R.C. (eds),
[10] M. Hubold, J. Karl, R. Leitel, N. Danz, R. Brüning. Concept, manufacturing and challenges of ultra-compact snapshot multi-spectral multi-aperture imaging systems.
[11] N. Hagen, E.L. Dereniak, D.T. Sass. Fourier methods of improving reconstruction speed for CTIS imaging pectrometers.
[12] M.J. Ahlebæk, M.S. Peters, W.C. Huang, M.T. Frandsen, R.L. Eriksen, B. Jørgensen. The hybrid approach – convolutional neural networks and expectation maximization algorithm – for tomographic reconstruction of hyperspectral images.
[13] W.C. Huang, M.S. Peters, M.J. Ahlebaek, M.T. Frandsen, R.L. Eriksen, B. Jørgensen. The application of convolutional neural networks for tomographic reconstruction of hyperspectral images.
[14] M. Zimmermann, S. Amann, M. Mel, T. Haist, A. Gatto. Deep learning-based hyperspectral image reconstruction from emulated and real computed tomography imaging spectrometer data.
[15] M. Mel, A. Gatto, P. Zanuttigh. Joint reconstruction and super resolution of hyper-spectral CTIS images.
[16] F. Narea-Jiménez, J. Castro-Ramos, J.J. Sánchez-Escobar, A. Muñoz-Morales. Assessment of a computed tomography imaging spectrometer using an optimized expectation-maximization algorithm.
[17] M.S. Peters, R.L. Eriksen, B. Jørgensen. High-resolution snapshot hyperspectral computed tomography imaging spectrometer: Real-world applications. Georges M.P., Popescu G., Verrier N. (eds),
[18] R. Habel. 48–1: Invited paper: Spectral sensing with computed tomography imaging spectrometry.
[19] J.E. Harvey, R.N. Pfisterer. Understanding diffraction grating behavior: Including conical diffraction and rayleigh anomalies from transmission gratings.
[20] M.A. Seldowitz, J.P. Allebach, D.W. Sweeney. Synthesis of digital holograms by direct binary search.
[21] T. Okamoto, I. Yamaguchi. Simultaneous acquisition of spectral image information.
[22] C.E. Volin, M.R. Descour, E.L. Dereniak. Design of broadband-optimized computer-generated hologram dispersers for the computed-tomography imaging spectrometer. Descour M.R., Shen S.S. (eds),
Get Citation
Copy Citation Text
Simon Amann, Tobias Haist, Alexander Gatto, Markus Kamm, Alois Herkommer. Design and realization of a miniaturized high resolution computed tomography imaging spectrometer[J]. Journal of the European Optical Society-Rapid Publications, 2023, 19(2): 2023027
Category: Research Articles
Received: Jan. 25, 2023
Accepted: Apr. 28, 2023
Published Online: Dec. 23, 2023
The Author Email: Amann Simon (amann@ito.uni-stuttgart.de)