This repository contains the code to reproduce the results presented in the paper following paper:
*Nelson Diaz, Alejandro Alvarado, Pablo Meza, Felipe Guzman and Esteban Vera, "Multispectral Filter Array Design by Optimal Sphere Packing," in IEEE Transactions on Image Processing, 2023. link
This repository aims to design the multispectral filter array (MSFA) using sphere packing approach. The reconstruction is performed using the captured compressive projection and exploiting the MSFA using interpolation method, demosaicking methods and deep learning methods.
This code was written using Matlab R2022a. It should be downloaded the DemosaickingMultispectral3DSpherePacking repository
- Download this repository via git
git clone https://github.com/nelson10/DemosaickingMultispectral3DSpherePacking.git
- To run the code use the function MainFigures.m that performs the sensing, and the reconstruction using interpolation, demosaicking algorithms and deep learning.
- Or MainFigures.m that computes the coded aperture using sphere packing approach.
-
The datasets could be download from the following link
-
The files should be placed in the Dataset, Test, and Test1 folder of this repository.
-
Run the MainFigures.m files, it computes the figures of the paper from figures 2 to 9. Moreover,
Multispectral imaging collects a datacube of spatio-spectral information of a scene. Many acquisition methods for spectral imaging use scanning, preventing its widespread usage for dynamic scenes. On the other hand, the conventional color filter array (CFA) method often used to sample color images has also been extended to snapshot MSI using a Multispectral Filter Array (MSFA), which is a mosaic of selective spectral filters placed over the Focal Plane Array (FPA). However, even state-of-the-art MSFAs coding patterns produce artifacts and distortions in the reconstructed spectral images, which might be due to the non-optimal distribution of the spectral filters. To reduce the appearance of artifacts and provide tools for the optimal design of MSFAs, this paper proposes a novel mathematical framework to design MSFAs using a Sphere Packing (SP) approach. By assuming that each sampled filter can be represented by a sphere within the discrete datacube, SP organizes the position of the equal-size and disjoint spheres’s centers in a cubic container. Our method is denoted Multispectral Filter Array by Optimal Sphere Packing (MSFA-OSP), which seeks filter positions that maximize the minimum distance between the spheres’s centers. Simulation results show an image quality improvement of up to 2 dB and a remarkable boost in spectral similarity when using our proposed MSFA design approach for a variety of reconstruction algorithms. Moreover, MSFA-OSP notably reduces the appearance of false colors and zipper effect artifacts, often seen when using state-of-the-art demosaicking algorithms. Experiments using synthetic and real data prove that the proposed MSFA-OSP outperforms state-of-the-art MSFAs in terms of spatial and spectral fidelity.
This repository reproduces figures 2-9.