Skip to content

Instantly share code, notes, and snippets.

@frauzufall
Last active June 11, 2022 11:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frauzufall/5d71bfe7ac2b358c2c2dabca0f320341 to your computer and use it in GitHub Desktop.
Save frauzufall/5d71bfe7ac2b358c2c2dabca0f320341 to your computer and use it in GitHub Desktop.
ImageJ command line execution
https://imagej.net/Scripting_Headless
Start a SciJava command from command line:
./ImageJ-linux64 --run org.scijava.plugins.commands.debug.DumpStack
.. headless:
./ImageJ-linux64 --headless --run org.scijava.plugins.commands.debug.DumpStack
Calling a script from command line:
./ImageJ-linux64 --ij2 --headless --console --run hello.py 'name1="Mr",name2="Mrs Kraken"'
ImageJ-win64.exe --ij2 --headless --console --run "PathTo/hello.py" "name1='Mr', name2='Kraken'"
A command with a parameter:
./ImageJ-linux64 --headless --run org.scijava.plugins.commands.io.OpenFile "inputFile='/home/random/blobs.tif'"
Getting the system information:
./ImageJ-linux64 --headless --run org.scijava.plugins.commands.debug.SystemInformation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment