Login  Register

Re: ImageCalculator Result

Posted by Robert Dougherty on Oct 10, 2009; 9:30pm
URL: http://imagej.273.s1.nabble.com/ImageCalculator-Result-tp3690847p3690854.html

Gabriel,

This is why the instructions for my plugins sometime include "please  
refrain from clicking on anything until it is finished."  I like your  
"Result of" suggestion.  What happens if that name is not unique?

Bob

On Oct 10, 2009, at 2:15 PM, Gabriel Landini wrote:

> 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.