Re: Command to see whats happening in my macro?

Posted by Rose Wilson on
URL: http://imagej.273.s1.nabble.com/Command-to-see-whats-happening-in-my-macro-tp5000523p5000545.html

Hi Pariksheet,
I have tried both of these, but it comes up with the error;
'Number or numeric function expected in line 10'

Is there a certain place it should go? I tried both at the top (as below) with the other general bits, but I did also try it before and after the run(Find Maxima .....) command too.

Do you have any suggestions?
Many thanks,Rose

// Ask user for source and destination directories
dir = getDirectory("Roses Source Directory");
dest1 = getDirectory("Roses Destination Directory");
dest2 = getDirectory("Roses Destination2 Directory");

list = getFileList(dir);
setBatchMode(true);
IJ.log()

for (i=0; i<list.length; i++) {
         name = list[i];
         path = dir + name;

        // Open image
        open(path);
// Macro
run("Find Maxima...", "noise=55 output=[Maxima Within Tolerance]");
run("Close-");
//run("Threshold...");
setThreshold(255, 255);
run("Convert to Mask");
run("Analyze Particles...", "size=3000-Infinity pixel circularity=0.00-1.00 show=Outlines display exclude");
// 
saveAs("Tiff", dest1+name);
close();
close();

Rosemary Wilson
Department of Biology,
University of York,
Heslington,
York,
YO10 5YW
Tel: +44 (0)1904 328569
Email: [hidden email]

EMAIL DISCLAIMER http://www.york.ac.uk/docs/disclaimer/email.htm




On 26 Oct 2012, at 12:45, Pariksheet Nanda [via ImageJ] wrote:

On Thu, Oct 25, 2012 at 11:29 AM, Rose Wilson <<a href="x-msg://28/user/SendEmail.jtp?type=node&amp;node=5000543&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
> When I made the macro initially I also used a command that showed on the
> screen the progress of the macro, ie the individual steps but I have now
> forgotten what it was!
>

Perhaps you were using IJ.log() or showProgress()


> Rose

Pariksheet

--
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.n6.nabble.com/Command-to-see-whats-happening-in-my-macro-tp5000523p5000543.html
To unsubscribe from Command to see whats happening in my macro?, click here.
NAML