Skip to content
New issue

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

How to open images in python #572

Open
manerotoni opened this issue Jun 7, 2023 · 3 comments
Open

How to open images in python #572

manerotoni opened this issue Jun 7, 2023 · 3 comments

Comments

@manerotoni
Copy link
Collaborator

Hello,
I was wondering whether we should also cover different ways how to open images in python?
Today a student came with her own image (tif from olympus). This is pretty nice , but openIJtiff could not handle it. We were able to open the image with skimage.io.imread.

We are now teaching students to use openIJTiff which is very specific for the course (nice because of the metadata).

We should at least point towards other options that can help in their day to day live.

Also the warning issued by openIJTiff could contain such information. It should be more helpful than just "This module is intended to parse from ImageJ-created tiff files. This tiff file was apparently not created by ImageJ."
could it at least get the numpy array. For instance revert to skimage.io.imread?

@manerotoni
Copy link
Collaborator Author

manerotoni commented Jun 8, 2023

May be change the message to you can try to open the image with .... I will try a fix.

In progress PR #574

@tischi
Copy link
Collaborator

tischi commented Jun 9, 2023

@manerotoni there is a PR by @grinic for opening other images in python: #462

@manerotoni
Copy link
Collaborator Author

Honestly this would be a very good information for all of us, as opening images in python is not always trivial.
Not sure if this should be an extra module or additional information.

For the moment I would like to have a more instructive warning in OpenIJTiff and may be switch to skimage.io.imread if the tiff format looks different than expected.

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

No branches or pull requests

2 participants