<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:jan.eglinger@gmail.com" title="Jan Eglinger <jan.eglinger@gmail.com>"> <span class="fn">Jan Eglinger</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Local Thickness fails to produce final output"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=1231">bug 1231</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;">CC</td>
<td>
</td>
<td>jan.eglinger@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Local Thickness fails to produce final output"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=1231#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Local Thickness fails to produce final output"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=1231">bug 1231</a>
from <span class="vcard"><a class="email" href="mailto:jan.eglinger@gmail.com" title="Jan Eglinger <jan.eglinger@gmail.com>"> <span class="fn">Jan Eglinger</span></a>
</span></b>
<pre>This appears to be a race condition, caused by the LocalThickness plugin
calling WindowManager.getCurrentImage() (instead of handing over a proper
reference to the result image) several times in the source code:
<a href="https://github.com/fiji/LocalThickness/blob/master/src/main/java/sc/fiji/localThickness/Local_Thickness_Driver.java#L90-L101">https://github.com/fiji/LocalThickness/blob/master/src/main/java/sc/fiji/localThickness/Local_Thickness_Driver.java#L90-L101</a>
To work around this, you can run the plugin in batch mode. The following macro
worked for me:
for (y=0;y<8;y++)
{
run("Leaf (36K)");
run("Duplicate...", " ");
selectWindow("leaf-1.jpg");
run("8-bit");
setBatchMode(true);
run("Local Thickness (complete process)", "threshold=100 inverse");
setBatchMode(false);
wait(100);
close();
close();
close();
}
This is just for illustration purpose. Obviously, depending on what you
actually want to do, you should run the whole loop in batch mode instead of
switching on and off in every iteration.</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>