Re: autoAdjust

Posted by Michael Schmid on
URL: http://imagej.273.s1.nabble.com/Using-Brush-Tool-in-Java-tp5002648p5002676.html

Hi Philippe,

you can try
  ContrastEnhancer.stretchHistogram(ImageProcessor ip, double saturated) or
  ContrastEnhancer.stretchCompositeImageHistogram(CompositeImage imp, double saturated, ImageStatistics stats)
The default value for auto adjustment is saturated = 0.35 (in percent).

Michael
________________________________________________________________
On Apr 15, 2013, at 23:58, CARL Philippe (PHA) wrote:

> Dear all,
> I would like to use the method auto-adjust contrast on a picture (within a plugin) which is I guess the ContrastAdjuster.autoAdjust(ImagePlus imp, ImageProcessor ip) method from ij.plugin.frame.ContrastAdjuster.
> But this method is not public and thus cannot be accessed from outside package.
> Also is there an alternative way of running an auto-adjust contrast?
> I thank you very much in advance for your help.
> My best regards,
> Philippe

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