Modern import (from BDV) plugin #9
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

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