<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:wsr@nih.gov" title="Wayne Rasband <wsr@nih.gov>"> <span class="fn">Wayne Rasband</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - ij.process.AutoThresholder and fiji.threshold.Auto_Threshold return different values"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=1183">bug 1183</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>wsr@nih.gov
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WONTFIX
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - ij.process.AutoThresholder and fiji.threshold.Auto_Threshold return different values"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=1183#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - ij.process.AutoThresholder and fiji.threshold.Auto_Threshold return different values"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=1183">bug 1183</a>
from <span class="vcard"><a class="email" href="mailto:wsr@nih.gov" title="Wayne Rasband <wsr@nih.gov>"> <span class="fn">Wayne Rasband</span></a>
</span></b>
<pre>The ij.process.AutoThresholder class currently only works with 8-bit
histograms. To threshold a 16-bit image, ImageJ converts the image to 8-bits,
gets the threshold and then scales it to a 16-bit threshold. This JavaScript
demonstrates how to get the thresholds of each image in a 16-bit stack.
imp = IJ.openImage("<a href="http://imagej.nih.gov/ij/images/t1-head.zip">http://imagej.nih.gov/ij/images/t1-head.zip</a>");
stack = imp.getStack();
for (i=1; i<=stack.getSize(); i++) {
ip = stack.getProcessor(i);
ip.setAutoThreshold("Moments dark");
print(i+" "+ip.getMinThreshold());
}
I updated the AutoThresholder JavaDocs to make it clear that it only works with
8-bit images.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>