Implementation of the autofocus method MAPFoSt. Publication: Binding J, Mikula S, Denk W. Low-dosage Maximum-A-Posteriori Focusing and Stigmation. Microsc Microanal. 2013
Project description
mapfost
mapfost is a python implementation of the autofocus method MAPFoST introduced in the publication Binding J, Mikula S, Denk W. Low-dosage Maximum-A-Posteriori Focusing and Stigmation. Microsc Microanal. 2013
Installation
Use the package manager pip to install mapfost
pip install mapfost
Usage
import mapfost as mf
res = mf.est_aberr([test_im1, test_im2])
Example
run the script run_sample.py
mf.test_installation()
Expected output is a scipy.optimize.minimize object (as shown below).
The x key in the following object is the estimated aberration vector.
hess_inv: <3x3 LbfgsInvHessProduct with dtype=float64>
jac: array([ 195312.50118701, -195312.50118701, 390624.9980372 ])
message: 'CONVERGENCE: REL_REDUCTION_OF_F_<=_FACTR*EPSMCH'
nfev: 24
nit: 5
njev: 6
status: 0
success: True
x: array([-1.10622, -1.31151, 0.58894])
...Installation Test Successful...
[-1.10622 -1.31151 0.58894]
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
mapfost-4.3.1-py3-none-any.whl
(12.0 kB
view hashes)