Wavelet Phase Harmonics in Python with GPU acceleration.
Project description
PyWPH : Wavelet Phase Harmonics in Python
PyWPH is a Python package designed for the computation and handling of the Wavelet Phase Harmonics (WPH) statistics. These statistics can be computed from real or complex images (2D data). Calculations are GPU accelerated using PyTorch/CUDA (torch>=1.9.0).
Install PyWPH and check out the examples/ folder. You will find elementary examples to compute WPH coefficients from an image, as well as more convoluted synthesis or denoising scripts.
This code is a rework and extension of https://github.com/Ttantto/wph_quijote.
If you use this package, please cite the following paper:
- Regaldo-Saint Blancard, B., Allys, E., Boulanger, F., Levrier, F., & Jeffrey, N. (2021). A new approach for the statistical denoising of Planck interstellar dust polarization data. arXiv:2102.03160
Related references:
- Mallat, S., Zhang, S., & Rochette, G. (2020). Phase harmonic correlations and convolutional neural networks. Information and Inference: A Journal of the IMA, 9(3), 721–747. https://doi.org/10.1093/imaiai/iaz019 arXiv:1810.12136
- Allys, E., Marchand, T., Cardoso, J.-F., Villaescusa-Navarro, F., Ho, S., & Mallat, S. (2020). New Interpretable Statistics for Large Scale Structure Analysis and Generation. Physical Review D, 102(10), 103506. arXiv:2006.06298
- Zhang, S., & Mallat, S. (2021). Maximum Entropy Models from Phase Harmonic Covariances. Applied and Computational Harmonic Analysis, 53, 199–230. https://doi.org/10.1016/j.acha.2021.01.003 arXiv:1911.10017
Install/Uninstall
Standard installation (from the Python Package Index)
pip install pywph
Install from source
Clone the repository and type from the main directory:
pip install -r requirements.txt
pip install .
Uninstall
pip uninstall pywph
Changelog
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
File details
Details for the file pywph-1.0.1.tar.gz
.
File metadata
- Download URL: pywph-1.0.1.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 091acbf8e9b1ad28070d016a0e6192217875724cc0eb86eaf3163537b70e56cc |
|
MD5 | 8e80406edf53d4c674d254da839dcfdc |
|
BLAKE2b-256 | ef3cd86beacc47dd15d72637a1a8bac0a269c7cb120d3d7f12358283ffddf65e |
File details
Details for the file pywph-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pywph-1.0.1-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94b9047402422c8bbad6a822d959107f61f014ac6701360a7f907fb1dfa2a292 |
|
MD5 | 2417596a36241194f3ea2f22167ab513 |
|
BLAKE2b-256 | 90675ffe200ba53654d9d88ba1b5fa27ce115142cc350dc4a24a9f216bda1c08 |