AdvancedPhotonSource / tike

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

NEW: Implement Alignment operator as composition with correct adjoints #96

Closed carterbox closed 4 years ago

carterbox commented 4 years ago

Purpose

Provides true forward and adjoint operations for the alignment problem.

Approach

Apparently, the adjoint operator for a linear flow/interpolation operation is a scatter of the interpolated points using the same weights from the gather operation [1]. We are doing a very similar operation in the USFFT just with a different interpolation kernel.

[1] http://www.reproducibility.org/RSF/book/gee/ajt/paper_html/node10.html

The rotation operation is just interpolation.

The padding operation adjoint is the unpadding operation if and only if the padding values are zero.

While the true adjoints exist for padding with zeros, I have also added the ability to choose a non-zero constant value for interpolation and padding because the background of our ptychography reconstructions is non-zero.

Pre-Merge Checklists

Submitter

Reviewer

pep8speaks commented 4 years ago

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

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2020-10-23 18:42:15 UTC