Skip to main content

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

Metadata

Release files for neuron-image-denoise 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuron-image-denoise 0.0.4
File Size Uploaded Provenance Actions
neuron-image-denoise-0.0.4.tar.gz 8.2 kB Without provenance Details for neuron-image-denoise-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neuron-image-denoise 0.0.4
File Interpreter ABI Platform Actions
neuron_image_denoise-0.0.4-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for neuron_image_denoise-0.0.4-cp310-cp310-win_amd64.whl

Total release size: 37.7 kB

Release files / neuron-image-denoise-0.0.4.tar.gz

Download URL neuron-image-denoise-0.0.4.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
edebc3ecb734d75c1911681feedff341b049c7746a9317595a260b68816f2503
BLAKE2b-256 checksum
How to use checksums
652a8e87266e3ee74498e03bb3c1a50c0a6441b9a6028943ae9943b89c604877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release files / neuron_image_denoise-0.0.4-cp310-cp310-win_amd64.whl

Download URL neuron_image_denoise-0.0.4-cp310-cp310-win_amd64.whl
Size 29.5 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
369c2be1145bf9131503bda4c15fa8f22fea3c8d74191805b792aa9c8663066d
BLAKE2b-256 checksum
How to use checksums
bd395b7d93fdc593146875cadbb656d653971cb1c9943a8be7a0c517efd1605b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Security for neuron-image-denoise 0.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page