AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

DEV: Prototype some zernike polynomials #188

Open carterbox opened 2 years ago

carterbox commented 2 years ago

Purpose

Approach

Pre-Merge Checklists

Submitter

Reviewer

carterbox commented 2 years ago

I've been playing with Zernike-basis transforms of a reconstructed probe from some real data. I'm a bit concerned that zernike polynomials are not a good basis because the number of basis vectors needed to accurately represent the probe is approaching the number of pixels in the probe.

zernike-basis

We need like degree 40 polynomials which is 861 polynomials to get moderately high details.

stevehenke commented 2 years ago

Nicely done, you got this working quickly. I like that image. I have several questions on implementation details that might help. Maybe we can discuss tomorrow. One useful thing to look at is a bar chart of the Zernike coefficients. It can provide some insight into what is going on.

pep8speaks commented 9 months ago

Hello @carterbox! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 18:81: E501 line too long (1320 > 80 characters) Line 162:81: E501 line too long (95 > 80 characters)

Line 29:81: E501 line too long (84 > 80 characters)

Line 94:81: E501 line too long (87 > 80 characters) Line 148:81: E501 line too long (88 > 80 characters)

Comment last updated at 2024-01-19 18:23:37 UTC