The simulation generates the aberrated PSF on the pupil with Zernike polynomial 5-22 orders, and corrects them with different methods:
- GA (Genetic Algorithm). 1000+measurements
- Modal method. 350+measurements
- SPGD (Stochastic Parallel Gradient Descent). 250+measurements
- Optimal Modal method. 150+measurements
All the methods follow the basic direction---> Estimate the Zernike polynomial coefficients based on images with some of measurements.
A comparison of different metrics (the steeper the curve, the better the metric).
- M1: Variance (
aberration.m
); - M2: Sharpness (
aberration2.m
); - M3: Gradient (
aberration3.m
); - M4: Summation (
aberration4.m
).
This repo. is made just for self using. It may have bugs or trouble. You can contact me with a github issue.
If you find it useful, please cite our work: