Login  Register

Re: Bug report: Error when using imageCalculator() in batch mode

Posted by Rasband, Wayne (NIH/NIMH) [E] on Nov 21, 2014; 3:42am
URL: http://imagej.273.s1.nabble.com/Bug-report-Error-when-using-imageCalculator-in-batch-mode-tp5010569p5010575.html

On Nov 20, 2014, at 7:21 AM, Fang XU <[hidden email]> wrote:

>
> Hi,
>
> When I updated to ImageJ 1.49k, I found there is an issue when using
> imageCalculator() function in batch mode.
>
> Here are minimal demo codes:
>
> run("Fluorescent Cells (400K)");
>> tt = getTitle();
>> setBatchMode(true);
>> imageCalculator("subtract create stack", tt, tt);
>> setBatchMode(false);
>>
>
> The macro terminates with a window saying "Image -xxx not found or no
> images are open”.

This regression is fixed in the latest ImageJ daily build (1.49m8).

-wayne

> In any one of the following 4 situations, there is no error:
>
> (1)  The image has only one frame.
> (2)  Do not use batch mode.
> (3)  Do not use "create" in imageCalculator() function, i.e. just use
> imageCalculator("subtract stack", tt, tt).
> (4)  Downgrade ImageJ to v1.48.
>
> Does anyone encounter such problem?
>
> My environment:
>
>> Windows 7 (x64)
>> Java 1.6.0_20 (64-bit)
>> ImageJ 1.49k
>>
>
> Thanks,
> Fang Xu

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