[ImageJ-devel] (headless) command execution

Curtis Rueden ctrueden at wisc.edu
Sat Mar 22 07:54:06 CDT 2014

Hi Stefan,

Apologies for the delay in reply. Just wanted to let you know that we are
not ignoring you -- the timing was just rough because we recently returned
from an intense hackathon (see https://github.com/imagej/imagej-ops if
interested) and are still catching up on the backlog. I will make an effort
to reply to your questions within the next few days.


On Thu, Mar 13, 2014 at 4:39 AM, Stefan Posch <posch at informatik.uni-halle.de
> wrote:

> Hi Curtis, hi Johannes,
> we have a few questions regarding commands and command execution
> to wrap them for our graphical editor and also command line execution
> of operators resp. commands.
> What are the precoditions assumed when running a (headless) command
>   o may the command assume that its initializer, if any, has been executed
> prior to executing its run-Method?
>   o may the initializer-Method assume some of the parameter of the command
> already set
>     (as e.g. a single ImageDisplay), and of course, which parameters?
>     as an example, the DuplicateImage command adds input parameters to
> itself
>     in its initializer-method depending on the inputDisplay.
>     Thus is seems that DuplicateImage requires, that inputDisplay is set
> prior to
>     calling its initializer and that the user is asked for further
> parameters lateron.
>   o more generally, are there parameters of commands set by the standard
> ij2 preprocessos
>     besides a single unresolved Dataset?
>     And is there an easy way to figure out
>     what preprocessors are run in which order in the standard ij2 context?
> - What is your concept to run a headless command from command line (or
> shell script), which
>   adds input parameters dependent on the value of other input parameters?
>   Do you encourcage to dynamically add input parameters to commands?
> - Is there (still) a static method to get hold of the context, as a while
> ago was
>   possible via ImageJ.getContext() in order not to (very) often create a
> new
>   context (or it the context impemented as a singelton)?
>   And how does this work out if running command "truely" headless that is
>   from command line without ij2 GUI?
> - is it remnants, that some ContextCommands have services as parameters
>   as they - if I understand correctly - could retrievee the services from
> their contex?
> - has ij2 already support to execute a headless command from the command
> line or shell script
> Thanks a lot and cheers
> Stefan
> --
> Prof. Dr.-Ing. Stefan Posch,
>         Institut fuer Informatik, Martin-Luther-Universitaet
> Halle-Wittenberg
>         Von-Seckendorff-Platz 1, 06099 Halle (Saale)
> phone:  ++49 345 55-24728
> fax:    ++49 345 55-27039
> e-mail: Stefan.Posch at informatik.uni-halle.de
> www:    www.informatik.uni-halle.de/~posch/
> _______________________________________________
> ImageJ-devel mailing list
> ImageJ-devel at imagej.net
> http://imagej.net/mailman/listinfo/imagej-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20140322/362594f2/attachment.html>

More information about the ImageJ-devel mailing list