Skip to content

ImageSequenceND is not working #48

Open
@tikkita

Description

Hi, I am pretty new to python. I was trying to use 3d tracking for my stack of images which are as z and t index separated png files, then made a .zip file to use the ImageSequenceND. But no matter what I do I always get the "index is out of bounds" error. I am unable to understand the problem after so many attempts and would really appreciate the help. Here is what I tried, and the output I get.


IndexError Traceback (most recent call last)
in ()
----> 1 images=pims.ImageSequenceND('./tiffstacks.zip',axes_identifiers = ['z', 't'])

~/anaconda3/lib/python3.6/site-packages/pims/image_sequence.py in init(self, path_spec, process_func, dtype, as_grey, plugin, axes_identifiers)
430 self.axes_identifiers = axes_identifiers
431 ImageSequence.init(self, path_spec, process_func,
--> 432 dtype, as_grey, plugin)
433 shape = self._first_frame_shape
434 if len(shape) == 2:

~/anaconda3/lib/python3.6/site-packages/pims/image_sequence.py in init(self, path_spec, process_func, dtype, as_grey, plugin)
93 self._is_zipfile = False
94 self._zipfile = None
---> 95 self._get_files(path_spec)
96
97 tmp = self.imread(self._filepaths[0], **self.kwargs)

~/anaconda3/lib/python3.6/site-packages/pims/image_sequence.py in _get_files(self, path_spec)
468 for f in self._filepaths])
469 for n, name in enumerate(self.axes_identifiers):
--> 470 if np.all(self._toc[:, n] == 0):
471 self._toc = np.delete(self._toc, n, axis=1)
472 else:

IndexError: index 1 is out of bounds for axis 1 with size 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions