Login  Register

Re: Headless ImageJ2-rc2 - Analyze Particles returns no result

Posted by ctrueden on Jun 26, 2014; 7:55pm
URL: http://imagej.273.s1.nabble.com/Headless-ImageJ2-rc2-Analyze-Particles-returns-no-result-tp5008127p5008453.html

Hi Paul & everyone,

> Yes, fiji does show this extra option. However ImageJ2 does not. And
> while I (now!) understand the technical reasons why the -macro option
> is not mentioned it makes for a very confusing user experience. Right
> now, for someone new to IJ it's very difficult to understand the
> relation between IJ1 and IJ2. The help of the commands not being
> complete adds to that.

I agree. I have wanted to beef up the output of the launcher's "--help" for
a while now, but haven't had time. Since it is the "ImageJ launcher" I
think it should make a best effort to print out all of the command line
flags that ImageJ supports on the Java side, not just at the launcher level.

Of course, this may fall out of sync with what ImageJ supports, and in
ImageJ2 those command line arguments are fully extensible, so you might
turn on an update site that adds an option. We'll have to think a little
about how best to support that; I have some ideas.

I filed an issue for it:
https://github.com/imagej/imagej-launcher/issues/20

Regards,
Curtis


On Thu, Jun 26, 2014 at 1:40 AM, Paul van Schayck <[hidden email]> wrote:

> Hey Johannes,
>
> On Thu, Jun 26, 2014 at 1:00 AM, Johannes Schindelin
> <[hidden email]> wrote:
> > On Wed, 25 Jun 2014, Paul van Schayck wrote:
> >
> >> This already is a print("hello") script. Which is being run like this:
> >> ./ImageJ-linux64 --headless -macro scripts/short.js
> >>
> >> For bsh script this only happens when being run with the -macro
> >> options.
> >
> > Does it also happen if you run
> >
> >         ./ImageJ-linux64 --headless -batch scripts/short.js
> >
> > ?
>
> Ehmm.. well when using -batch there is no output in the terminal, or
> any other indication that the script is being run. Also, the delay in
> closing is still there. Actually, when just running (so not script
> specified):
> ./ImageJ-linux64 --headless -batch
> The same delay is present in returning the command.
>
> >> Is it possible to clear up the --help message a bit? The --ij1 and --ij2
> >> options are quite confusing, and not clear to me. The ij1 -macro and
> >> -batch options are not mentioned. The type of <files> could be
> >> mentioned, so both image files and bsh script files.
> >
> > Well, the launcher has its own options and passes all others to the
> > program to be launched. So -macro and -batch are actually not options
> that
> > the launcher really knows about... About the scripts accepted, it seems
> > that there is a bug and only --js is mentioned, but that documentation
> > actually mentions .js files explicitly:
> >
> >         --js
> >                 start Javascript (the Rhino engine) instead of
> >                 ImageJ (this is the default when called with a
> >                 file ending in .js)
>
> Yes, fiji does show this extra option. However ImageJ2 does not. And
> while I (now!) understand the technical reasons why the -macro option
> is not mentioned it makes for a very confusing user experience. Right
> now, for someone new to IJ it's very difficult to understand the
> relation between IJ1 and IJ2. The help of the commands not being
> complete adds to that.
>
> Paul
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html