Set min/max does not work via the GUI for large 32-bit images

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

Set min/max does not work via the GUI for large 32-bit images

Stein Rørvik
I found a bug which seems to be connected to the GUI since it works fine in a macro:
If you try to set the contrast range (Min/Max values) in the Brightness/Contrast dialog,
the values always revert to the previous values if the image is 32 bit and the edges are several thousand pixels length.

Here is a macro reproducing the issue:

run("M51 Galaxy (177K, 16-bits)");
run("32-bit");
run("Scale...", "x=10 y=10 interpolation=Bilinear average create");
run("Brightness/Contrast...");
waitForUser("Now please try to set a fixed min/max range of 0/1000\n using the Set button in the Brightness/Contrast dialog");
//this does not work, the min/max values revert to the previous values

//setting it via macro works fine however:
//setMinAndMax(0, 1000);


I am using daily build ImageJ 1.51u with Java 1.6 on Windows 7/64-bit.


Stein

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

Re: Set min/max does not work via the GUI for large 32-bit images

Michael Schmid-3
Hi Stein,

sorry, I could not reproduce this, neither on Linux (Java 1.8) nor on
Win 10 (Java 1.6).

I also tried different '16-bit range' settings in
Edit>Options>Appearance (automatic and 12 bit), to see whether the range
of the input image makes a difference, it seems it does not.

I even tried with a scale of 60 (2.2 GB image size). Then, image
updating on the screen has a problem under Linux (at magnifications
<below 4%; probably related to the Intel graphics), but the B&C limits
are fine.

What I noticed, however:
If the B&C is opened the first time in a session, it does 'Auto'
brightness. Later, there is no auto B&C scaling.


Michael
________________________________________________________________


On 17/01/2018 00:03, Stein Rørvik wrote:

> I found a bug which seems to be connected to the GUI since it works fine in a macro:
> If you try to set the contrast range (Min/Max values) in the Brightness/Contrast dialog,
> the values always revert to the previous values if the image is 32 bit and the edges are several thousand pixels length.
>
> Here is a macro reproducing the issue:
>
> run("M51 Galaxy (177K, 16-bits)");
> run("32-bit");
> run("Scale...", "x=10 y=10 interpolation=Bilinear average create");
> run("Brightness/Contrast...");
> waitForUser("Now please try to set a fixed min/max range of 0/1000\n using the Set button in the Brightness/Contrast dialog");
> //this does not work, the min/max values revert to the previous values
>
> //setting it via macro works fine however:
> //setMinAndMax(0, 1000);
>
>
> I am using daily build ImageJ 1.51u with Java 1.6 on Windows 7/64-bit.
>
>
> Stein
>

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

Re: Set min/max does not work via the GUI for large 32-bit images

Stein Rørvik
Ok, I will test it on Windows 10 to see if it is a Windows 7 issue (which is what I normally use).
I also get Auto brightness the first time B&C is opened; the problem is that it gets stuck in Auto brightness. I forgot to mention that If I successfully set the min-max using a macro; subsequent usage of the B&C dialog work correctly. So this problem only occurs mainly on a freshly opened ImageJ instance.

Stein

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid
Sent: 17. januar 2018 10:31
To: [hidden email]
Subject: Re: Set min/max does not work via the GUI for large 32-bit images

Hi Stein,

sorry, I could not reproduce this, neither on Linux (Java 1.8) nor on Win 10 (Java 1.6).

I also tried different '16-bit range' settings in
Edit>Options>Appearance (automatic and 12 bit), to see whether the range
of the input image makes a difference, it seems it does not.

I even tried with a scale of 60 (2.2 GB image size). Then, image
updating on the screen has a problem under Linux (at magnifications
<below 4%; probably related to the Intel graphics), but the B&C limits
are fine.

What I noticed, however:
If the B&C is opened the first time in a session, it does 'Auto'
brightness. Later, there is no auto B&C scaling.


Michael
________________________________________________________________


On 17/01/2018 00:03, Stein Rørvik wrote:

> I found a bug which seems to be connected to the GUI since it works fine in a macro:
> If you try to set the contrast range (Min/Max values) in the Brightness/Contrast dialog,
> the values always revert to the previous values if the image is 32 bit and the edges are several thousand pixels length.
>
> Here is a macro reproducing the issue:
>
> run("M51 Galaxy (177K, 16-bits)");
> run("32-bit");
> run("Scale...", "x=10 y=10 interpolation=Bilinear average create");
> run("Brightness/Contrast...");
> waitForUser("Now please try to set a fixed min/max range of 0/1000\n using the Set button in the Brightness/Contrast dialog");
> //this does not work, the min/max values revert to the previous values
>
> //setting it via macro works fine however:
> //setMinAndMax(0, 1000);
>
>
> I am using daily build ImageJ 1.51u with Java 1.6 on Windows 7/64-bit.
>
>
> Stein
>

--
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: Set min/max does not work via the GUI for large 32-bit images

Straatman, Kees (Dr.)
I can reproduce the problem using Windows7(Java1.8). When I set the values as suggested they seem to be set but directly revert back to the precious values.

Kees

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Stein Rørvik
Sent: 17 January 2018 10:07
To: [hidden email]
Subject: Re: Set min/max does not work via the GUI for large 32-bit images

Ok, I will test it on Windows 10 to see if it is a Windows 7 issue (which is what I normally use).
I also get Auto brightness the first time B&C is opened; the problem is that it gets stuck in Auto brightness. I forgot to mention that If I successfully set the min-max using a macro; subsequent usage of the B&C dialog work correctly. So this problem only occurs mainly on a freshly opened ImageJ instance.

Stein

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid
Sent: 17. januar 2018 10:31
To: [hidden email]
Subject: Re: Set min/max does not work via the GUI for large 32-bit images

Hi Stein,

sorry, I could not reproduce this, neither on Linux (Java 1.8) nor on Win 10 (Java 1.6).

I also tried different '16-bit range' settings in
Edit>Options>Appearance (automatic and 12 bit), to see whether the range
of the input image makes a difference, it seems it does not.

I even tried with a scale of 60 (2.2 GB image size). Then, image updating on the screen has a problem under Linux (at magnifications <below 4%; probably related to the Intel graphics), but the B&C limits are fine.

What I noticed, however:
If the B&C is opened the first time in a session, it does 'Auto'
brightness. Later, there is no auto B&C scaling.


Michael
________________________________________________________________


On 17/01/2018 00:03, Stein Rørvik wrote:

> I found a bug which seems to be connected to the GUI since it works fine in a macro:
> If you try to set the contrast range (Min/Max values) in the
> Brightness/Contrast dialog, the values always revert to the previous values if the image is 32 bit and the edges are several thousand pixels length.
>
> Here is a macro reproducing the issue:
>
> run("M51 Galaxy (177K, 16-bits)");
> run("32-bit");
> run("Scale...", "x=10 y=10 interpolation=Bilinear average create");
> run("Brightness/Contrast..."); waitForUser("Now please try to set a
> fixed min/max range of 0/1000\n using the Set button in the
> Brightness/Contrast dialog"); //this does not work, the min/max values
> revert to the previous values
>
> //setting it via macro works fine however:
> //setMinAndMax(0, 1000);
>
>
> I am using daily build ImageJ 1.51u with Java 1.6 on Windows 7/64-bit.
>
>
> Stein
>

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

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

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