Class RandomImgs


  • public class RandomImgs
    extends java.lang.Object
    • Field Detail

      • random

        private final java.util.Random random
    • Constructor Detail

      • RandomImgs

        private RandomImgs​(int seed)
    • Method Detail

      • seed

        public static RandomImgs seed​(int seed)
      • nextImage

        public <T extends NativeType<T>> Img<T> nextImage​(T type,
                                                          long... dims)
        Creates an image with randomized content
        Parameters:
        type - Pixel type
        dims - Dimensions
      • randomize

        public <I extends RandomAccessibleInterval<T>,​T> I randomize​(I image)
        Randomizes the content of the given image.
        Returns:
        Reference to the given image
      • randomSetter

        private <T> java.util.function.Consumer<T> randomSetter​(T type)