Skip to main content

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

out = adaptive_sectional_feedforward_filter(img, sigma=12., truncate=2., scaling=1, suppression=.8)

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

neuron-image-denoise-0.0.4.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

neuron_image_denoise-0.0.4-cp310-cp310-win_amd64.whl (29.5 kB view details)

Uploaded CPython 3.10 Windows x86-64

File details

Details for the file neuron-image-denoise-0.0.4.tar.gz.

File metadata

  • Download URL: neuron-image-denoise-0.0.4.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for neuron-image-denoise-0.0.4.tar.gz
Algorithm Hash digest
SHA256 edebc3ecb734d75c1911681feedff341b049c7746a9317595a260b68816f2503
MD5 8063b46bc43037ec4cacfdfa84aa7427
BLAKE2b-256 652a8e87266e3ee74498e03bb3c1a50c0a6441b9a6028943ae9943b89c604877

See more details on using hashes here.

File details

Details for the file neuron_image_denoise-0.0.4-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for neuron_image_denoise-0.0.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 369c2be1145bf9131503bda4c15fa8f22fea3c8d74191805b792aa9c8663066d
MD5 4cc57aebfae274081d9f4b395cce4a9f
BLAKE2b-256 bd395b7d93fdc593146875cadbb656d653971cb1c9943a8be7a0c517efd1605b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page