Login  Register

Re: bug with Brightness & Contrast?

Posted by Wayne Rasband-2 on Dec 01, 2020; 12:56am
URL: http://imagej.273.s1.nabble.com/bug-with-Brightness-Contrast-tp5024248p5024260.html

> On Nov 30, 2020, at 2:50 PM, Cammer, Michael <[hidden email]> wrote:
>
> I am surprised that you cannot reproduce the problem.  The histogram does not change and the image is not updated.  It occurs with the clown image but not when I make a new 8 or 16 bit ramp image.  "Apply" means specifically that the values should be changed, and this is what happens with a 8 or 16 bit image.

With the latest daily build (1.53g58), the histogram of single RGB images is updated as you change the brightness and contrast and the “Apply” button does nothing. The daily build also fixes the Image>Adjust>Color Balance problem that Michael Schmid reported.

> The new window that pops up with a warning that the values will be changed also slows things down.  Could an option be added please that eliminates this pop up?

The “WARNING: the pixel values will change if you click ‘OK’” should not have been used with RGB images since all brightness and contrast adjustments change the pixel values.

-wayne


> ________________________________
> <[hidden email]>
> Sent: Monday, November 30, 2020 2:07 PM
>
> Subject: Re: bug with Brightness & Contrast?
>
> [EXTERNAL]
>
> On Monday, 30 November 2020 18:27:54 GMT you wrote:
>>> On Nov 29, 2020, at 11:29 PM, Cammer, Michael
>>> <[hidden email]> wrote:
>>>
>>> I have been having problems with  B&C for some time and would appreciate
>>> help.
>>>
>>>
>>> When I adjust the contrast and hit apply, usually the contrast is not
>>> applied.
>> I am not able to reproduce this problem using ImageJ 1.53g and Java
>> 1.8.0_172 on MacOS and Windows.
>
>
> I can reproduce it, sometimes, with the image provided (IJ 1.53g57, Java
> 14.0.2, linux).
>
> I think there is an issue with and that can be seen in the tiny histogram
> shown in the B/C applet which does not seems to update after hitting "Apply".
> However a new Analyze>Histogram shows that the brightness conversion has been
> applied. It is not reproducible 100% of the time.
>
> Another instance where it seems to "not work" is this:
> Click Auto,
> Click Apply and press OK in the dialog.
> The tiny histogram does not update.
> Click Reset and the image goes back to the original.
> I would have expected that if the auto-contrast has been "applied" then the
> reset button would not do anything.
>
> Cheers
>
> Gabriel

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