Skip to main content

pims: Python Image Sequence

What Problem Does PIMS Solve?

Scientific video can be packaged in various ways: familiar video formats like .AVI and .MOV, folders full of numbered images, or "stacks" of TIFF images. Each of these requires a separate Python module. And, once loaded, they have different methods for accessing individual images, looping through the images in bulk, accessing a specific range, or dealing with multidimensional files. PIMS can do all of these using a consistent interface, handling the differences between different inputs invisibly.

Formats readable by pims include:

  • Directories or zipfiles of still images (most formats, including TIFF, JPEG, PNG, BMP), and TIFF stacks
  • Microscope images supported by the Bio-formats project, including Leica, Nikon, Olympus, and Zeiss formats. Requires separate installation; see below.
  • Movie formats and codecs supported by ffmpeg, including AVI, QuickTime MOV, and H.264 (MP4). May require separate installation; see below.
  • CINE files from Vision Research cameras
  • SEQ files from NorPix StreamPix software

PIMS is based on readers by:

  • scikit-image
  • ffmpeg and PyAV (video formats such as AVI, MOV)
  • jpype (interface with Bio-formats)
  • Pillow (improved TIFF support)
  • tifffile (alterative TIFF support)
  • pims_nd2 (improved Nikon .nd2 support)
  • imageio (a multi-purpose reader package that reads and writes many formats)
  • moviepy (a Python module that supports video editing)
  • nd2reader (a Pure Python module for reading Nikon NIS Elements ND2 images and metadata)

Examples & Documentation

Everything is demonstrated in this IPython notebook.

Read the documentation for installation instructions, examples, and further reference.

Core Contributors

  • Daniel Allan founding contributor, slicing and iteration logic, basic readers, display tools
  • Thomas Caswell major refactor, abstract base class
  • Casper van der Wel bioformats readers, display tools
  • Thomas Dimiduk filetype-detecting dispatch logic

Support

This package was developed in part by Daniel Allan, as part of his PhD thesis work on microrheology in Robert L. Leheny's group at Johns Hopkins University in Baltimore, MD. The work was supported by the National Science Foundation under grant number CBET-1033985. Later work was supported by Brookhaven National Lab. Dan can be reached at dallan@bnl.gov.

This package was developed in part by Thomas A Caswell as part of his PhD thesis work in Sidney R Nagel's and Margaret L Gardel's groups at the University of Chicago, Chicago IL. This work was supported in part by NSF Grant DMR-1105145 and NSF-MRSEC DMR-0820054. Later work was supported by Brookhaven National Lab. Tom can be reached at tcaswell@gmail.com.

This package was developed in part by Casper van der Wel, as part of his PhD thesis work in Daniela Kraft's group at the Huygens-Kamerlingh-Onnes laboratory, Institute of Physics, Leiden University, The Netherlands. This work was supported by the Netherlands Organisation for Scientific Research (NWO/OCW).

Metadata

Release files for scm-pims 0.7.1

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

Source distribution (sdist)

Source distribution for scm-pims 0.7.1
File Size Uploaded Provenance
scm_pims-0.7.1.tar.gz 89.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for scm-pims 0.7.1
File Interpreter ABI Platform
scm_pims-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 174.6 kB

Release files / scm_pims-0.7.1.tar.gz

Download URL scm_pims-0.7.1.tar.gz
Size 89.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8bd26c9ec78aba770569314b2480077a74ef79267a4c04505b69615314c3f684
BLAKE2b-256 checksum
How to use checksums
f058621282b94f6c04a28f042921f71cfe15dedcc431b63f16294a3c2d61af3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / scm_pims-0.7.1-py3-none-any.whl

Download URL scm_pims-0.7.1-py3-none-any.whl
Size 84.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4f25d7768bfa2d3939de8df832623db5bffa4a14bd6b78376c7ba7e7f65f116
BLAKE2b-256 checksum
How to use checksums
1e439c5d6df0f420928a70ee29b934872bd023bf738a4ab9dbdab8ff61f27eac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for scm-pims 0.7.1

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.

Release history Release notifications | RSS feed

This release

0.7.1 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