Login  Register

argument passing and stack copying

Posted by Aryeh Weiss on May 28, 2007; 8:25pm
URL: http://imagej.273.s1.nabble.com/IMAGE-SUBSTRACTION-WITH-IMAGE-J-tp3699286p3699288.html

I have some questions regarding stacks and macros.
I see from the examples how to pass arguments to ImageJ commands which are run
from within a macro (as in the ArgumentPassingDemo macro). However, I do not
know how to find the names of the arguments, when they are not recorded by the
macro recorder. Fro example, the macro recorder records:
run("Duplicate...", "title=[Substack (5,6)-1] duplicate");
when I duplicate a stack. However, this is the same regardless of whether I
select the "duplicate entire stack" checkbox, so I dont know how to tell it to
duplicate the entire stack in a macro, unless I run it interactively.
Is there a general way to know the argument names for a given command?

In a related question, I want to copy an entire stack and paste it somewhere.
However, the copy command (Run("Copy")) only copies a single slice, while I want
  the entire stack. Is there an an option to Copy which will do this?

Thank you for your attention to my questions.
--aryeh
--
Aryeh Weiss
School of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384050