calling ImageJ from another program

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

calling ImageJ from another program

Morgiane Richard
Hello,
 
I would like to call ImageJ from a C++ program, and then call a macro of imageJ, call the command open Image sequences and call the command animate.
 
Does anyone have an idea?
 
Also, is there a limited number of commands or lines that an ImageJ macro can contain?
 
Thanks,
 
Morgiane
 
 
Reply | Threaded
Open this post in threaded view
|

Re: calling ImageJ from another program

Wayne Rasband
> I would like to call ImageJ from a C++ program, and then call a macro
> of imageJ, call the command open Image sequences and call the command
> animate.

You should be able to do this by having your C++ program execute a
command something like this

    java -jar ij.jar -macro macro.txt

where "macro.txt" is a macro that runs one or more ImageJ commands. A
complete list of the ImageJ command line options can be found at the
beginning of the the ImageJ.java source file.

     http://rsb.info.nih.gov/ij/developer/source/ij/ImageJ.java.html

> Also, is there a limited number of commands or lines that an ImageJ
> macro can contain?

There is no arbitrary limit on the size of an ImageJ macro.

-wayne