Skip to main content

A package to run sim reconstructions including parameter estimation.

Project description

pyFairSIM

python version of the fast sim project

install

run:

pip install pyfairsim

settings

All settings and physical parameters are read from a json file. To get an example file run python -m create_example_settings.py and change all the explaining texts to the values you need.

run parameter estimation

To run a parameter estimation for a given sim-stack use

python -m pyfairsim.parameter_estimation -f <path-to-image> -s <path-to-settings> -o <path-to-save-settings>

For help use python -m parameter_estimation.py -h. Settings and save settings path can be the same then the obtained values overwrite the old values.

run reconstruction

To run a reconstruction for a given sim-stack use

python -m pyfairsim.reconstruction -f <path-to-image> -s <path-to-settings> -o <path-to-save-reconstructed-image>

For help use python -m reconstruction.py -h

run batch reconstruction

Runs a parameter estimation and then a reconstruction on all .tiff/.tif files in given folder and all subfolders. Command:

python -m pyfairsim.batch_reconstruction

run absolute phase estimation

Runs a non-iterative phase estimation based on auto-correlation by Wicker et al. For it to work parameter estimation needs to be executed first.

python -m pyfairsim.phase_estimation -f <path-to-image> -s <path-to-settings> -o <path-to-save-settings>

run tiled reconstruction

ATTENTION still in development!!! Tile size should be an even number, only supports square images with sizes divisible by the tile size. Overlap of the tiles for now is hard coded to be half of the tile size. Before running this a parameter estimation and phase estimation needs to be run. Tiled reconstruction will use absolute phase estimation for the tiles.

python -m pyfairsim.tiled_reconstruction -f <path-to-image> -s <path-to-settings> -o <path-to-save-reconstructed-image>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfairsim-0.0.3.tar.gz (33.0 kB view hashes)

Uploaded Source

Built Distribution

pyfairsim-0.0.3-py3-none-any.whl (38.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page