Login  Register

Re: ImageCalculator Result

Posted by David Webster on Oct 11, 2009; 2:17am
URL: http://imagej.273.s1.nabble.com/ImageCalculator-Result-tp3690847p3690849.html

I tried this and it works fine. I assume though that the run() method is no
longer void. Is this option going to mbe extended to other classes?

David Webster



On Sat, Oct 10, 2009 at 5:55 PM, Wayne Rasband <[hidden email]> wrote:

> On Oct 10, 2009, at 4:19 PM, David William Webster wrote:
>
>  All,
>>
>> My latest confusion is over how to get the ImagePlus object created
>> by the ImageCalculator. That is, say I do something like that shown
>> below, but I want to change the title of the result, then I need to have
>> the ImagePlus object created by iC.calculate(). How can I get it?
>>
>> ImageCalculator iC = new ImageCalculator();
>> iC.calculate("divide create 32-bit stack", imIn, imL5L5);
>>
>
> Upgrade to the v1.43i daily build and use
>
>   ImageCalculator iC = new ImageCalculator();
>   ImagePlus result = iC.run("divide create 32-bit stack", imIn, imL5L5);
>
> -wayne
>