Fluorescent neuron image denoising tools
Project description
Neuron Image Denoising
The 3D neuron image denoising filter cythonized.
Install
$ pip install neuron-image-denoise
User Guide
from neuron_image_denoise.filter import *
img: numpy.ndarray # 3D numpy array, 16bit
params = {
'ada_interval': (2, 3, 3),
'flare_interval': (2, 8, 8),
'ada_sampling': 3,
'flare_sampling': 8,
'flare_weight': .02,
'atten_depth': 4,
'flare_x':True,
'flare_y': True
}
out = adaptive_denoise(img, **params)
out = adaptive_denoise_16to8(img, **params) # 16bit to 8bit
Algorithm Explanation
Neurons are illuminated by the fluorescent proteins, which can be seen as dots in the space. Measuring the signal is to locate where the dots are, but the problem is, these dots can diffuse to outside of neurons and their light can be spreaded far away due to refraction and microcopy aberration.
Adaptive thresholding can reduce this effect by assuming that true signals stand out from the background, as the fluorescent given by the dots attenuates with distance. Methods like difference of gaussian play similarly, but adaptive threshold has the best and most stable effect together with way lower computation.
Yet there's another problem caused by the microscopy, and varies depending on the instrument. The images can be polluted by nearby slices, resulting in flares that look like a brush head. It is especially common with strong signals like somata, making the nearby neurites discernible. There are two ways to solve this, either using more advanced microscopy to reduce this effect to a small range, or measure this effect and cancel computationally.
Useful Links
Github project: https://github.com/SEU-ALLEN-codebase/neuron-image-denoise-py
Documentation: https://SEU-ALLEN-codebase.github.io/neuron-image-denoise-py
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
File details
Details for the file neuron-image-denoise-0.0.1.tar.gz
.
File metadata
- Download URL: neuron-image-denoise-0.0.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2780f069221fceccd22355b7a64db48fa055e36596fefcb3e974d36d67ebb17 |
|
MD5 | 4e3c2aea8473e89f7335aae4ac4b169d |
|
BLAKE2b-256 | 443f6f360c22d6f81b617887df913530de5742b8d4ce73ed6672a0d038a65d79 |
File details
Details for the file neuron_image_denoise-0.0.1-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: neuron_image_denoise-0.0.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 28.7 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 593ff014bb9c1302b59d1b2b7668d5ff1aff07ff6e24d91d2ff7c151b1db4fa9 |
|
MD5 | f6db71f5b908a37b406d507088f8cd51 |
|
BLAKE2b-256 | 871a78e90251147eab87ed23751ba94a1d762c023c5ed23e25e54318fb1662b9 |