Simple command line to open a file in ImageJ

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

Simple command line to open a file in ImageJ

Dave Zweig
Is there a simple command line that can be used to open a TIFF or JPEG image
from the MyPictures directory into ImageJ on a Windows computer?  We would
like to automate the process of opening captured images directly into ImageJ
but I haven't gotten the syntax quite right to get this working.

 

Thanks,

 

Dave Zweig

Zarbeco, LLC

Phone: 973-989-2673

Fax: 973-989-2674

E-mail: [hidden email]

 

 
Reply | Threaded
Open this post in threaded view
|

Re: Simple command line to open a file in ImageJ

Wayne Rasband
> Is there a simple command line that can be used to open a
> TIFF or JPEG image from the MyPictures directory into ImageJ
> on a Windows computer?  We would like to automate the
> process of opening captured images directly into ImageJ but
> I haven't gotten the syntax quite right to get this working.

Use a command something like this:

   C:\ImageJ\ImageJ.exe "C:\Documents and Settings\UserName\Documents\My
Pictures\pic.jpg"

You need to be running ImageJ 1.35g or later to prevent a new copy of
ImageJ from being started each time you run the command. It uses
sockets to check to see if ImageJ is running, and, if it is, it passes
the argument to the ImageJ that is already running. This is the
technique suggested by Curtis Rueden in this message:

     https://list.nih.gov/cgi-bin/wa?A2=ind0509&L=IMAGEJ&P=R10748&I=-3

-wayne