[ImageJ-devel] Local Neighborhood stuff

Jean-Yves Tinevez jeanyves.tinevez at gmail.com
Mon Aug 20 07:50:04 CDT 2012


Hi Stephan

Just to be sure I got your point:

You mean that if we iterate over all the neighbohoods of a single final
image in a multithreaded way, we might screw up with the unsafe
implementations right? In a pseudo code, this:

for (int i =0; i < nThreads, i++) {
  threads[i] = new Thread() {

    public void run() {

             for ( Neighborhood<T> n : chunks)
                    for ( T t : n )
          ...
...
...

would always fail with the unsafe implementation and always work with safe
implementations? Right??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20120820/2ced4f60/attachment-0001.html>


More information about the ImageJ-devel mailing list