Skip to content

coolsyn2000/Computational-Imaging-Simulations-for-Beginners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulation scripts for computational imaging and Pyoptics Lib

  • Simulation Scripts: Simple simulation scripts for various kinds of computational imaging methods.

  • Pyoptics Lib: A simple and easy-modified python library for diffraction simulation

Simulation Scripts

There are several examples in ./simulation_scripts, which are presented in Jupyter Notebooks with code and markdown clearly.

  1. Gaussian Beam Propagation in 4f System

  2. Memory Effect Scattering Speckle Imaging

  3. Incoherent Fresnel Zone Aperture Lensless Imaging

  4. Ghost Imaging and Model-driven Neural Network Algorithm

  5. Fourier Ptychographic Imaging and Its Reconstruction

  6. Wavefront Shaping Refocus through Scattering Media

Pyoptics Lib

define optical path with class OpticsLayer and build system with class OpticsSystem

Build optical system with custom layer and set distances among the layers

import pyoptics

# Build Layers and System
sourceLayer = pyoptics.GaussianBeamLayer(L=512 * 1e-6, N=512, wavelength=532e-9, radius=15e-6)
lensLayer = pyoptics.LensLayer(L=512 * 1e-6, N=512, wavelength=532e-9, focal_length=5e-3)

Layers_list = [[sourceLayer], [lensLayer]]
Distance_list = [5e-3, 5e-3]

four_f_system = pyoptics.OpticsSystem(Layers_list, Distance_list)

Simulate wave propagation within single line code

z = sum(Distance_list) #z(m): propagation distance along Z axis
z_step = 1e-4 #z_step: simulation step of Z axis
number_of_z_step = int(z / z_step)

# simulation of light filed propagation along Z axis
field_along_z = four_f_system.field_propagation_along_z(z, z_step)

# wave propagtion at depth of Z
field_at_z = four_f_system.field_propagation(z)

About

simulation scripts for Scattering, Single-pixel, Lensless, FPM imaging etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors