Giter VIP home page Giter VIP logo

imagingsimulation's Introduction

Optical aberrations Correction in Postprocessing using Imaging Simulation (TOG 2021, PostRec. SIGGRAPH 2022)

The code releasing is finally approved by our funding agency. Thanks for your waiting!

by Shiqi Chen, Huajun Feng, Dexin Pan, Zhihai Xu, Qi Li, and Yueting Chen

This is the official Pytorch implementation of "Optical aberrations Correction in Postprocessing using Imaging Simulation" [Paper]

🚩 Updating(New Features/Updates)

  • ✅ Oct. 19, 2023. Add the illustration of psf calculation and the script of analysis module in ray tracing.

First let me introduce you the how to calculate the psf of a given optical systems

State the lens and start the analysis

import torch
import difftrace as dg
# load the lens
device = torch.device('cpu')
dtype = torch.float64
lens = dg.System('lens_file/doubleGauss.json', torch.float64, torch.device('cpu'))
# define analysis
views = torch.tensor([0., 10., 14.], dtype=dtype, device=device)
wavelengths = torch.tensor([dg.lambda_F, dg.lambda_d, dg.lambda_C], dtype=dtype, device=device)
ana = dg.Analysis(lens, views, wavelengths, dtype=dtype, device=device)

Calculate the psfs

import matplotlib.pyplot as plt
pupil_sampling = 201
image_sampling = 101
image_delta = 0.0005
sample_distribution = 'hexapolar'
psf_kirchoff = ana.psf_kirchoff(pupil_sampling=pupil_sampling, 
                                image_sampling=image_sampling,
                                image_delta=image_delta)
plt.imshow(psf_kirchoff, cmap='jet')

here we optimize the precalculation of the entrace pupil and the rays sampling, so be free to directly use this method

We also provide many other analysis such as spot diagram, mtf, wavefront map, ... Please check the ./PSF_generation/ray_tracing/analysis.ipynb for more information

This repo is still in updating.

imagingsimulation's People

Contributors

tangeego avatar

Stargazers

Aleksandra avatar Chao Tan avatar Dan-Boltzmann avatar Robin Liu  avatar  avatar  avatar LYK avatar A Clever Dog avatar  avatar Jingxi Li avatar Li Yuxuan avatar Feiran LI avatar  avatar  avatar  avatar  avatar Chen Zida avatar xttt avatar Marcos V. Conde avatar Adam Babinec avatar Vidacios avatar Hu Shanshan avatar  avatar  avatar Bin Xie avatar  avatar  avatar  avatar Haiquan Hu avatar  avatar blinglingnan avatar Jiapu Yan avatar Richard Huang avatar Sen Chen avatar Thomas Eboli avatar  avatar  avatar Tianjiu avatar Kaixuan Wei avatar Feng Qixin avatar  avatar Yu Liang avatar  avatar  avatar Zhixiang Wang avatar Jinwei Gu avatar killyoubut avatar  avatar  avatar Shiming Hu avatar Xinge Yang avatar

Watchers

Feiran LI avatar  avatar  avatar Aleksandra avatar

imagingsimulation's Issues

问题请教

您好,看到了您的代码,工作非常棒!具有非常重大的意义!
有一个问题向您请教, judge_main_wav函数的作用不是很理解
(1)为什么通过判断视场值来确定某个波长所对应的数据?
(2)另外,明显在该函数中只有少数几个波长的数据会被调用,例如730nm, 400nm, 450nm....,这样的话大量波长对应的样本数据未被调用?
非常希望得到您的回复!非常感谢!

request for full paper

hello alumna, I am very interested in your work and want to learn more about it. Could you send your paper "optical aberrations correction in post processing using imaging simulation" to my email:[email protected], thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.