skip to navigation
skip to content

TiffCapture 0.1.3

Brings the power of OpenCV to TIFF videos; provides interface to multi-part TIFFs compatible with OpenCV's VideoCapture.

Latest Version: 0.1.6

Provides a PIL based capture interface to multi-part tiffs, allowing them to be used more easily with OpenCV. This allows you to use OpenCV’s image and video processing capabilities with tiff stacks, a video form frequently encountered in scientific video as it is lossless and supports custom metadata.


A minimal example looks like this:

import tiffcapture as tc
import matplotlib.pyplot at plt
tiff = tc.opentiff(filename)

More real world usage looks like this:

import tiffcapture as tc
import cv2
tiff = tc.opentiff(filename) #open img
_, first_img = tiff.retrieve()
for f,img in tiff:
    tempimg = cv2.absdiff(first_img, img) # bkgnd sub
    _, tempimg = cv2.threshold(tempimg, 5, 255, # convert to binary
    cv2.imshow('video', tempimg)
File Type Py Version Uploaded on Size
TiffCapture-0.1.3.tar.gz (md5) Source 2014-05-15 3KB