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

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

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

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

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
Reply | Threaded
Open this post in threaded view
|

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

Rasband, Wayne (NIH/NIMH) [E]
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