-
Notifications
You must be signed in to change notification settings - Fork 10
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
Modern import (from BDV) plugin #9
base: master
Are you sure you want to change the base?
Conversation
to the new/modern scijava plugin environment (which auto-generated dialogs, etc.). Allows also to be run from command line, also head-less. Example from command line: ~/Apps/Fiji.app/Contents/MacOS/ImageJ-macosx --headless --run "BigDataViewer..." 'xmlFile="/path_to/dataset.xml",timepointVal=15,setupVal=0,mipmapVal=0,openAsVirtualStack=false'
made public so the class can be used outside IJ2 plugin system Example Jython script: import bdv.ij.ImportPlugIn import java.io.File fn = "/Users/ulman/Downloads/2018-02-15 Mastodon Tutorial/tgmm-mini/dataset.xml" loader = bdv.ij.ImportPlugIn() loader.xmlFile = java.io.File(fn) loader.timepointVal = 5 loader.run() loader.imp.show()
…alog, Also ranges are not checked anymore when the attempt failed.
@xulman sorry for taking so long to look at it. What happened if you tried to run the old plugin in headless mode. In principle the What you did is still quite nice. It would be cool to have the plugin IJ2-style (regardless of headless issue).
|
Not currently possible, sorry. There is no issue precisely about that, but here are the closest ones:
Perhaps could be tackled as part of the SJC3 dialog generator redesign. I am working on some necessary underpinnings for that over the next couple of months, but I don't know how far along the dialog stuff specifically will get in that time-frame. |
Hi,
I wanted to extract "raw"/orig data from XML/HDF5 BDV dataset and I found File->Import->BigDataViewer... plugin/menu item that can do it. This one, however, was doing GUI dialog by its own, and I couldn't use it in --headless mode.
So, I rewrote it into IJ2 environment. This changed the GUI-pieces of the code completely but otherwise (figuring out how many timepoints, setups, mipmaps as well as creating ImagePlus as a result) I haven't changed the functionality.
I also gave it a bit of love to the way GUI dialog behaves now.
As a side effect, the new plugin can run --headless:
~/Apps/Fiji.app/Contents/MacOS/ImageJ-macosx --headless --run "BigDataViewer..." 'xmlFile="/path_to/dataset.xml",timepointVal=15,setupVal=0,mipmapVal=0,openAsVirtualStack=false'
and/or one can batch/headless extract a sequence of timepoints...
(because it is not attempting to build a GUI dialog and img.show() as it was in the original code).
The GUI:

Vlado