WeisongZhao / sparse-deconv-py

Official Python implementation of the 'Sparse deconvolution'-v0.3.0
Open Data Commons Open Database License v1.0
48 stars 17 forks source link
fluorescence-microscopy-imaging image-processing image-restoration microscopy python3 super-resolution

paper Github commit License
Twitter GitHub watchers GitHub stars GitHub forks

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)".

Instruction

from sparse_recon.sparse_deconv import sparse_deconv

im = 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

Version

Related links:

Open source Sparse deconvolution