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

save_tiff_imagej_compatible('pred_train.tif', pred_train, axes='YX') #152

Open
farukalamai opened this issue Apr 13, 2024 · 3 comments
Open

Comments

@farukalamai
Copy link

When using this it's not saving the actual predicted image. I also wanted to know how can I save the predicted image in different format like jpg/png etc.

I have tried different method, nothing is working. Its' saving a blank image.

@farukalamai
Copy link
Author

@jdeschamps

@tibuch
Copy link
Collaborator

tibuch commented Apr 15, 2024

Did you verify that you image is not empty?

A quick google search reveals how to save images as jpg e.g.:

from PIL import Image
im = Image.fromarray(arr)
im.save("your_file.jpeg")

@farukalamai
Copy link
Author

I have tried this. It's just saving a blank image.

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

No branches or pull requests

2 participants