Skip to content

freemercury/Aberration_correction_metasensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Aberration_correction_Meta_sensor

Title: Matlab code for "An integrated imaging sensor for aberration-corrected 3D photography"

Version: 1.0

Copyright: 2022, Jiamin Wu, Yuduo Guo, Chao Deng, Lu Fang, Qionghai Dai

doi: https://www.nature.com/articles/s41586-022-05306-8

Edited based on the reference [1][2][3][4].

Matlab code for "An integrated imaging sensor for aberration-corrected 3D photography"

This package contains the implementations of the algorithms, including PSF compute, Lightfield data realign, Lens aberration correction, Motion(Turbulence) correction, and Meta-data reconstruction, which are described in detail in the paper: JIAMIN WU, YUDUO GUO, CHAO DENG etc, "An integrated imaging sensor for aberration-corrected 3D photography". Nature, 2022.

Please cite our paper if using the code to generate data (e.g., images, tables of processing times, etc.) in an academic publication.

For algorithmic details, please refer to our paper.

Additional Large size Demo data can be downloaded with the following link:

  1. Folder: './Data/Calibration/demo.tif': https://doi.org/10.5281/zenodo.6645196

  2. Folder: './Data/Rawdata/ISO_5_5_11.0ms.0.tif': https://doi.org/10.5281/zenodo.6645196


How to use

The code is tested in MATLAB 2020b (64bit) under the MS Windows 10 64bit version with an Intel i9-10940X CPU, NVIDIA GeForce RTX 2080 Ti GPU and 128GB RAM.

  1. Unpack the package

  2. Include subdirectory in your Matlab path

  3. Set up the environment for subfunctions in python: Python 3.6, Pytorch >= 1.10.0, NVIDIA GPU (>=11 GB Memory) + CUDA

  4. Run the .m files in './Code/'.

    a). We have provided some demo data for test of all the main '.m' files described above. Some of the data are too large for GitHub. So we upload them in the Tsinghua cloud drive described before. The link has been realeased above. There are also some origing raw data of the scanning light field which are included in the Link below. These are the relevant data of the published paper. All of them can be processed through the pipeline with some hyper parameters fine tuned.

    b). The code for 3D photography of Meta images are refereced from paper[3]. The origin code for test can be downloaded here "https://github.com/hotndy/LFDepth_POBR.git". The test demo data for 3D photography can be downloaded here: "https://doi.org/10.5281/zenodo.6645196"

  • Download more Raw scanning light field data from the following link.
  1. https://doi.org/10.5281/zenodo.6641847
  2. https://doi.org/10.5281/zenodo.6643915
  3. https://doi.org/10.5281/zenodo.6644095

Main modules description

  1. Meta_PSF_compute.m: Output Meta PSF
  2. Rawdata_realign.m: Input with Scanning Light field Raw data. To realign LF Raw into Meta images.
  3. Reconstruction_main.m: Input with Meta images & Meta PSF. To Remove the aberration and reconstruct high resolution images.
  4. Dynamic_correction.m: Input with Meta images with motion artefacts. To eliminate the motion artefacts when shooting the dynamic scene.

Citation

If you use this code please cite the companion paper where the orginal method appeared:

Wu, J., Guo, Y., Deng, C. et al. "An integrated imaging sensor for aberration-corrected 3D photography". Nature (2022). doi: https://www.nature.com/articles/s41586-022-05306-8


IMPORTANT NOTE

Should you have any questions regarding this code and the corresponding results, please contact Yuduo Guo (gyd20@mails.tsinghua.edu.cn).

Reference:

  1. Wu, J., Guo, Y., Deng, C., ... Fang L., & Dai, Q. (2022). An integrated imaging sensor for aberration-corrected 3D photography. Nature.
  2. R. Prevedel, Y.-G. Yoon, M. Hoffmann, N. Pak, G. Wetzstein, S. Kato, T. Schr?del, R. Raskar, M. Zimmer, E. S. Boyden, and A. Vaziri, "Simultaneous whole-animal 3D imaging of neuronal activity using light-field microscopy," Nature Methods, 2014, 11(7): 727-730.
  3. Wu, J., Lu, Z., Jiang, D., Guo, Y., Qiao, H., Zhang, Y., ... & Dai, Q. (2021). Iterative tomography with digital adaptive optics permits hour-long intravital observation of 3D subcellular dynamics at millisecond scale. Cell, 184(12), 3318-3332.
  4. J. Chen, J. Hou, Y. Ni, and L.-P. Chau, Accurate light field depth estimation with superpixel regularization over partially occluded regions. IEEE Transactions on Image Processing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published