bug in roimanager flatten

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

bug in roimanager flatten

Aryeh Weiss
With V1.51 , the following script writes the labels into the flattened
image even when labels are not shown:

newImage("Untitled", "8-bit black", 1024, 1024, 2);
//setTool("point");
makePoint(225, 152);
roiManager("Add");
makePoint(258, 268);
roiManager("Add");
makePoint(562, 514);
roiManager("Add");
makePoint(278, 664);
roiManager("Add");
makePoint(377, 745);
roiManager("Add");
makePoint(736, 504);
roiManager("Add");
makePoint(418, 854);
roiManager("Add");
makePoint(740, 358);
roiManager("Add");
makePoint(600, 752);
roiManager("Add");
makePoint(713, 358);
roiManager("Add");
roiManager("Show All");
roiManager("Show All without labels");
run("Flatten", "stack");

V1.50 does not write the labels to the flattened image.

This only happens for a stack -- a if you change the created image to
newImage("Untitled", "8-bit black", 1024, 1024, 1);
then it works as expected.

--aryeh

--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: bug in roimanager flatten

Herbie
Good day Aryeh,

are you running the current version of ImageJ?

With ImageJ 1.51v19, Java 1.6.0_65 no labels are shown.

Regards

Herbie

:::::::::::::::::::::::::::::::::::::::::
Am 08.03.18 um 10:09 schrieb Aryeh Weiss:

> With V1.51 , the following script writes the labels into the flattened
> image even when labels are not shown:
>
> newImage("Untitled", "8-bit black", 1024, 1024, 2);
> //setTool("point");
> makePoint(225, 152);
> roiManager("Add");
> makePoint(258, 268);
> roiManager("Add");
> makePoint(562, 514);
> roiManager("Add");
> makePoint(278, 664);
> roiManager("Add");
> makePoint(377, 745);
> roiManager("Add");
> makePoint(736, 504);
> roiManager("Add");
> makePoint(418, 854);
> roiManager("Add");
> makePoint(740, 358);
> roiManager("Add");
> makePoint(600, 752);
> roiManager("Add");
> makePoint(713, 358);
> roiManager("Add");
> roiManager("Show All");
> roiManager("Show All without labels");
> run("Flatten", "stack");
>
> V1.50 does not write the labels to the flattened image.
>
> This only happens for a stack -- a if you change the created image to
> newImage("Untitled", "8-bit black", 1024, 1024, 1);
> then it works as expected.
>
> --aryeh
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: bug in roimanager flatten

Aryeh Weiss
Hi Herbie

Thank you for your reply.

On 08/03/2018 12:33, Herbie wrote:
> Good day Aryeh,
>
> are you running the current version of ImageJ?
It happens with today's daily build and one version previous.

It does not happen two versions previous.

Looks like a regression.
>
> With ImageJ 1.51v19, Java 1.6.0_65 no labels are shown.
>
I am running with Java 1.8_144

Best regards
--aryeh

> Regards
>
> Herbie
>
> :::::::::::::::::::::::::::::::::::::::::
> Am 08.03.18 um 10:09 schrieb Aryeh Weiss:
>> With V1.51 , the following script writes the labels into the
>> flattened image even when labels are not shown:
>>
>> newImage("Untitled", "8-bit black", 1024, 1024, 2);
>> //setTool("point");
>> makePoint(225, 152);
>> roiManager("Add");
>> makePoint(258, 268);
>> roiManager("Add");
>> makePoint(562, 514);
>> roiManager("Add");
>> makePoint(278, 664);
>> roiManager("Add");
>> makePoint(377, 745);
>> roiManager("Add");
>> makePoint(736, 504);
>> roiManager("Add");
>> makePoint(418, 854);
>> roiManager("Add");
>> makePoint(740, 358);
>> roiManager("Add");
>> makePoint(600, 752);
>> roiManager("Add");
>> makePoint(713, 358);
>> roiManager("Add");
>> roiManager("Show All");
>> roiManager("Show All without labels");
>> run("Flatten", "stack");
>>
>> V1.50 does not write the labels to the flattened image.
>>
>> This only happens for a stack -- a if you change the created image to
>> newImage("Untitled", "8-bit black", 1024, 1024, 1);
>> then it works as expected.
>>
>> --aryeh
>>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: bug in roimanager flatten

Wayne Rasband-2
In reply to this post by Aryeh Weiss
> On Mar 8, 2018, at 4:09 AM, Aryeh Weiss <[hidden email]> wrote:
>
> With V1.51 , the following script writes the labels into the flattened image even when labels are not shown:

This regression is fixed in the ImageJ 1.51v28 daily build and in the “1.51v” release candidate shown at the top of the “Upgrade to:” list in the Help>Upgrade ImageJ dialog.

-wayne


> newImage("Untitled", "8-bit black", 1024, 1024, 2);
> //setTool("point");
> makePoint(225, 152);
> roiManager("Add");
> makePoint(258, 268);
> roiManager("Add");
> makePoint(562, 514);
> roiManager("Add");
> makePoint(278, 664);
> roiManager("Add");
> makePoint(377, 745);
> roiManager("Add");
> makePoint(736, 504);
> roiManager("Add");
> makePoint(418, 854);
> roiManager("Add");
> makePoint(740, 358);
> roiManager("Add");
> makePoint(600, 752);
> roiManager("Add");
> makePoint(713, 358);
> roiManager("Add");
> roiManager("Show All");
> roiManager("Show All without labels");
> run("Flatten", "stack");
>
> V1.50 does not write the labels to the flattened image.
>
> This only happens for a stack -- a if you change the created image to
> newImage("Untitled", "8-bit black", 1024, 1024, 1);
> then it works as expected.
>
> --aryeh
>
> --
> Aryeh Weiss
> Faculty of Engineering
> Bar Ilan University
> Ramat Gan 52900 Israel
>
> Ph:  972-3-5317638
> FAX: 972-3-7384051
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: bug in roimanager flatten

Aryeh Weiss
Thank you, Wayne.
Works as advertised.

On 08/03/2018 21:24, Wayne Rasband wrote:

>> On Mar 8, 2018, at 4:09 AM, Aryeh Weiss <[hidden email]> wrote:
>>
>> With V1.51 , the following script writes the labels into the flattened image even when labels are not shown:
> This regression is fixed in the ImageJ 1.51v28 daily build and in the “1.51v” release candidate shown at the top of the “Upgrade to:” list in the Help>Upgrade ImageJ dialog.
>
> -wayne
>
>
>> newImage("Untitled", "8-bit black", 1024, 1024, 2);
>> //setTool("point");
>> makePoint(225, 152);
>> roiManager("Add");
>> makePoint(258, 268);
>> roiManager("Add");
>> makePoint(562, 514);
>> roiManager("Add");
>> makePoint(278, 664);
>> roiManager("Add");
>> makePoint(377, 745);
>> roiManager("Add");
>> makePoint(736, 504);
>> roiManager("Add");
>> makePoint(418, 854);
>> roiManager("Add");
>> makePoint(740, 358);
>> roiManager("Add");
>> makePoint(600, 752);
>> roiManager("Add");
>> makePoint(713, 358);
>> roiManager("Add");
>> roiManager("Show All");
>> roiManager("Show All without labels");
>> run("Flatten", "stack");
>>
>> V1.50 does not write the labels to the flattened image.
>>
>> This only happens for a stack -- a if you change the created image to
>> newImage("Untitled", "8-bit black", 1024, 1024, 1);
>> then it works as expected.
>>
>> --aryeh
>>
>> --
>> Aryeh Weiss
>> Faculty of Engineering
>> Bar Ilan University
>> Ramat Gan 52900 Israel
>>
>> Ph:  972-3-5317638
>> FAX: 972-3-7384051
>>
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051

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