Re: ImageCalculator Result
Posted by Gabriel Landini on Oct 10, 2009; 9:15pm
URL: http://imagej.273.s1.nabble.com/ImageCalculator-Result-tp3690847p3690853.html
On Saturday 10 October 2009 21:33:38 Robert Dougherty wrote:
> How about WindowManager.getCurrentImage()?
The following is not clear to me: in a macro, the result of the calculator is
the currently selected image. Yet this is not thread-safe (is this the right
name?) because one could click another image while the macro runs and that
image becomes the current one, rather than the result image.
Is this also a problem when writing a plugin and using the above?
If so, then one can use the fact that the calculator returns an image called
"Result of "+<image name> to make sure one is using the right image.
Cheers,
G.