Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weisongzhao/sparse-deconv-py
Official Python implementation of the 'Sparse deconvolution'-v0.3.0
https://github.com/weisongzhao/sparse-deconv-py
fluorescence-microscopy-imaging image-processing image-restoration microscopy python3 super-resolution
Last synced: about 22 hours ago
JSON representation
Official Python implementation of the 'Sparse deconvolution'-v0.3.0
- Host: GitHub
- URL: https://github.com/weisongzhao/sparse-deconv-py
- Owner: WeisongZhao
- License: odbl-1.0
- Created: 2021-11-15T07:53:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-08T08:33:52.000Z (9 months ago)
- Last Synced: 2024-02-08T09:23:42.877Z (9 months ago)
- Topics: fluorescence-microscopy-imaging, image-processing, image-restoration, microscopy, python3, super-resolution
- Language: Python
- Homepage:
- Size: 67.4 KB
- Stars: 32
- Watchers: 5
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![paper](https://img.shields.io/badge/paper-nat.%20biotech.-black.svg)](https://doi.org/10.1038/s41587-021-01092-2)
[![Github commit](https://img.shields.io/github/last-commit/WeisongZhao/sparse-deconv-py)](https://github.com/WeisongZhao/sparse-deconv-py/)
[![License](https://img.shields.io/github/license/WeisongZhao/sparse-deconv-py)](https://github.com/WeisongZhao/sparse-deconv-py/blob/master/LICENSE/)
[![Twitter](https://img.shields.io/twitter/follow/weisong_zhao?label=weisong)](https://twitter.com/hashtag/sparsedeconvolution?src=hashtag_click)
[![GitHub watchers](https://img.shields.io/github/watchers/WeisongZhao/sparse-deconv-py?style=social)](https://github.com/WeisongZhao/sparse-deconv-py/)
[![GitHub stars](https://img.shields.io/github/stars/WeisongZhao/sparse-deconv-py?style=social)](https://github.com/WeisongZhao/sparse-deconv-py/)
[![GitHub forks](https://img.shields.io/github/forks/WeisongZhao/sparse-deconv-py?style=social)](https://github.com/WeisongZhao/sparse-deconv-py/)
Sparse deconvolution Python v0.3.0
Official **Python** implementation of the '**Sparse deconvolution**', and the `CPU (NumPy)` and `GPU (CuPy)` calculation backend will be automatically selected.
We haven’t tested it thoroughly, and the development is work in progress, so expect rough edges. As a result, feedback, questions, bug reports, and patches are welcome and encouraged!
It is a part of publication. For details, please refer to: "[Weisong Zhao et al. Sparse deconvolution improves the resolution of live-cell super-resolution fluorescence microscopy, Nature Biotechnology (2021)](https://doi.org/10.1038/s41587-021-01092-2)".
## Instruction
- NOTE: The MATLAB version and detailed information can be found at https://github.com/WeisongZhao/Sparse-SIM.
- NOTE: The GPU acceleration feature using CuPy requires a CUDA-based NVIDIA GPU. It could provide a ~30 times faster reconstruction speed for a `512 × 512 × 5` image stack.
- Clone/download, and run the `demo.py````python
from sparse_recon.sparse_deconv import sparse_deconvim = io.imread('test.tif')
plt.imshow(im,cmap = 'gray')
plt.show()pixelsize = 65 #(nm)
resolution = 280 #(nm)img_recon = sparse_deconv(im, resolution / pixelsize)
plt.imshow(img_recon / img_recon.max() * 255,cmap = 'gray')
plt.show()
```## Tested dependency
- Python 3.7
- NumPy 1.21.4
- CuPy 9.6.0 (CUDA 11.5)
- PyWavelets 1.1.1## Version
- v0.3.0 full Sparse deconvolution features
- v0.2.0 iterative deconvolution
- v0.1.0 initialized and started from [dzh929](https://github.com/dzh929/Sparse-SIM-python)## Related links:
- MATLAB version of Sparse deconvolution: [MATLAB version](https://github.com/WeisongZhao/Sparse-SIM)
- A light weight MATLAB library for making exsiting images to videos: [img2vid](https://github.com/WeisongZhao/img2vid)
- An adaptive filter to remove isolate hot pixels: [Adaptive filter imagej-plugin](https://github.com/WeisongZhao/AdaptiveMedian.imagej)
- A tool for multi-color 2D or 3D imaging: [Merge channels](https://github.com/WeisongZhao/Palette.ui)
- **Further reading:** [#behind_the_paper](https://bioengineeringcommunity.nature.com/posts/physical-resolution-might-be-meaningless-if-in-the-mathmetical-space) & [blog](https://weisongzhao.github.io/rl_positivity_sim)
- **Some fancy results and comparisons:** [my website](https://weisongzhao.github.io/home/portfolio-4-col.html#Sparse)
- **Preprint:** [Weisong Zhao et al., Extending resolution of structured illumination microscopy with sparse deconvolution, Research Square (2021).](https://doi.org/10.21203/rs.3.rs-279271/v1)
- **Reference:** [Weisong Zhao et al., Sparse deconvolution improves the resolution of live-cell super-resolution fluorescence microscopy, Nature Biotechnology (2021).](https://doi.org/10.1038/s41587-021-01092-2)## Open source [Sparse deconvolution](https://github.com/WeisongZhao/Sparse-deconv-py)
- This software and corresponding methods can only be used for **non-commercial** use, and they are under Open Data Commons Open Database License v1.0.
- Feedback, questions, bug reports and patches are welcome and encouraged!