Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Open an image with Bio-Formats as a numpy array via pyimagej
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ctrueden

This comment has been minimized.

Copy link
Owner Author

@ctrueden ctrueden commented Mar 8, 2019

@ctrueden

This comment has been minimized.

Copy link
Owner Author

@ctrueden ctrueden commented Mar 8, 2019

For NIFTI specifically, there are much easier ways:

import nibabel as nib
img = nib.load(filename)
data = img.get_fdata()

But the above notebook should work for nearly all the Bio-Formats-supported formats, including ones without convenient Python libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.