Re: imagej -batch
Posted by
Wayne Rasband on
Jan 03, 2010; 3:34am
URL: http://imagej.273.s1.nabble.com/imagej-batch-tp3689863p3689864.html
> I tried running "imagej -batch Random_Ovals" and "imagej
> -batch Random_Ovals.class" from the command line in a
> Windows command prompt window, but nothig happens in the
> first case, and in the second I get a macro error. The
> documentation in Plugins/Programming Examples/Command Line
> Example says this should work with a Plugin. What am I doing
> wrong?
>
> David Webster
Running "imagej -batch Random_Ovals" from the command line does not appear to do anything because -batch runs a macro in batch mode, and images are not displayed in batch mode. Instead, use "imagej -macro Random_Ovals". "imagej -batch Random_Ovals.class" does not work because -batch only runs macros. Instead, use "imagej -run "Random Ovals". All of the ImageJ command line options are described at
http://rsbweb.nih.gov/ij/docs/install/linux.html#options-wayne