Open xp1632 opened 9 months ago
The ImageJ2 project supports headless operation for all its functions, due to its careful separation of concerns, and ImageJ2 includes a backwards compatibility layer that supports use some original ImageJ functionality while headless; the original ImageJ's core classes are modified at runtime via Javassist.
For more information about running ImageJ and/or ImageJ2 in headless mode, please read the Running Headless and Scripting Headless pages of the ImageJ wiki.
Please note: Not all original ImageJ functions are accessible while
headless: e.g., many methods of RoiManager
and WindowManager
do not work
without a graphical environment.
To address all of these needs, ImageJ2 provides the capability to execute ImageJ plugins, macros and scripts in headless mode. This feature uses bytecode manipulation to patch ImageJ’s behavior at runtime, making it possible to start ImageJ in batch mode without instantiating GUI components.
https://imagej.net/learn/headless