-
Notifications
You must be signed in to change notification settings - Fork 21
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
nwb2widget - images are displayed rotated to the left by 90 degree #193
Comments
Now that I look at the images side by side, it looks transposed not rotated. |
Yes, this is because imshow expects y,x and GrayscaleImage is x,y (though this could be clearer in the documentation) |
Thanks for the quick response! |
Yes, images are often stored with y first. This is consistent with indexing of an array, but I agree it can be confusing nonetheless. If x vs y is important to you, you should transpose the data before saving it, then users would transpose when reading. @weiglszonja, do you think you could add to the docval of PyNWB Image types to make this dimension order more clear to users of those classes? |
Hi there,
This is a minor issue and probably can be fixed easily.
If there is an image in an .nwb file (pynwb.image.GrayscaleImage or pynwb.ophys.TwoPhotonSeries), nwbwidgets.nwb2widget displays it 90 degree rotated to the left.
with nwb2widget:
with imshow:
The images are not too revealing, but the dimensions are obviously not right.
The text was updated successfully, but these errors were encountered: