imglib / imglib2-algorithm

Image processing algorithms for ImgLib2
http://imglib2.net/
Other
22 stars 20 forks source link

Fix issue 77 #78

Closed maarzt closed 5 years ago

maarzt commented 5 years ago

Fix https://github.com/imglib/imglib2-algorithm/issues/77

Executors.newCachedThreadPool().getMaximumPoolSize() return Integer.MAX_VALUE. This caused some problems (number overflow) trying to parallelize Gauss convolution. This PR makes some changes that improve the code for parallelization when the number of threads is very high.