Re: did anyone implement a 3D watershed?
Posted by
Albert Cardona on
Nov 16, 2007; 11:50pm
URL: http://imagej.273.s1.nabble.com/did-anyone-implement-a-3D-watershed-tp3697960p3697962.html
Hi Thomas,
I run the 3D watershed on an 8-bit stack and I get:
- a copy of the stack
- the message: "Command 005-random not found"
- the original stack is left locked.
I opened the source code and I found that, within the run method, an
IJ.run call is issued for the "005-random" command. Which plugin
implements this functionality?
Also, a general recommendation: your plugins are not thread safe. Such
IJ.run call assumes that the WindowManager will have, as the currently
active image, the copy of the stack that you just created and opened,
which can easily not be the case. I suggest you use the ImagePlus
pointer directly to pass to the 005-random.
Albert
--
Albert Cardona
http://www.mcdb.ucla.edu/Research/Hartenstein/acardona