-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add multi-energy feature to tike #74
base: main
Are you sure you want to change the base?
Conversation
Syncing from original
update from tomography/tike
updated from tomography/tike
update from tomography/tike
update from tomography/tike
update from tomography/tike
update from tomography/tike
update from tomography/tike
Update README.rst
Hello @YudongYao! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-08-12 21:39:20 UTC |
@YudongYao, I'm a little confused. Since the refractive indices of an object depend on the energy, shouldn't there also be a new dimension for the object (psi)? Otherwise, this implementation is the same as increasing the number of modes for a single energy. |
@carterbox As the X-ray energy is away from the elementary absorption edge of the sample in our case, so the object function is assumed to be constant with broadband illumination.
|
To clarify, the main reason this PR was not merged is that the proposed changes to existing code are not necessary to support the multi-wavelength feature (which can be accomplished only by adding additional probe modes of a specific structure since the special scaling factor for different wavelengths has not been included). |
Purpose
Add multi-wavelength (MW) method for broadband illumination ptychography reconstruction.
Approach
Multi-wavelength method is developed to deal with the deteriorated coherence property caused by the broadband illumination. The MW approach assumes that the diffraction pattern with a broadband source is the superposition of diffracted intensities from a series of wavelengths within the illumination bandwidth.
Therefore, the probe is decomposed into a set of spectral probe modes corresponding to different wavelengths. These spectral probe modes are generated using the Fresnel propagation from the focusing optics, which is implemented in 'src/tike/ptycho/probe_MW.py'.
To keep both the MW feature and the multiple probe modes to jointly solve the partial spatial and temporal coherence problem, another dimension (represented by energy) is added to the probe array. The probe is composed of a set of spectral modes, and each spectral mode includes multiple spatial probe modes. Now the probe shape is (ntheta, nscan // fly, fly, energy, nmodes, probe_shape, probe_shape). Correspondingly, changes are made to 'tike/operators', where the intensity, grad and cost are calculated.
In 'ptycho/solver', for the probe update, another loop over the energy is added to update each probe mode, each energy sequentially. For the position update,only the probe modes related to central wavelength is used to update the postion.
Pre-Merge Checklists
Submitter
yapf
to format python code.Reviewer