Posted by
ctrueden on
Oct 30, 2012; 3:47pm
URL: http://imagej.273.s1.nabble.com/Command-to-see-whats-happening-in-my-macro-tp5000523p5000590.html
Hi Rose,
> The piece of code I'm looking for is one which shows the pictures
> generated by the macro at each step, ie open image, find maxima, set
> threshold, etc as the macro progresses (like you would see if you were
> doing it manually) rather than it doing it in the background.
Did you try removing the line:
setBatchMode(true);
With batch mode off, images will pop up, etc., as though you were
performing the commands manually. Once you are certain the macro works the
way you expect, you can put the setBatchMode command back to make it run
faster.
Regards,
Curtis
On Tue, Oct 30, 2012 at 6:55 AM, Rose Wilson <
[hidden email]> wrote:
> Hi Pariksheet and Michael,
>
> Thanks both for your help with this, its much appreciated. I'm not really a
> computer person so none of this is obvious for me!
>
> The IJ.log("Processing file " + i+1 + " of " + list.length); worked to show
> progress but I realise I have asked the wrong question!
>
> The piece of code I'm looking for is one which shows the pictures generated
> by the macro at each step, ie open image, find maxima, set threshold, etc
> as the macro progresses (like you would see if you were doing it manually)
> rather than it doing it in the background. Does that make sense?
>
> I need to check that my manual description is correct so I need to check
> the
> images that are generated at each step are the same.
>
> Thanks again for your help,
> Rose
>
>
>
> --
> View this message in context:
>
http://imagej.1557.n6.nabble.com/Command-to-see-whats-happening-in-my-macro-tp5000523p5000584.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html