0

I am using PIMS to import a series of TIFF images into Jupyter Notebook. I am to use the particle tracking algorithm TrackPy to analyse the images and am following a tutorial provided by the people that developed the code. When I upload the tiffs from my directory (just used a generic one below) I get an error message and was hoping you guys could help.

from __future__ import division, unicode_literals, print_function
import matplotlib as mpl
import matplotlib.pyplot as plt

%matplotlib inline

import numpy as np
import pandas as pd
from pandas import DataFrame, Series

import pims
import trackpy as tp

@pims.pipeline
def gray(image):
   return image[:, :, 1] 

frames = gray(pims.open('../sample_data/bulk_water/*.png'))

The last line gives the following error

TiffPage 0: TypeError: read_bytes() missing 3 required positional arguments: 'dtype', 'count', and 'offsetsize'

Rory235
  • 1
  • 3

0 Answers0