Posted by
Dan McDonald on
URL: http://imagej.273.s1.nabble.com/Calling-Make-Binary-from-within-a-macro-brings-up-a-pop-up-tp3683593p3683597.html
Gabriel,
When I create and run a simple macro with the Make Binary command on my
machine I do not get the pop-up window. The problematic macro has several
hundred lines of code. I must be doing something within my macro that is
not correct. I had assumed the bad line of code causing the Make Binary
window to pop-up was when I ran Make Binary. That might not be the case.
Let me try to parse the problem up and isolate it. I'll let you know what I
find out.
Dan
Daniel W. McDonald, President
Phenotype Screening Corporation
4028 Papermill Rd, Suite 10
Knoxville, TN 37909
(865) 385-8641
Our product, RootViz FS, was a 2007 R&D100 Award Winner. Rated as one of the
100 most technologically significant products introduced into the
marketplace in the prior year.
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
Gabriel Landini
Sent: Sunday, August 07, 2011 4:04 PM
To:
[hidden email]
Subject: Re: Calling Make Binary from within a macro brings up a pop-up
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