Despike
Python package to remove spikes in 2D images
Desciption
The spikes in 2D-images correspond to high-energy pixels generated by cosmic rays, sensor noise or dead pixels. They use to have values very different from the rest of their neighboor.
To find them, we use a moving box (5×5 pixels by default) on the image and we compare the mean/median of this sub-image to the central pixel. If the value is n (3 by default) times larger than the observed standard deviation we use the median value a the surrounding pixels (8 pixels by default) to replace the spike.
Install
With pip:
$ pip install despike
With the source files:
$ git clone https://github.com/seignovert/despike.git
$ cd despike ; python setup.py install
Usage
>>> import despike
>>> despike.spikes(img) # Search the location of spikes in the image
>>> despike.clean(img) # Clean the image from spikes
An example can be find in this Jupyter NoteBook.
Metadata
Release files for despike 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| despike-0.1.0.tar.gz | 158.0 kB | Without provenance | Details for despike-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| despike-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for despike-0.1.0-py2.py3-none-any.whl |
Total release size: 162.9 kB
Release files / despike-0.1.0.tar.gz
| Download URL | despike-0.1.0.tar.gz |
|---|---|
| Size | 158.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9494cabb363a56079cb165334f4ac58c882dea3390a92ed5fed65324c81a0411
|
|
BLAKE2b-256 checksum How to use checksums |
5428766de846bf9e6439a89fd92315a3ae6daa6a44a805c934e8a9f2d22780c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / despike-0.1.0-py2.py3-none-any.whl
| Download URL | despike-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4af58ce95b86ce9d04538d5b47300897204f77eb0071b2962ff30e8b3ffa563b
|
|
BLAKE2b-256 checksum How to use checksums |
5575ba6e0f05487970068be3ec018f12eeafd13d381ee462048db0460cadcc63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for despike 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.