-
Notifications
You must be signed in to change notification settings - Fork 5
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
Sending images to IJ2 Swing UI fails #144
Comments
Thanks to @elevans for helping me make progress here. The issue is that the dimensions of the The easiest path forward here is to wait until a pyimagej release with the fixes provided in imagej/pyimagej#238. With the fixes there, we can pass My only concern then would be what happens with non-two-dimensional images. Does anyone else (@ctrueden?) know how this plan should be altered for images of arbitrary dimensionality? |
ImageJ2 Dataset supports images with any dimension order. Except that as you discovered, not having XY as the first two dimensions does not actually work in practice, due to planar assumptions in a few places. Ideally we would change this on the ImageJ2/Java side, but failing that, changes to napari-imagej to ensure that X and Y are the first two dimensions should avoid the issue. You shouldn't have to shuffle around anything else; just pull X and Y to the front. |
@gselzer I can add a special flag to the direct image conversions (maybe something like |
@elevans I think that the current kwargs are fine, and I wouldn't want to change them for this. If I'm passing a 5-D image, I want |
That does not work now, but I can write a little helper method that will detect the mismatch in |
@gselzer I've added support (imagej/pyimagej@b2beb69) for Now I just need to get it merged 😛 |
@gselzer imagej/pyimagej#238 is now merged! 🎉 Let me know if this is still an issue. |
Woot! We should be able to move forward here, as soon as we release a new pyimagej version. |
Steps to reproduce:
This yields the following error:
The text was updated successfully, but these errors were encountered: