Login  Register

Re: Integration with other software

Posted by Wayne Rasband on May 05, 2009; 9:35pm
URL: http://imagej.273.s1.nabble.com/redirect-to-imageID-tp3692673p3692676.html

> Hi,
>
> I'm new to ImageJ.
> I'm trying to execute an ImageJ menu command (Import->Image Sequence)
> from another application. Can I run it as a command line to start
> ImageJ
> and execute the menu command?

1. Create a one line macro by running Import>Image Sequence with the
recorder running
2. Save the macro in the ImageJ/macros folder as, say, "import.txt"
3. Run it from the command line using a command something like:

     java -jar /path/to/ij.jar -ijpath /path/to/ImageJ -macro import

-wayne