RunMacro is a Java program (not a plugin) that runs an
ImageJ macro from the command line with no GUI. It uses the IJ.runMacroFile(path, arg) method that was added in ImageJ 1.33c
to run a macro and to pass it a single string argument.
ImageJ 1.37h and later can also runs macros from the command line
using the -batch option documented at the beginning of ImageJ.java.
javac -classpath ij.jar RunMacro.java
To run “analyze.txt”, passing it the argument “blobs.tif”:
Author: Paulo Magalhães (pamaga_A_T_bio_DOT_unipd_DOT_it) University of Padua, Italy History: 2003/12/04: first version 2003/12/10: added constant background subtraction; implemented “zero divided by zero equals one” feature
Author: Anthony Padua (firstname.lastname@example.org) Duke University Medical Center, Department of Radiology History: 2003/04/21: First version 2003/05/12: Can be called from macros Source: Query_Dicom_Header.java Installation: Download
Author: Wayne Rasband (email@example.com) History: 2001/02/21: First version 2001/12/17: 640×480 window, no drawImage scaling 2001/12/21: Displays frames generated per second in parentheses 2002/09/30: Pixels are
Author: Wayne Rasband (firstname.lastname@example.org) History: 2002/03/07: First version 2002/03/20: Creates 8-bit indexed color image Source: Thumbnail_Maker.java Installation: Copy Thumbnail_Maker.class to the plugins folder and restart