-
Notifications
You must be signed in to change notification settings - Fork 14
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
Cannot access Big Warp command through API #131
Comments
Hi @nanthony21 , I've not used pyimagej much, but initializing it differently may help, see here: specifically, maybe initializing with imagej1 support could help. It's mentioned on the troubleshooting page - that makes me optimistic. Let me know how that goes. |
Thanks for getting back to me. I tried adding It's worth noting that if we completely forget pyimagej this issue is still there. Using the above Groovy macro with a fresh install of FIJI only finds |
My hope is to write a script that will:
I suppose if Big Warp doesn't have support for access through macros then this may not work anyway. Do you think it's possible to do these things via a script rather than requiring a user to properly configure things through the GUI? |
That's right, thanks for including that. This is probably because of how imagej2 discovers plugins - seems like expected behavior that the "main" bigwarp plugin is not found in this way. I can investigate. could you try running bigwarp with a macro using This macro runs bigwarp:
Thanks for clarifying what your goal is. The last step of saving " the resulting transformation matrix to a text file." seems to be the only one that needs the bigwarp api, as far as I can tell. This is easy if you're working in java - if you can call arbitrary methods from pyimagej, I can show you how to do this, I'm just not sure how / if its possible to call arbitrary java methods from pyimagej. Good luck |
Thanks for your help @bogovicj I think it's just a matter of using the The I believe pyimagej just works as a bridge between ImageJ and Python using JPype so if I do manage to access the BigWarpImagePlusPlugin class directly via |
This PR would resolve this issue #133 |
I'm not sure if this is really an issue with Big Warp or with ImageJ itself.
I would like to open the Big Warp plugin from a Python script using pyimagej
I can use
ij.commands().getPlugins()
to view a list of available plugins but when I do I only find'bdv.ij.BigWarpBdvCommand', menu='Plugins > BigDataViewer > Big Warp XML/HDF5'
. The other commands do not appear even though they are installed.I think this is happening because
Big Warp XML/HDF5
uses the@Plugin(.....
style of declaring itself as a plugin while the other plugins have no annotation but are instead declared inplugins.config
.Note that this is not limited just to
pyimagej
. It can also be demonstrated directly in ImageJ. Here is a groovy macro to print out the available plugins through the API.The text was updated successfully, but these errors were encountered: