Login  Register

RE: JACop batch processing

Posted by Interleukin-10 on Aug 12, 2014; 10:48pm
URL: http://imagej.273.s1.nabble.com/JACop-batch-processing-tp5009015p5009155.html

Hi Neil,

From what I understand, I should add getArgument(image name) whereever my original image name appears. I should also add runMacro() to my macro as well. Where do I add this part? Please forgive my lack of undersanding for this language.

Thanks,
Kamaldeep



From: Neil Fazel [via ImageJ] [ml-node+[hidden email]]
Sent: Tuesday, August 12, 2014 12:05 PM
To: Jawanda, Kamaldeep Kaur
Subject: Re: JACop batch processing

>The problem once again, is that y macro is specific for one image that I used to record the macro

runMacro() takes a 2nd argument which you can use to pass a parameter to the macro being called. Use that to pass the name of the file you would like the macro to process. Then modify the called macro to get the argument via a call to getArgument() and use that to programmatically replace all the hard-coded file names from the Macro Recorder.

Neil

This is from the macro manual:

getArgument()
Returns the string argument passed to macros called by runMacro(macro, arg),eval(macro), IJ.runMacro(macro,
arg) or IJ.runMacroFile(path, arg).

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



If you reply to this email, your message will be added to the discussion below:
http://imagej.1557.x6.nabble.com/JACop-batch-processing-tp5009015p5009149.html
To unsubscribe from JACop batch processing, click here.
NAML