Package for processing polarised images to measure stress in granular media
Project description
photoelastimetry
Package for processing polarised images to measure stress in granular media
Installation
To install the package, run the following command in the terminal:
pip install photoelastimetry
Usage
After installation, two command line scripts are available:
image-to-stress
Converts photoelastic images to stress maps using the stress-optic law and polarization analysis.
image-to-stress <json_filename> [--output OUTPUT] [--polariser-angle ANGLE]
Arguments:
json_filename: Path to the JSON5 parameter file containing configuration (required)--output: Path to save the output stress map image (optional)--polariser-angle: Polariser angle in degrees relative to the 0 degree camera axis (default: 0.0)
Example:
image-to-stress params.json5 --output stress_map.png --polariser-angle 45.0
The JSON5 parameter file should contain:
folderName: Path to folder containing raw photoelastic imagesC: Stress-optic coefficient in 1/Pathickness: Sample thickness in meterswavelengths: List of wavelengths in nanometerscrop(optional): Crop region as [y1, y2, x1, x2]debug(optional): If true, display all channels for debugging
stress-to-image
Converts stress field data to photoelastic fringe pattern images.
stress-to-image <json_filename>
Arguments:
json_filename: Path to the JSON5 parameter file containing configuration (required)
Example:
stress-to-image params.json5
The JSON5 parameter file should contain:
p_filename: Path to the photoelastimetry parameter filestress_filename: Path to the stress field data filet: Thickness of the photoelastic materiallambda_light: Wavelength of light used in the experimentC: Stress-optic coefficient of the materialscattering(optional): Gaussian filter sigma for scattering simulationoutput_filename(optional): Path for the output image (default: "output.png")
Development
To set up the development environment, clone the repository and install the package in editable mode:
git clone https://github.com/benjym/photoelastimetry.git
cd photoelastimetry
pip install -e .
Authors
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
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 photoelastimetry-0.3.tar.gz.
File metadata
- Download URL: photoelastimetry-0.3.tar.gz
- Upload date:
- Size: 32.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f2ff96fe2b339846a3d67fe5e531fc01eb0c853e0b030263fc764715cfae4b2
|
|
| MD5 |
96322ddd5d928f52cb4a42dd52350ee3
|
|
| BLAKE2b-256 |
b67790b0747bb8327ccca03eeb1043586b6e39416c2894213dd62af482a4ffaa
|
Provenance
The following attestation bundles were made for photoelastimetry-0.3.tar.gz:
Publisher:
pypi.yml on benjym/photoelastimetry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photoelastimetry-0.3.tar.gz -
Subject digest:
3f2ff96fe2b339846a3d67fe5e531fc01eb0c853e0b030263fc764715cfae4b2 - Sigstore transparency entry: 684950649
- Sigstore integration time:
-
Permalink:
benjym/photoelastimetry@b55b8f2fcd09486272e779417b424ea15ec1a0cf -
Branch / Tag:
refs/tags/v0.3 - Owner: https://github.com/benjym
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@b55b8f2fcd09486272e779417b424ea15ec1a0cf -
Trigger Event:
release
-
Statement type:
File details
Details for the file photoelastimetry-0.3-py3-none-any.whl.
File metadata
- Download URL: photoelastimetry-0.3-py3-none-any.whl
- Upload date:
- Size: 34.1 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 |
5d8dc145dc3b585ac4c7c1984f672bd286c2e4e722420b34eb58a63e9c4f480c
|
|
| MD5 |
9d7708f33420422beed73a8b10dee033
|
|
| BLAKE2b-256 |
41709be9dbf8ac087f13b63d08b239f697b45b6705171fc98e57dfa6f65bc9f2
|
Provenance
The following attestation bundles were made for photoelastimetry-0.3-py3-none-any.whl:
Publisher:
pypi.yml on benjym/photoelastimetry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photoelastimetry-0.3-py3-none-any.whl -
Subject digest:
5d8dc145dc3b585ac4c7c1984f672bd286c2e4e722420b34eb58a63e9c4f480c - Sigstore transparency entry: 684950652
- Sigstore integration time:
-
Permalink:
benjym/photoelastimetry@b55b8f2fcd09486272e779417b424ea15ec1a0cf -
Branch / Tag:
refs/tags/v0.3 - Owner: https://github.com/benjym
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@b55b8f2fcd09486272e779417b424ea15ec1a0cf -
Trigger Event:
release
-
Statement type: