We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have image stacks which I am trying to load into pytiff. However, it looks like it only loads the first slice:
with pytiff.Tiff(input_fpath) as handle: img_array = handle print(img_array.shape) # (15, 15) instead of (15,15,15)
The text was updated successfully, but these errors were encountered:
if by 3D you mean multi page tiff files, you have to iterate over the pages:
with pytiff.Tiff(input_fpath) as handle: for page in handle.pages: stack.append(page[:])
Now stack is a list with length 15 and each element is a 15x15 numpy array.
stack
Sorry, something went wrong.
No branches or pull requests
I have image stacks which I am trying to load into pytiff. However, it looks like it only loads the first slice:
The text was updated successfully, but these errors were encountered: