Skip to main content

Denoising via adaptive binning for FLIM datasets.

Project description

pawFLIM: denoising via adaptive binning for FLIM datasets

PyPi PyPi License Paper

Installation

pawFLIM can be installed from PyPI:

pip install pawflim

Usage

import numpy as np
from pawflim import pawflim

data = np.empty((3, *shape), dtype=complex)
data[0] = ...  # number of photons
data[1] = ...  # n-th (conjugated) Fourier coefficient
data[2] = ...  # 2n-th (conjugated) Fourier coefficient

denoised = pawflim(data, n_sigmas=2)

phasor = denoised[1] / denoised[0]

Note that we use the standard FLIM definition for the $n$-th phasor $r$:

$$ r_n = \frac{R_n}{R_0} $$

where

$$ R_n = \int I(t) , e^{i n \omega t} dt $$

is the $n$-th (conjugated) Fourier coefficient.

See the notebook in examples for an example with simulated data.

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

pawflim-1.0.4.tar.gz (121.7 kB view hashes)

Uploaded Source

Built Distribution

pawflim-1.0.4-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

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