Skip to main content

A Python library for implementing Fourier ptychography algorithms to enhance captured images

Project description

fpm-py

Fourier ptychography is a computational image reconstruction technique that allows one high-resolution microscopic image to be acquired by combining multiple lower-resolution images captured at differing optical illumination angles.

More information about Fourier ptychography can be found here.

Installation

To use in your project: pip install fpm-py

Usage

See example usage in example.py, and below:

import fpm_py as fpm
import matplotlib.pyplot as plt

# load example dataset
dataset = fpm.ImageSeries.from_dict("datasets/example.pt")

# reconstruct the object
output = fpm.reconstruct(dataset)

# plot the output
plt.imshow(output.abs().cpu().numpy(), cmap="gray")
plt.show()

Upcoming

  1. Performance metric(s), to assess how well the resulting reconstruction worked.
  2. Full testing
  3. Complete documentation
  4. Public 10k+ image dataset

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

fpm_py-1.0.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fpm_py-1.0.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file fpm_py-1.0.0.tar.gz.

File metadata

  • Download URL: fpm_py-1.0.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for fpm_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f3c77e3b3ca41411433723833923bf1e18274315015c1142d1b40acafc766d0f
MD5 3e518e9d6bd07a4af95f64940ec63fe9
BLAKE2b-256 bdfcd36461b98a8c48d98e4364843a72583617c187c09f6150368574c1f33178

See more details on using hashes here.

File details

Details for the file fpm_py-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fpm_py-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for fpm_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b49e822050cdb78f256b7c7303b31ff8f86ca6b05cb61223f1bd2a93d0d2c2d4
MD5 929e8360139537a57e8c032c2a054757
BLAKE2b-256 e2a16599a0fe1931e16193399eba6fd877264c6771e2e5c2547ab3763bc2f2c3

See more details on using hashes here.

Supported by

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