Class IterableLoopBuilder<T>

java.lang.Object
net.imglib2.loops.IterableLoopBuilder<T>

public class IterableLoopBuilder<T> extends Object
Similar to LoopBuilder, but expects the first image to be an IterableInterval and the other images to be RandomAccessible.

Please note: It is usually preferable to use LoopBuilder as it often has a better performance, and using RandomAccessibleInterval for all images is simpler.

Here is an usage example, that calculates the sum of two images:

 
 IterableInterval<DoubleType> sum = ...
 RandomAccessible<DoubleType> imageA = ...
 RandomAccessible<DoubleType> imageB = ...

 IterableLoopBuilder.setImages(sum, imageA, imageB).forEachPixel(
     (s, a, b) -> {
          s.setReal(a.getRealDouble() + b.getRealDouble());
     }
 );
 
 
See Also: