Skip to main content

intensipy

Normalize intensity values in 3D image stacks.

Current Methods

1. Intensify3D

Python implementation of the Intensify3D algorithm originally developed by Yoyan et al. There are some minor adjustments:

  1. Semi-quantile normalization is the only Z-normalization method currently implemented.
  2. Pixels that are quantile normalized are optionally smoothed using they Savitzky-Galoy method outlined in the original paper. In practice this was necessary to reduce artefact noise.
  3. Tissue detection is not currently supported.
  4. By default, contrast stretching is performed by skimage.exposure.rescale_intensity(). To perform contrast stretching as implemented by the original Intensify3D, set stretch_method='intensify3d'
  5. If no maximum background intensity threshold t is provided, t will be estimated for each slice using Otsu's method.

Original Paper Results

Original

Intensipy Results

Artificial Data

Z-normalization Example

Confocal Embryo Image

Average Intensity Comparison

Scatterplot

Installation

Clone the repository and from the terminal run:

pip install .

Example

import numpy as np
import matplotlib.pyplot as plt

from intensipy import Intensify

# decreasing average intensity as z increases.
img_stack = 1 / np.arange(1, 6)[:, np.newaxis, np.newaxis]\
          * np.random.randint(0, 255, (5, 512, 512))                           

for each in img_stack: 
    plt.imshow(each, vmin=img_stack.min(), vmax=img_stack.max(), cmap='gray') 
    plt.show()

model = Intensify()
out = model.normalize(img_stack)

for each in out: 
    plt.imshow(each, vmin=out.min(), vmax=out.max(), cmap='gray') 
    plt.show()

References

1.Yayon, N. et al. Intensify3D: Normalizing signal intensity in large heterogenic image stacks. Scientific Reports 8, 4311 (2018).

Metadata

Release files for intensipy 0.1.0

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

Source distribution (sdist)

Source distribution for intensipy 0.1.0
File Size Uploaded Provenance Actions
intensipy-0.1.0.tar.gz 1.4 MB Without provenance Details for intensipy-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for intensipy 0.1.0
File Interpreter ABI Platform Actions
intensipy-0.1.0-py3-none-any.whl Python 3 none any Details for intensipy-0.1.0-py3-none-any.whl

Total release size: 1.4 MB

Release files / intensipy-0.1.0.tar.gz

Download URL intensipy-0.1.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
be172b126878ccd68810884523d1bb5ccbe38c72b66a7714bb1b7ddf9e489d57
BLAKE2b-256 checksum
How to use checksums
6587a7780d0ab59dda8292f7763db517af3bbd85b7bd2d3c40826da673a76664
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / intensipy-0.1.0-py3-none-any.whl

Download URL intensipy-0.1.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d00210daefa6b406ccf97bc7188f328c882560ceb5b87aaaa2428cebc204bbcf
BLAKE2b-256 checksum
How to use checksums
3e81cd5a24d2e4d9f2b0311d22142cb5004ac0c7a81a29f2b312d415e4166727
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Security for intensipy 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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