GithubHelp home page GithubHelp logo

tdimiduk / pims Goto Github PK

View Code? Open in Web Editor NEW

This project forked from soft-matter/pims

0.0 3.0 0.0 3.89 MB

Python Image Sequence: Load video and sequential images in many formats with a simple, consistent interface.

License: Other

Python 100.00%

pims's Introduction

pims: Python Image Sequence

build status

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, or access a specific range. PIMS can do all of these using a consistent interface, handling the differences between different inputs invisibly.

Examples & Documentation

Everything is demonstrated in this IPython notebook.

Dependencies

One of the following is required:

  • [scikit-image]
  • [matplotlib]
  • [scipy]

Depending on what file formats you want to read, you will also need:

  • ffmpeg (video formats such as AVI, MOV)
  • Pillow (improved TIFF support)
  • libtiff (alternative TIFF support)
  • Tifffile, which is included in PIMS

Basic Installation

Installation is simple on Windows, OSX, and Linux, even for Python novices.

To get started with Python on any platform, download and install Anaconda. It comes with the common scientific Python packages built in.

If you are using Windows, I recommend 32-bit Anaconda even if your system is 64-bit. (One of the optional dependencies is not yet compatible with 64-bit Python.)

Open a command prompt. That's "Terminal" on a Mac, and "Start > Applications > Command Prompt" on Windows. Type these lines:

pip install http://github.com/soft-matter/pims/zipball/master

In the command prompt, type

ipython notebook

Optional Dependencies

Reading Multi-Frame TIFF Stacks

You will need libtiff, which you can obtain by running the following command in a command prompt:

pip install -e svn+http://pylibtiff.googlecode.com/svn/trunk/

Reading Video Files (AVI, MOV, etc.)

To load video files directly, you need FFmpeg. You can work around this requirement by converting any video files to folders full of images using a utility like ImageJ. Reading folders of images is supported out of the box, without OpenCV.

Updating Your Instllation

The code is under active development. To update to the current development version, run this in the command prompt:

pip install --upgrade http://github.com/soft-matter/pims/zipball/master

Contributors

  • Daniel B. Allan
  • Thomas A. Caswell (major refacotring, additional formats)

Supporting Grant

This package was originally developed and maintained 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.

Dan can be reached at [email protected].

pims's People

Contributors

danielballan avatar tacaswell avatar tdimiduk avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.