Skip to main content

Routines for creating and analyzing laser speckle

Project description

pypi github conda-forge doi

License Testing Docs Downloads

Try Online

pyspeckle is a Python library for generating and analyzing laser speckle fields. It provides reproducible numerical implementations of physically motivated speckle models used in optical metrology, coherent imaging, and biomedical photonics.

The methods implemented in this package are derived from Duncan & Kirkpatrick (Algorithms for simulation of speckle (laser and otherwise), Proc. SPIE 6855, 2008). These algorithms unify a variety of simulation approaches across:

  • objective speckle (non-imaged fields),

  • subjective speckle (imaged fields),

  • static speckle, and

  • dynamic speckle including translation, strain, boiling, and decorrelation.

Scientific Context

Coherent imaging systems—including SAR, OCT, ultrasound, ESPI, and laser speckle contrast imaging—produce granular interference patterns defined by the random phase relationships of scattered waves.

Representative Outputs

1D speckle

synthetic 1D speckle intensity profile

2D speckle

simulated 2D speckle field

Documentation

Full documentation and algorithm demonstrations are available at:

https://pyspeckle2.readthedocs.io

Try in JupyterLite (no install required):

https://scottprahl.github.io/pyspeckle/

Installation

pip:

pip install pyspeckle

conda:

conda install -c conda-forge pyspeckle

Citation

If you use pyspeckle in academic, instructional, or applied technical work, please cite:

Prahl, S. (2025). pyspeckle: Tools for objective and subjective laser speckle analysis (Version 0.6.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.8311677

BibTeX

@software{pyspeckle_prahl_2025,
  author    = {Scott Prahl},
  title     = {pyspeckle: Tools for objective and subjective laser speckle analysis},
  year      = {2025},
  version   = {0.6.0},
  doi       = {10.5281/zenodo.8311677},
  url       = {https://github.com/scottprahl/pyspeckle},
  publisher = {Zenodo}
}

License

pyspeckle is released under the MIT License. Contributions are welcome.

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

pyspeckle-0.6.1.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

pyspeckle-0.6.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file pyspeckle-0.6.1.tar.gz.

File metadata

  • Download URL: pyspeckle-0.6.1.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyspeckle-0.6.1.tar.gz
Algorithm Hash digest
SHA256 b5b3077914969ec6c6873906b5172732614b68c027735bfd7f2e0bca7892177c
MD5 32c803eb5f627d81f5480ea70025bf62
BLAKE2b-256 3cf879757c048344518f2f148bfcc7a1fa16220dc8af482c2b8dd80c4b53300b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyspeckle-0.6.1.tar.gz:

Publisher: pypi.yaml on scottprahl/pyspeckle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyspeckle-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: pyspeckle-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyspeckle-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 064938d19a6fa4a9db13719f4185f33983175b2a23e5b91369e05ab09d04ed2e
MD5 e9d3b1e45def1044f145e9c3885baac2
BLAKE2b-256 8250a2bfcddee71bd6c957771c0f59b1ff035f66967af1ce79185db207cf155d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyspeckle-0.6.1-py3-none-any.whl:

Publisher: pypi.yaml on scottprahl/pyspeckle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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