how to handle interrupted steps in a macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to handle interrupted steps in a macro

nicolas.casadei
Dear all users,
 
I try to be as clear as possible, but this error is not simple to explain. I am using imageJ macro on a list of pictures to make particle analysis. I use the classical "open(dir+list[i])" to apply a combination of filters and other plugins to a single image and to repeat this analysis on all the pictures I am interested in.
 
During the run of the macro, imageJ display in the lower part of the imageJ toolbar the step currently running (for example dilate, or for example subtract background).
 
BUT time to time I also see "dilate INTERRUPTED" or "Subtract background INTERRUPTED".
 
I do not understand why these errors happen, but also I do not understand how to record them OR EVEN BETTER, how to force the calculation!
 
I would be grateful for any suggestion!
 
Best regards from Germany!
 
Nicolas C.
University of Tübingen
Reply | Threaded
Open this post in threaded view
|

Re: how to handle interrupted steps in a macro

Rasband, Wayne (NIH/NIMH) [E]
On Jun 3, 2014, at 4:00 PM, nicolas.casadei wrote:

> Dear all users,
>
> I try to be as clear as possible, but this error is not simple to explain. I
> am using imageJ macro on a list of pictures to make particle analysis. I use
> the classical "open(dir+list[i])" to apply a combination of filters and
> other plugins to a single image and to repeat this analysis on all the
> pictures I am interested in.
>
> During the run of the macro, imageJ display in the lower part of the imageJ
> toolbar the step currently running (for example dilate, or for example
> subtract background).
>
> BUT time to time I also see "dilate INTERRUPTED" or "Subtract background
> INTERRUPTED".
>
> I do not understand why these errors happen, but also I do not understand
> how to record them OR EVEN BETTER, how to force the calculation!

Try the latest ImageJ daily build (1.49c3). It fixes a bug that caused macros to not reset the "escapePressed" flag and not reseting this flag can cause "INTERRUPTED" to be displayed in the status bar. The "escapePressed" flag is set when the user presses the escape key.

-wayne

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