<div dir="ltr">Hi Stefan,<div><br></div><div>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 <a href="https://github.com/imagej/imagej-ops" target="_blank">https://github.com/imagej/imagej-ops</a> 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.</div>
<div><br></div><div>Regards,</div><div>Curtis</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 13, 2014 at 4:39 AM, Stefan Posch <span dir="ltr"><<a href="mailto:posch@informatik.uni-halle.de" target="_blank">posch@informatik.uni-halle.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Curtis, hi Johannes,<br>
<br>
we have a few questions regarding commands and command execution<br>
to wrap them for our graphical editor and also command line execution<br>
of operators resp. commands.<br>
<br>
What are the precoditions assumed when running a (headless) command<br>
<br>
o may the command assume that its initializer, if any, has been executed prior to executing its run-Method?<br>
<br>
o may the initializer-Method assume some of the parameter of the command already set<br>
(as e.g. a single ImageDisplay), and of course, which parameters?<br>
<br>
as an example, the DuplicateImage command adds input parameters to itself<br>
in its initializer-method depending on the inputDisplay.<br>
Thus is seems that DuplicateImage requires, that inputDisplay is set prior to<br>
calling its initializer and that the user is asked for further parameters lateron.<br>
<br>
o more generally, are there parameters of commands set by the standard ij2 preprocessos<br>
besides a single unresolved Dataset?<br>
And is there an easy way to figure out<br>
what preprocessors are run in which order in the standard ij2 context?<br>
<br>
- What is your concept to run a headless command from command line (or shell script), which<br>
adds input parameters dependent on the value of other input parameters?<br>
<br>
Do you encourcage to dynamically add input parameters to commands?<br>
<br>
- Is there (still) a static method to get hold of the context, as a while ago was<br>
possible via ImageJ.getContext() in order not to (very) often create a new<br>
context (or it the context impemented as a singelton)?<br>
And how does this work out if running command "truely" headless that is<br>
from command line without ij2 GUI?<br>
<br>
- is it remnants, that some ContextCommands have services as parameters<br>
as they - if I understand correctly - could retrievee the services from their contex?<br>
<br>
- has ij2 already support to execute a headless command from the command line or shell script<br>
<br>
Thanks a lot and cheers<br>
<br>
Stefan<br>
--<br>
Prof. Dr.-Ing. Stefan Posch,<br>
Institut fuer Informatik, Martin-Luther-Universitaet Halle-Wittenberg<br>
Von-Seckendorff-Platz 1, 06099 Halle (Saale)<br>
phone: <a href="tel:%2B%2B49%20345%2055-24728" value="+493455524728" target="_blank">++49 345 55-24728</a><br>
fax: <a href="tel:%2B%2B49%20345%2055-27039" value="+493455527039" target="_blank">++49 345 55-27039</a><br>
e-mail: <a href="mailto:Stefan.Posch@informatik.uni-halle.de" target="_blank">Stefan.Posch@informatik.uni-halle.de</a><br>
www: <a href="http://www.informatik.uni-halle.de/~posch/" target="_blank">www.informatik.uni-halle.de/~posch/</a><br>
<br>
_______________________________________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagej.net" target="_blank">ImageJ-devel@imagej.net</a><br>
<a href="http://imagej.net/mailman/listinfo/imagej-devel" target="_blank">http://imagej.net/mailman/listinfo/imagej-devel</a><br>
</blockquote></div><br></div></div>