Re: Can't Multithread on Third Party Plugins
Posted by
Michael Doube on
Mar 26, 2010; 10:21am
URL: http://imagej.273.s1.nabble.com/Can-t-Multithread-on-Third-Party-Plugins-tp3688791p3688792.html
Ari,
You might like to try the Particle Analyser in BoneJ:
http://doube.org/bonej.htmlBecause of exactly your problem it is multithreaded, and runs
substantially faster than the old Object Counter 3D (which it was based
on). It even uses Bob's multithreading approach.
We have been experimenting with a single-threaded version of this
particle that runs in O(n) (linear) time (super-fast on big stacks), but
at the expense of tons of RAM. You're welcome to check the code out at:
http://github.com/mdoube/BoneJ/blob/b29a8cbeae2078960e2a1b87b77d41debfe88df7/src/org/doube/bonej/ParticleCounter.javaMike
On 25/03/2010 23:22, Ari Zwick wrote:
> Hi,
>
> I am trying to get multithreading to work with a number of plugins in
> ImageJ, most important to me is Object Counter 3D. When I try to use this
> program on a 64 mb file that includes all objects of volume 16-61200000
> voxels, I run into a processing time of about 6-8 hours. I intend to scale
> this up by a factor of 10, which means that unless I can use all 8 cores on
> my computer instead of 1, then I'll be waiting for days. I've noticed that
> I cannot get third party plugins to use more than 1 core, but the native
> ImageJ functions do use all 8 cores.