Routines for creating and analyzing laser speckle
Project description
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
2D speckle
Documentation
Full documentation and algorithm demonstrations are available at:
https://pyspeckle2.readthedocs.io
Try in JupyterLite (no install required):
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
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5b3077914969ec6c6873906b5172732614b68c027735bfd7f2e0bca7892177c
|
|
| MD5 |
32c803eb5f627d81f5480ea70025bf62
|
|
| BLAKE2b-256 |
3cf879757c048344518f2f148bfcc7a1fa16220dc8af482c2b8dd80c4b53300b
|
Provenance
The following attestation bundles were made for pyspeckle-0.6.1.tar.gz:
Publisher:
pypi.yaml on scottprahl/pyspeckle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyspeckle-0.6.1.tar.gz -
Subject digest:
b5b3077914969ec6c6873906b5172732614b68c027735bfd7f2e0bca7892177c - Sigstore transparency entry: 795306508
- Sigstore integration time:
-
Permalink:
scottprahl/pyspeckle@dd56d1f84ae3b3f4060f74567f73ad153c8dbf56 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/scottprahl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@dd56d1f84ae3b3f4060f74567f73ad153c8dbf56 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
064938d19a6fa4a9db13719f4185f33983175b2a23e5b91369e05ab09d04ed2e
|
|
| MD5 |
e9d3b1e45def1044f145e9c3885baac2
|
|
| BLAKE2b-256 |
8250a2bfcddee71bd6c957771c0f59b1ff035f66967af1ce79185db207cf155d
|
Provenance
The following attestation bundles were made for pyspeckle-0.6.1-py3-none-any.whl:
Publisher:
pypi.yaml on scottprahl/pyspeckle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyspeckle-0.6.1-py3-none-any.whl -
Subject digest:
064938d19a6fa4a9db13719f4185f33983175b2a23e5b91369e05ab09d04ed2e - Sigstore transparency entry: 795306629
- Sigstore integration time:
-
Permalink:
scottprahl/pyspeckle@dd56d1f84ae3b3f4060f74567f73ad153c8dbf56 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/scottprahl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@dd56d1f84ae3b3f4060f74567f73ad153c8dbf56 -
Trigger Event:
workflow_dispatch
-
Statement type: