Class RandomImgs
java.lang.Object
net.imglib2.test.RandomImgs
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends NativeType<T>>
Img<T> nextImage(T type, long... dims) Creates an image with randomized content<T extends NativeType<T>>
RandomAccessibleInterval<T> Creates an image with randomized content.<I extends RandomAccessibleInterval<T>, T>
Irandomize(I image) Randomizes the content of the given image.private <T> Consumer<T> randomSetter(T type) static RandomImgsseed(int seed)
-
Field Details
-
random
-
-
Constructor Details
-
RandomImgs
private RandomImgs(int seed)
-
-
Method Details
-
seed
-
nextImage
Creates an image with randomized content.- Parameters:
type- Pixel typeinterval- Interval
-
nextImage
Creates an image with randomized content- Parameters:
type- Pixel typedims- Dimensions
-
randomize
Randomizes the content of the given image.- Returns:
- Reference to the given image
-
randomSetter
-