Login  Register

Re: algorithm of B&C Auto

Posted by CARL Philippe (LBP) on Nov 25, 2020; 5:43pm
URL: http://imagej.273.s1.nabble.com/algorithm-of-B-C-Auto-tp5024233p5024235.html

Dear Paul,
Within ImageJ, when you press the key "l" the command finder window will appear.
Within it you can start to write "brightness" but already with "brig" i get as only choice the Brightness/Contrast... tool.
And when you select it and press the "Source" button you will directly be linked to the following adress:
https://imagej.nih.gov/ij/source/ij/plugin/frame/ContrastAdjuster.java
and looking a little bit within the ciode you can find that it is the following method that is doing the job:
void autoAdjust(ImagePlus imp, ImageProcessor ip)
My best regards,
Philippe

Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 42 89

----- Le 25 Nov 20, à 18:11, Xiao, Paul [hidden email] a écrit :

Hi,
What is the algorithm of B&C Auto function. How are the Minimum and Maximum values calculated exactly when Auto button is presses. I am trying to replicate the calculation in Python.
Thanks.

Best regards,

Paul

Paul Xiao, Ph.D.
________________________________
This message (including any attachments) may contain confidential, proprietary, privileged and/or private information. The information is intended to be for the use of the individual or entity designated above. If you are not the intended recipient of this message, please notify the sender immediately, and delete the message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited.

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

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