Abstract
Hyperspectral imaging (HSI) systems acquire images with spectral information over a wide range of wavelengths but are often affected by chromatic and other optical aberrations that degrade image quality. Deconvolution algorithms can improve the spatial resolution of HSI systems, yet retrieving the point spread function (PSF) is a crucial and challenging step. To address this challenge, we have developed a method for PSF estimation in HSI systems based on computed wavefronts. The proposed technique optimizes an image quality metric by modifying the shape of a computed wavefront using Zernike polynomials and subsequently calculating the corresponding PSFs for input into a deconvolution algorithm. This enables noise-free PSF estimation for the deconvolution of HSI data, leading to significantly improved spatial resolution and spatial co-registration of spectral channels over the entire wavelength range.
Similar content being viewed by others
Introduction
Imaging spectroscopy, nowadays more commonly referred to as hyperspectral imaging (HSI)1, is a valuable tool for a wide range of applications, such as remote sensing, precision agriculture, food quality inspection, medical diagnosis, and material analysis, among others2. By capturing images across a wide range of wavelengths, HSI reveals additional spectral information beyond the capabilities of conventional RGB or grayscale imaging. However, due to the use of a large wavelength range, HSI systems often suffer from chromatic and other optical aberrations that can degrade image quality and reduce spatial resolution.
To address this problem, deconvolution algorithms have been utilized to improve spatial resolution in HSI systems3,4,5,6. In image processing, deconvolution is the numerical reversal of image blurring that occurs during image acquisition due to optical aberrations. Deconvolution presupposes the retrieval of the point spread function (PSF) of the imaging system, which is a crucial step in the process. A PSF represents the response of an optical system to a point source. The most straightforward way to measure the PSF of an HSI system is by imaging point-like samples such as illuminated metal spheres or pinholes with a size smaller than the diffraction limit of the system under investigation7,8. However, due to the required small size of point-like sources, the signal-to-noise ratio can be quite low, which can prohibit successful PSF measurement in spectral regions with low sensitivity of the HSI system. An alternative approach for PSF estimation is the simulation of the optical system9,10,11. This can only be done if all the components of the system are known, which is usually not the case for commercial devices from the user’s point of view. Another very promising approach for PSF estimation is analyzing the response of edge or random noise targets12,13,14. However, current methods can be quite extensive in terms of image processing, as a regularization step is usually required to ensure the similarity of neighboring PSFs.
A user-friendly PSF estimation method, when combined with image deconvolution, has the potential to significantly enhance the image quality of HSI systems without additional hardware investments. This approach is particularly advantageous for the development of systems with intrinsically suboptimal optical designs, such as low-cost and miniaturized configurations and could thus promote the widespread use of HSI systems.
Here, we propose a novel method for PSF estimation in HSI systems based on computed wavefronts. Our method employs a simulated annealing optimization algorithm to computationally estimate the PSF. During each iteration of the optimization, the shape of a computed wavefront is modified, and the corresponding PSF is calculated. This PSF is then used for the deconvolution of the input image. The quality of the resulting deconvolved image is evaluated by computing the normalized cross-correlation (NCC) between the deconvolved image and a digital ground truth template. This process continues until the simulated annealing algorithm reaches its termination condition, thereby maximizing the NCC and generating an accurate PSF estimation of the imaging system and a deconvolved image with improved spatial resolution. Since the PSF is spectrally and spatially variant, this estimation process is applied to several spectrally and spatially separated patches of the entire dataset. The remaining PSFs are obtained by interpolating the computed wavefronts between all patches and calculating the corresponding PSFs from the interpolated wavefronts. Figure 1 illustrates the basic concept of our method. These obtained PSFs are then used to deconvolve entire HSI datasets from subsequent acquisitions. Additionally, the estimated PSFs are validated against experimentally acquired PSFs, obtained using a fiber-based array of point-like light sources.
Basic concept for PSF estimation. HSI data and a digital ground truth template are divided into smaller patches to account for the spatial and spectral variation of the PSF. PSF estimation is performed for each patch individually. Due to the expected smooth transition of PSF shapes in the spatial and spectral directions, PSFs are estimated for a selected set of key patches and interpolated for the remaining patches. For the PSF estimation procedure for a single patch, an initial wavefront is derived from a list of Zernike polynomial coefficients. The corresponding PSF is then calculated and used to deconvolve the input patch. The deconvolved patch is compared with the digital template by computing the NCC. Based on the NCC value, the Zernike polynomial coefficients are adjusted by introducing a small random variation. If the NCC has improved, the adjustments are made to the current coefficient values; otherwise, the adjustments are applied to the previous coefficient values. Using these updated coefficients, a new wavefront is computed, and the process is repeated until the optimization algorithm’s stopping condition is met, resulting in an accurate PSF estimate for the current patch.
Related work
Deconvolution techniques have been extensively studied for various imaging systems and can be categorized into non-blind, blind, and semi-blind approaches. A non-blind approach is applicable when the PSF is fully known. Blind techniques are employed in the absence of a priori knowledge of the PSF. Semi-blind approaches are used when partial information about the PSF is available, which reduces the range of possible PSFs. The work we present here can be considered a semi-blind method. We use the assumption that blurring in the HSI images occurs only due to typical optical aberrations that can be described with Zernike polynomials. Based on this assumption, we model the PSF using a computed wavefront expressed as a set of Zernike polynomials, thereby constraining the solution space of possible PSFs. Additionally, we utilize a ground truth image that, while not providing the PSF directly, still offers a priori knowledge that aids in the PSF estimation process. There are already several deconvolution techniques for spatially varying PSFs published, as reviewed in15,16,17,18,19.
Here, we highlight the most closely related works. Brauers et al. proposed a method for direct PSF estimation of multispectral cameras12. In this method, an image of the random noise target is acquired and split into smaller patches to account for the spatially variant nature of the PSF. For each patch, the optical transfer function (OTF) is estimated in the frequency domain using a digital ground truth template of the noise target. The PSFs are derived from the estimated OTFs. To ensure smooth spatial variation and noise-free PSF estimation, regularization of the estimated PSFs, mean and median filtering, and thresholding are performed. Compared to our method, there are some similarities. We also use a digital ground truth template, albeit not a random noise target but a text page with black letters on a white background, which makes the image registration of the digital template easier. However, we do not estimate the OTFs. Instead, we generate a noise-free PSF estimate by utilizing the computed wavefront for only a small number of spatial positions. To ensure spatially smooth variation of the PSFs, we interpolate the computed wavefront for all remaining patches where we did not perform a PSF estimation. This way, a smaller number of PSF estimations are required and no additional post-processing of the PSFs is necessary.
In the context of 3D fluorescence microscopy, Maalouf et al. proposed a method that interpolates depth-varying PSFs using only a limited number of measured PSFs20. They model the PSFs directly using Zernike polynomials, specifically employing 45 Zernike polynomials for the modeling. This approach differs from ours, where we use Zernike polynomials to model a wavefront that is then converted into a PSF. Our method requires significantly fewer Zernike polynomials to accurately represent PSFs formed by typical image aberrations.
To estimate the turbulence-degraded PSF from a single intensity image, Siddik et al. use a convolutional neural network to predict a modified set of Zernike polynomial coefficients which are then used to generate the corresponding PSF21. However, they considered only space-invariant PSFs, which usually do not apply to camera-based imaging systems.
The novelty in our proposed method lies in the use of computed wavefronts for PSF estimation on only a few spatially and spectrally separated image patches of a hyperspectral dataset and obtaining the remaining PSFs by interpolating the corresponding computed wavefronts both spatially and spectrally. This approach ensures, by design, a smooth spatio-spectral variation of the PSFs without the need for additional regularization steps.
Methods
Overview
The primary objective of our method is to generate a set of PSFs for a HSI system, enabling the deconvolution of spectral imaging data and thereby enhancing spatial resolution across all wavelengths. To account for the spatial and spectral variability of the PSF, we divide each frame (spectral division) of the HSI data into smaller patches (spatial division) and estimate the PSF for each individual patch (see “Description of the used HSI system and image division into patches” Section). We describe PSFs using computed wavefronts represented by Zernike polynomials, which are commonly used to model optical wavefront aberrations. These wavefronts can easily be transformed into PSFs (see “Describing optical aberrations with wavefronts and calculating the PSF” Section). The wavefront representation offers the advantage of accurately describing the PSFs of optical systems with circular apertures using only a few Zernike polynomial coefficients. By adjusting these coefficients, the shape of the wavefront-and consequently the PSF-changes. We leverage this ability to iteratively optimize the PSF estimate using an optimization algorithm. This algorithm involves performing a deconvolution with the current PSF and comparing the deconvolved patch with the corresponding ground truth patch (see “Optimization algorithm for PSF estimation” Section). The optimization algorithm is implemented in a custom software solution and applied to data from a commercial HSI system (see “Technical implementation of the optimization algorithm” Section). Furthermore, we validate the PSF estimates by comparing them to measured PSFs obtained from a custom build array of point-like light sources (see “Measuring the PSF and the spatial resolution” Section).
Description of the used HSI system and image division into patches
In this work, we utilize the HSI system BlackBox by HAIP Solutions GmbH, Germany. This system operates as a spatial scanning system, also known as a push-broom system, acquiring one spatial line at a time. The imaging data has a resolution of 640 pixels by 480 pixels per frame, with a total of 501 frames per acquisition. The frames cover a wavelength range from 500 to 1000 nm, corresponding to a sampling interval of 1 nm per frame, with a spectral resolution of approximately 5 nm. To enable spatially varying PSF estimation, we divide each frame into 48 patches, each with a resolution of 80 pixels by 80 pixels. This patch size is comparable to that used by Brauers et al., who employed patches of 96 pixels by 80 pixels and achieved reasonable results12. However, for deconvolution, we extend each patch by adding a 10-pixel-thick border around it. After deconvolution, each patch is cropped back to its original size. These overlapping borders help avoid discontinuities at the edges of adjacent patches, particularly when large tip or tilt Zernike coefficients are present. Although these two Zernike polynomials are not responsible for any image aberrations, they shift the patch laterally and thus compensate for any mismatch between the image and the ground truth. This is crucial since our HSI system exhibits a slight wavelength-dependent spatial shift.
Describing optical aberrations with wavefronts and calculating the PSF
Aberrations in imaging systems can be described using the concept of wavefronts, which are surfaces that represent the phase of an optical wave as it propagates through an imaging system. Wavefronts can be decomposed into a set of Zernike polynomials, which provide a mathematical description of circular wavefront profiles associated with common optical aberrations. To specify how much each Zernike polynomial \(Z_{n}(r, \theta )\) contributes to the overall aberration \(W(r,\theta )\) each polynomial can be multiplied with a coefficient \(c_{n}\):
Polar coordinates \(\rho\) and \(\theta\) are used to represent the position on the circular wavefront. n represents the Noll index of the current Zernike polynomial, and N represents the total number of Zernike polynomials used. An exhaustive overview of Zernike polynomials including detailed information about the Noll numbering scheme can be found in22. Zernike polynomials are orthogonal over a unit circle, making them an ideal basis for representing wavefront aberrations in circular apertures. The orthogonality allows for the separation of different types of aberrations. Each polynomial is associated with a specific type of aberration, such as defocus, astigmatism, coma, or spherical aberration. The coefficients \(c_n\) in Eq. (1) quantify the contribution of each aberration type to the overall wavefront error.
The values for \(c_{n}\) are generated using the method described in the subsequent section, rather than obtained from a direct wavefront measurement. Consequently, \(W(\rho , \theta )\) may not accurately represent the actual wavefront errors of the optical system. Therefore, in this work, we refer to \(W(\rho , \theta )\) as the computed wavefront. To derive the PSF from the computed wavefront, we utilize a well-established method23. First, the complex pupil function is constructed:
The phase factor \(e^{-iW(\rho ,\theta )}\) describes the phase shift introduced by the computed wavefront. \(A(\rho , \theta )\) is the complex-valued amplitude transmission function, representing both the amplitude and phase modulation of the wavefront as it passes through an optical element. In our case it simply describes a circular aperture with radius \(r_0\), which can be represented as:
Once the complex pupil function \(P(\rho , \theta )\) has been obtained, the PSF of the optical system can be derived by calculating the squared modulus of the Fourier transform of the complex pupil function:
Equation (4) represents the intensity profile of the PSF at the position (u, v) on the image. The size and shape of the PSF are determined by the wavefront aberrations induced by the optical system. Conceptually, the PSF of an optical system is the image that would be obtained when imaging a point-like object.
Optimization algorithm for PSF estimation
We aim to optimize the coefficients of a set of Zernike polynomials that describe a digital wavefront. Our goal is to create a PSF from this wavefront, which, when used to deconvolve the input image, results in the best possible deconvolved image according to the chosen metric. In this work, we utilize the normalized cross-correlation coefficient as the image quality metric, defined by:
where \(I_1(x,y)\) and \(I_2(x,y)\) represent the pixel values of the images \(I_1\) (deconvolved image) and \(I_2\) (ground truth image), respectively, at the coordinates (x, y), and \(\bar{I_1}\) and \(\bar{I_2}\) are the mean values of \(I_1\) and \(I_2\), respectively.
The utilized Zernike polynomial set includes the polynomials from Noll index 2 to 8, which correspond to the optical aberrations: tip, tilt, defocus, oblique primary astigmatism, vertical primary astigmatism, vertical coma, and horizontal coma.
As optimization algorithm we use Simulated Annealing24, which is well suited for high-dimensional optimization problems and can avoid getting trapped in local optima. The idea behind Simulated Annealing is roughly based on the cooling process of a material, where the material is heated to a high temperature and then slowly cooled down, allowing the atoms to arrange in a state with minimal energy.
The algorithm starts with an initial solution, consisting of the initial values for the Zernike coefficients \(\textbf{c} = \begin{bmatrix}c_{1}\;c_{2}\;\dots \;c_{n}\end{bmatrix}\), and explores the search space by generating new solutions through random, minimal changes to these coefficients. To create a new solution, we use a constant perturbation factor \(\epsilon\) and generate new Zernike coefficients \(c'_i\) such that \(c'_i = \text {rand}(c_i - \epsilon , c_i + \epsilon )\), where \(\text {rand}(a, b)\) is a uniform random number in the interval [a, b].
The probability of accepting a new solution is 1 if the new solution leads to a better quality metric value than the current one; otherwise, it is given by \(P_{\text {Accept}} = \exp ((Q - Q') / T)\), where Q and \(Q'\) represent the quality metrics of the current and new solutions, respectively, and T is a control parameter referred to as temperature, analogous to the physical temperature in an annealing process. The temperature parameter controls the level of exploration in the search space and gradually decreases during the optimization process. This is achieved by multiplying it by a constant cooling factor \(\alpha\), where \(\alpha \in (0, 1)\), in each iteration step. In practice, this means that worse solutions are more likely to be accepted at the beginning of the optimization process when the temperature parameter is still high. As the optimization progresses, the temperature decreases, and at some point, only better solutions are likely to be accepted. The algorithm terminates when a predefined end temperature is reached. A summary of the optimization process in pseudocode is provided in Algorithm 1.
This optimization is performed on every 50th frame within the range from 550 to 950 nm and only on nine key patches per frame, specifically: four corner patches, four central edge patches, and one central patch, as illustrated in Fig. 1. Consequently, out of a total of 24,048 patches, the optimization algorithm was utilized on only 91 patches. For the remaining patches, PSFs are estimated by interpolating the Zernike polynomial coefficients using third-order polynomials fitted to the corresponding Zernike coefficients in both spatial and spectral dimensions. This approach ensures a smooth transition of the PSF from one position to another and significantly reduces the overall PSF estimation time. A smooth PSF transition is essential, as abrupt changes are typically not expected in conventional optical camera systems.
We use a piece of paper with printed text as the reference image because text with Roman letters contains edges in all directions. This enables our optimization algorithm to accurately recover the PSF characteristics across all orientations. Furthermore, using a text template simplifies the generation of a ground truth image, as it is easy to visually verify alignment with the original image. In general, other types of templates with edges oriented in all directions could also be utilized.
Technical implementation of the optimization algorithm
We have developed the PSF estimation procedure using C++ and Qt 525. To compute the discrete Fourier transform for the PSF calculation from a wavefront, we utilize FFTW version 3.3.1026. For image metric calculation and deconvolution, we employ the parallel computing library ArrayFire v3.8.227, which provides built-in deconvolution algorithms such as Richardson–Lucy, Tikhonov, and Landweber. Additionally, we have implemented Wiener deconvolution. While different deconvolution algorithms showed no significant difference in the resulting PSFs, we chose the Richardson–Lucy method for its control over the number of iterations, allowing a trade-off between sharpness, noise and computation time. In this work, we used 128 iterations. Polynomial fitting for wavefront interpolation is achieved using Eigen 3.4.028.
For easy interaction and visualization of the results we implemented a graphical user interface. In addition to optimization using Simulated Annealing, the software also allows for manual adjustment of the Zernike coefficients, i.e. the digital wavefront, to generate PSFs and apply them in deconvolution. The deconvolved image is displayed without noticeable delay, enabling intuitive exploration of the solution space. This is particularly useful for generating an initial solution for the Simulated Annealing optimization. For the central key patch of the first frame, we manually adjust the coefficients for defocus and astigmatism until a noticeable improvement in image quality is observed. This manually adjusted wavefront is then used as the initial solution for the Simulated Annealing optimization of the same patch. The resulting optimized wavefront is subsequently used as the starting wavefront for the remaining patches within the same frame. For patches in subsequent frames, we use wavefronts from the patches of adjacent frames as their initial wavefronts.
A video illustrating the optimization process of a single patch can be found in the supplementary materials (see Supplementary Movie 1). In the video, the image metric plot displays the NCC multiplied by − 100 instead of the NCC itself. Converting this maximization problem to a minimization problem was advantageous during software development, as it allowed for testing other image metrics that require minimization to achieve optimal results. Please note that the speed of the video has been increased; in reality, an optimization process involving 748 iterations, as shown in the video, takes approximately 100 seconds on the hardware used in this study (Intel®CoreTM i7-10750H CPU @ 2.60GHz, NVIDIA Quadro P620).
Measuring the PSF and the spatial resolution
For PSF measurement, we built a Polymethyl methacrylate (PMMA) light guide-based array of point-like light sources, see Fig. 2. We chose fibers with a diameter of 250 \(\upmu\)m. This is smaller than the size represented by one pixel, which is approximately 300 \(\upmu\)m, and smaller than the best optical resolution, across the entire spectral range, in the center of view, which is approximately 360 \(\upmu\)m. The array consists of 48 light guides, bundled on one side to create a single input for a halogen light source. The output is arranged evenly in an 6 by 8 pattern, matching the pattern of the PSF optimization regions. The fibers are large enough to provide sufficient light for HSI acquisition, However, for PSF acquisition, the integration time needed to be increased from 6,6 to 66 ms, which required a reduction in the spatial scanning speed for image acquisition. Before using the measured PSFs for deconvolution, contrast adjustment and normalization are performed for each PSF separately to ensure easy comparability between different PSFs.
The PMMA light guide-based array of point-like light sources used for PSF measurement. (a) The PSF measurement setup inside the HSI system (BlackBox by HAIP Solutions GmbH, Germany). The halogen lamp (not visible in the pictures) is inside a box to block light from the sides. (b) View of the point-like light sources with the halogen lamp enabled. The green and red spots in the center of the PSF measurement unit are distance alignment light spots from the HSI system. (c) Fiber bundle at the bottom of the PSF array box. When in use, this fiber bundle points inside the box with the halogen lamp.
To analyze the spatial resolution of the system, an image of the 1951 USAF resolution test chart was acquired and evaluated using the ASI_MTF plugin29 for ImageJ. This plugin calculates the Modulation Transfer Function (MTF) as a function of pixel spatial frequency. The resolution is defined as the distance corresponding to the spatial frequency at which the MTF curve drops to a contrast value of 26.4 % (Rayleigh criterion)30. Using this criterion and the known sizes of the elements in the USAF test chart, we determined the spatial resolution in millimeters for each frame of the HSI data set in both horizontal and vertical directions.
Results
Comparison between estimated and measured PSFs
We evaluate the accuracy of the estimated PSFs by quantifying the similarity between the estimated and actual PSFs of the HSI system. This evaluation employs the NCC, where values approaching 1.0 indicate higher similarity, and a value of 0.0 signifies no correlation. The actual PSFs were measured using a custom-built, fiber-based array of point-like light sources. To account for the spatial variance of the PSF, each frame is divided into a 6 by 8 grid of patches for PSF estimation, measurement, and deconvolution. Figure 3 presents the estimated and measured PSFs for a single frame at 700 nm.
Comparison of estimated and measured spatially varying PSFs. The top row shows single frames at 700 nm divided into 6 by 8 patches. The first frame shows the original unprocessed reflectance frame. The next two frames are deconvolved with estimated PSFs and measured PSFs, respectively. In the first frame of the bottom row, the normalized cross-correlation coefficient (NCC) is used to quantify the similarity between the estimated and measured PSFs. An NCC value of 1.0 indicates that the PSFs are identical, whereas a value of 0.0 indicates no correlation. The subsequent frames display the estimated PSFs and measured PSFs for each patch of the frame, respectively. The HSI images show a portion of a printed page with text sourced from a Wikipedia article31.
Figure 4 compares the PSFs of a single patch across different wavelengths. The NCC is also used here to quantify the similarity between the estimated and measured PSFs. The first 25 frames of the HSI data are too noisy for any meaningful PSF estimation or measurement, resulting in very low NCC values for the wavelength range of 500–525 nm in Fig. 5. For all other wavelengths, the PSFs show a high similarity to the measured PSFs.
Normalized cross-correlation coefficient between estimated and measured PSFs of all patches per frame for the full spectral range of our HSI system. The bold blue line shows the mean value of the NCC, and the dotted lines represent a distance of one standard deviation from the mean value. Due to the high noise level for the wavelengths from 500 to 525 nm, no PSF could be measured for this region, which correlates to very low NCC values at the beginning of the plot. Starting at 550 nm, the noise level in the measured PSFs is much lower, and the measured and estimated PSFs show a high degree of similarity, with NCC mean values above 0.8.
Spatial resolution
Figure 6 shows the spatial resolution, based on the Rayleigh criterion, in both vertical and horizontal directions for the center region of the HSI field of view for each wavelength. The comparison includes the unmodified original data set, the data set deconvolved with estimated PSFs, and the data set deconvolved with measured PSFs. The spatial resolution improves for all wavelength after deconvolution. Comparable results were achieved at the edges of the HSI field, whereby the original resolution was in some cases worse than 900 \(\upmu\)m and could be improved to approx. 450 \(\upmu\)m by deconvolution. The wavelength-dependent spatial resolution for the at the middle upper edge area of the HSI field of view can be seen in Fig. 7. The mean resolution across all wavelengths for the original and deconvolved data can be seen in Table 1.
Number of Zernike polynomials for PSF estimation
To investigate how many Zernike polynomials are required to appropriately describe the PSFs in our HSI system, we performed the PSF estimation with different sets of Zernike polynomials, see Table 2. Only seven polynomials (from Noll index 2 to 8) are sufficient to achieve a PSF estimation that is close to the measured PSF. Sets with more Zernike polynomials did not significantly improve the result, as can be seen in Fig. 8.
Results of the PSF estimation process for different numbers of Zernike polynomials (ZPs), see Table 2 for a list of the used polynomials. The first column shows the original image and the corresponding measured PSF, which was compared to the estimated PSFs via NCC calculation. These estimated PSFs were also used to deconvolve the original image. The “Image” row shows for each estimated PSF the corresponding deconvolved image.
Comparison between original and deconvolved images and reflectance spectra
Acquisitions from our HSI system exhibit a wavelength-dependent spatial shift, which can compromise the accuracy of spatio-spectral information extraction and processing. Our proposed method corrects this shift, as visualized in Fig. 9. The deconvolved dataset shows significantly improved spatial alignment across different wavelengths.
Comparison of wavelength-dependent spatial shift between the original dataset (left) and the deconvolved dataset using the estimated PSFs (right). Three spectral regions, each with a 50 nm bandwidth, are averaged, color-coded, and overlaid. Using the estimated PSFs for deconvolution spatially aligns all frames, minimizing the spatial shift.
A common method that utilizes spatio-spectral properties of HSI data to extract specific information is the Normalized Difference Vegetation Index (NDVI)32,33. This is a widely used metric that quantifies plant health and vigor by using information from the visible red range (e.g., at 680 nm) and from the near-infrared range (e.g., at 750 nm). It is calculated by dividing the difference between the red and near-infrared reflectance values by the sum of these reflectance values. However, since the spatial resolution in the near-infrared is usually slightly worse compared to the resolution in the red spectral range, the spatial information in the reflectance images does not match perfectly. This introduces a halo-like image artifact around edges which can be seen in the left part of Fig. 10. After deconvolution of the hyperspectral dataset, the resulting NDVI image shows a greatly reduced halo artifact, and finer details of the leaves are discernible (Fig. 10 right).
Comparison of NDVI for the original dataset (left) and the deconvolved dataset (right). The NDVI based on the original dataset exhibits an artificial halo around the edges of the tobacco leaves due to the difference in optical resolution of the red and near-infrared reflectance data. This image artifact is substantially reduced when using the deconvolved dataset for NDVI calculation.
Comparison of spectra for original and deconvolved data. Top left: Original and deconvolved frames at 680 nm, with circles indicating the areas used to extract the average spectra of all enclosed pixels. Top right: Original and deconvolved images at 750 nm. Bottom: Plot of the average spectra (left axis) for the original and deconvolved data. The difference between the two spectra (right axis) is close to zero across the entire wavelength range.
It is essential that the deconvolution process preserves spectral information when using the deconvolved data for calculating vegetation indices and performing other spectral analyses. Figure 11 presents the spectra of the original and deconvolved data sets from one of the tobacco leaves and their difference. The maximum difference between both spectral lines is less than 2.2% of the total value range.
Discussion
In this work, we demonstrated that computed wavefronts, based on Zernike polynomials combined with an optimization algorithm, can be used for accurate PSF estimation. Utilizing the estimated PSF for deconvolution significantly improved the spatial resolution of the hyperspectral data. To address the spatial and spectral variations of the PSF, we divided the hyperspectral data into patches, with each patch having a distinct PSF. We found that a small number of Zernike polynomials are sufficient to accurately describe a PSF in the HSI system we used. Moreover, only 91 out of 24,048 patches required PSF estimation via an optimization algorithm. The remaining PSFs are generated by interpolating the computed wavefronts. This interpolation approach reduces computation time and ensures a smooth transition of the PSFs. One significant advantage of our method is that the generated PSFs are free of noise. In contrast, other approaches that measure the response of specialized targets for PSF estimation12,13 require an additional noise reduction step before the estimated PSFs can be used for deconvolution. Using our estimated PSFs to deconvolve subsequent HSI images greatly improved spatial resolution while keeping the spectral information intact.
The resulting spatial resolution after deconvolution, using the estimated PSFs, is significantly improved. The original resolution varies both spatially and spectrally, and in some cases, it is worse than 900 \(\upmu\)m. After deconvolution, a more homogeneous spatial resolution is achieved, approximately 450 \(\upmu\)m, in both spatial and spectral directions. The resolution achieved using the estimated PSFs matches that attained with the measured PSFs in the vertical direction. In the horizontal direction, the measured PSFs yield a slightly better resolution. However, it is important to note that with the measured PSFs, deconvolution could not be successfully performed for all patches. This limitation arose because, at certain spatial and spectral locations, the noise levels were too high to recover a PSF, making deconvolution impossible at these positions.
A limitation of our approach is that the two-dimensional PSFs can only be used for deconvolution to improve spatial resolution. These spatial PSFs do not capture information about optical aberrations in the spectral direction. To address this, an additional spectral PSF measurement or estimation could be performed, for example, by using a monochromator as a light source, as demonstrated by Jemec et al.7.
Another limitation is the inherent trade-off between improved spatial resolution and amplified noise following deconvolution. While deconvolution enhances resolution, it can also increase noise and introduce ringing artifacts around edges. The number of iterations in the Richardson–Lucy algorithm provides a means to balance resolution improvement and noise amplification. However, the acceptable noise levels are highly dependent on the specific application and may require a quantitative analysis to determine appropriate parameters for each case.
Despite the promising results, our approach has some room for improvement that needs to be addressed in future studies. One crucial aspect is that the computed wavefronts, constructed using Zernike polynomials, do not necessarily represent the actual optical aberrations of the imaging system. Identical PSFs can be generated from different wavefronts34. In the worst-case scenario, two widely differing computed wavefronts in close spatial or spectral proximity can result in completely unsuitable interpolated wavefronts between them. A simple example for this issue is the sign of the defocus polynomial, where identical PSFs can be produced with both negative and positive defocus coefficients, with the remaining polynomial coefficients having opposite signs. To mitigate this, we constrain the defocus polynomial to only accept negative coefficients. However, when an optical system requires a high number of Zernike polynomials for accurate PSF estimation, the potential for these ambiguities increases. A straightforward approach to reduce the generation of widely differing wavefronts due to wavefront-PSF ambiguity is to use the wavefront of a previously estimated PSF as the initial solution for other patches in the frame. Additionally, employing optimization algorithms that restrict the solution space and adopt a greedy strategy-always selecting the immediate better solution-can help. However, this increases the risk of getting stuck in local maxima, resulting in suboptimal PSF estimates. There are several potential avenues for future research that could enhance the performance and applicability of our method. For example, alternative approaches to compute wavefronts beyond Zernike polynomials exist, such as simulating the shape of a deformable mirror with actuators beneath a continuous membrane surface. This could improve the resulting PSFs in systems where the assumption of circular wavefront profiles is inadequate. Additionally, it would be highly desirable to use an image quality metric that does not require a ground truth image as a reference. This advancement would transform our proposed method into a truly blind deconvolution technique. Another aspect that warrants further investigation is the determination of optimal patch size. In our study, the patch size was selected based on the sizes used in similar approaches found in the literature12,13,14. Conducting a systematic investigation into the optimal patch size could potentially lead to better deconvolution results.
In conclusion, we have introduced a novel method for PSF estimation in HSI systems. The use of estimated PSFs for patchwise deconvolution has demonstrated improvements in spatial resolution across all wavelengths and a reduction of the wavelength-dependent spatial shift in the image stack.
Data availability
The datasets generated and analyzed during this study are publicly available in the Research Data Repository of Leibniz University of Hannover at https://doi.org/10.25835/yu47lho4.
References
Polder, G. & Gowen, A. The hype in spectral imaging. Spectroscopy Europe (2021).
Khan, M. J., Khan, H. S., Yousaf, A., Khurshid, K. & Abbas, A. Modern trends in hyperspectral image analysis: A review. IEEE Access 6, 14118–14129 (2018).
Heide, F. et al. High-quality computational imaging through simple lenses. ACM Trans. Graph. 32, 1–14 (2013).
Jemec, J., Pernuš, F., Likar, B. & Bürmen, M. Push-broom hyperspectral image calibration and enhancement by 2D deconvolution with a variant response function estimate. Opt. Express 22, 27655–27668 (2014).
Avagian, K. & Orlandić, M. An efficient FPGA implementation of Richardson–Lucy deconvolution algorithm for hyperspectral images. Electronics 10, 504 (2021).
Jemec, J., Pernuš, F., Likar, B. & Bürmen, M. Deconvolution-based restoration of SWIR pushbroom imaging spectrometer images. Opt. Express 24, 24704–24718. https://doi.org/10.1364/OE.24.024704 (2016).
Jemec, J., Pernuš, F., Likar, B. & Bürmen, M. Three-dimensional point spread function measurements of imaging spectrometers. J. Opt. 19, 095002 (2017).
Mouroulis, P. Z. & McKerns, M. M. Pushbroom imaging spectrometer with high spectroscopic data fidelity: Experimental demonstration. Opt. Eng. 39, 808–816 (2000).
Hart, N. A., Gibbs, H. C. & Yeh, A. T. Compact spectrograph for hyperspectral imaging with overlapping fluorescent reporters. In Three-dimensional and multidimensional microscopy: Image acquisition and processing XXVII, Vol. 11245, 12–21 (SPIE, 2020).
Paul, B. D. & Rossi, A. J. Image simulation of hsi systems. In Imaging spectrometry XXV: Applications, sensors, and processing, Vol. 12235, 104–115 (SPIE, 2022).
Inamdar, D., Kalacska, M., Darko, P. O., Arroyo-Mora, J. P. & Leblanc, G. Spatial response resampling (sr2): Accounting for the spatial point spread function in hyperspectral image resampling. MethodsX 10, 101998 (2023).
Brauers, J., Seiler, C. & Aach, T. Direct PSF estimation using a random noise target. In Digital photography VI, Vol. 7537, 96–105 (SPIE, 2010).
Trimeche, M., Paliy, D., Vehvilainen, M. & Katkovnic, V. Multichannel image deblurring of raw color components. In Computational imaging III, Vol. 5674, 169–178 (SPIE, 2005).
Joshi, N., Szeliski, R. & Kriegman, D. J. PSF estimation using sharp edge prediction. In 2008 IEEE conference on computer vision and pattern recognition, 1–8 (IEEE, 2008).
Campisi, P. & Egiazarian, K. Blind image deconvolution: Theory and applications (CRC Press, 2007).
Berisha, S. & Nagy, J. G. Iterative methods for image restoration. In Academic press library in signal processing, Vol. 4, 193–247 (Elsevier, 2014).
Denis, L., Thiébaut, E., Soulez, F., Becker, J.-M. & Mourya, R. Fast approximations of shift-variant blur. Int. J. Comput. Vis. 115, 253–278 (2015).
Satish, P., Srikantaswamy, M. & Ramaswamy, N. K. A comprehensive review of blind deconvolution techniques for image deblurring. Traitement du Signal 37, 527–539 (2020).
Makarkin, M. & Bratashov, D. State-of-the-art approaches for image deconvolution problems, including modern deep learning architectures. Micromachines 12, 1558 (2021).
Maalouf, E., Colicchio, B. & Dieterlen, A. Fluorescence microscopy three-dimensional depth variant point spread function interpolation using zernike moments. JOSA A 28, 1864–1870 (2011).
Siddik, A. B., Sandoval, S., Voelz, D., Boucheron, L. E. & Varela, L. Deep learning estimation of modified zernike coefficients and recovery of point spread functions in turbulence. Opt. Express 31, 22903–22913 (2023).
Niu, K. & Tian, C. Zernike polynomials and their applications. J. Opt. 24(12), 123001 (2022).
Goodman, J. W. Introduction to Fourier optics (Roberts and Company Publishers, 2005).
Kirkpatrick, S., Gelatt, C. D. Jr. & Vecchi, M. P. Optimization by simulated annealing. Science 220, 671–680 (1983).
The Qt Company. Qt 5. Version 5.12.10, Released 2020-11-09, https://www.qt.io.
Frigo, M. & Johnson, S. G. The design and implementation of fftw3. Proc. IEEE 93, 216–231 (2005).
Yalamanchili, P. et al. ArrayFire—A high performance software library for parallel computing with an easy-to-use API (2015).
Guennebaud, G., Jacob, B. et al. Eigen v3. Version 3.4.0, Released 2021-08-18, https://eigen.tuxfamily.org.
E. Maddox. Plugin ASI_MTF. https://github.com/emx77/ASI_MTF (2020). Github.
Lasch, P. & Naumann, D. Spatial resolution in infrared microspectroscopic imaging of tissues. Biochimica et Biophysica Acta (BBA)-Biomembranes 1758, 814–829 (2006).
Wikipedia contributors. Bio-inspired photonics—Wikipedia, the free encyclopedia (2023). [Online; accessed 01-December-2022].
Rouse, J. W. et al. Monitoring vegetation systems in the Great Plains with ERTS. NASA Spec. Publ. 351, 309 (1974).
Mahlein, A.-K., Kuska, M. T., Behmann, J., Polder, G. & Walter, A. Hyperspectral sensors and imaging technologies in phytopathology: State of the art. Annu. Rev. Phytopathol. 56, 535–558 (2018).
Siddik, A. B., Sandoval, S., Voelz, D., Boucheron, L. E. & Varela, L. Supplementary document for deep learning estimation of modified zernike coefficients for image point spread functions. Optica Publishing Group[SPACE]https://doi.org/10.6084/m9.figshare.23312771.v2 (2023). Supplementary document available online.
Schindelin, J. et al. Fiji: An open-source platform for biological-image analysis. Nat. Methods 9, 676–682 (2012).
Narayanankutty, A. Alphaplot. Version 1.02-stable, Released 2022-01-18, https://alphaplot.sourceforge.io.
Eichhammer, E. Qcustomplot. Version 2.1, Released 2022-11-06, https://www.qcustomplot.com.
Inkscape Project. Inkscape. Version 1.2.2, Released 2022-12-09, https://inkscape.org.
TeXstudio Project. Texstudio. Version 4.4.1, Released 2022-11-27, https://texstudio.org.
MiKTeX Project. Miktex. Version 22.10, Released 2022-10-17, https://miktex.org.
Acknowledgements
This work is funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy within the Cluster of Excellence PhoenixD (EXC 2122, Project ID 390833453) and by the Lower Saxony Ministry for Science and Culture, Germany within the research initiative “zukunft.niedersachsen” (Project ID: ZN4069). We would also like to acknowledge the open source software tools that were instrumental in carrying out this work and preparing the manuscript. We used Fiji35 for basic image processing, AlphaPlot36 and QCustomPlot37 for data visualization, Inkscape38 for creating most of the figures, Qt 525, FFTW26, Eigen28 and ArrayFire27 for programming the described method and TeXstudio39 with MiKTeX40 for preparing the manuscript. We are particularly grateful for the developers and maintainers of these open-source packages for providing valuable resources to the research community.
Funding
Open Access funding enabled and organized by Projekt DEAL.
Author information
Authors and Affiliations
Contributions
M.Z. wrote the manuscript and developed and implemented the optimization method, with improvements contributed by H.B. and T.L. M.Z. and M.R. conceived and designed the experimental protocols. M.R. designed and built the PSF measurement unit. M.Z., M.R., and C.H. performed the analysis. S.R. and D.H. substantively revised the manuscript. All authors reviewed the manuscript.
Corresponding author
Ethics declarations
Competing interests
Michel Reifenrath is a co-founder of HAIP Solutions GmbH, which manufactures the HSI system used in this research. The system was purchased through standard channels and no preferential treatment was given in its selection or use. The other authors declare that they have no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Supplementary Information.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Zabic, M., Reifenrath, M., Wegner, C. et al. Point spread function estimation with computed wavefronts for deconvolution of hyperspectral imaging data. Sci Rep 15, 673 (2025). https://doi.org/10.1038/s41598-024-84790-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-024-84790-6