Re: Calling Make Binary from within a macro brings up a pop-up

Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/Calling-Make-Binary-from-within-a-macro-brings-up-a-pop-up-tp3683593p3683596.html

On Sunday 07 Aug 2011 19:09:18 you wrote:
> This particular macro does not process a stack.  It is processing a "mask"
> image from a previous "Analyze Particles" and saved as a Tiff file.

First thing to try: Does your macro set a threshold before calling the Make
Binary command? If not try setting one.

If that does not make a difference, what happens if before running the macro
you make a dummy image and run these macro commands:

setThreshold(127, 255);
run("Threshold", "thresholded remaining");

Then close that dummy image and try your macro again. Does the dialog still
appear?
I seem to remember something like this happening. I have a custom
startupmacros file where I set a number of defaults and those 2 command above
are in my file.

Cheers
Gabriel