[ImageJ-bugs] [Bug 1231] Local Thickness fails to produce final output
bugzilla at fiji.sc
bugzilla at fiji.sc
Wed Feb 24 05:32:54 CST 2016
http://fiji.sc/bugzilla/show_bug.cgi?id=1231
Jan Eglinger <jan.eglinger at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.eglinger at gmail.com
--- Comment #1 from Jan Eglinger <jan.eglinger at gmail.com> ---
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:
https://github.com/fiji/LocalThickness/blob/master/src/main/java/sc/fiji/localThickness/Local_Thickness_Driver.java#L90-L101
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20160224/b24f2a0e/attachment.html>
More information about the Imagej-bugs
mailing list