<div>So I've been having a heck of a time trying to implement and understand the IJ 1.0 auto contrast behavior in IJ 2.0.</div><div><br></div><div><div>The current IJ 2 implementation is in imagej.data.display.AbstractDatasetView.autoscale</div>
</div><div><br></div><div>You can see the original code here:</div><div><a href="http://rsbweb.nih.gov/ij/developer/source/ij/plugin/frame/ContrastAdjuster.java.html">http://rsbweb.nih.gov/ij/developer/source/ij/plugin/frame/ContrastAdjuster.java.html</a></div>
<div>search for: void autoAdjust</div><div><br></div><div>I'm particularly perplexed by the AUTO_THRESHOLD variable.</div>
<div><br></div><div>I'm available on IRC if anyone has a moment to discuss this.</div><div><br></div><div>-Adam</div><div><br></div><div><div><div>PS: Here's the related ticket: <a href="http://dev.imagejdev.org/trac/imagej/ticket/796">http://dev.imagejdev.org/trac/imagej/ticket/796</a></div>
</div></div><div><br></div>