- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractInterval
-
- org.scijava.ops.image.coloc.ShuffledView<T>
-
- Type Parameters:
T- Type of image to be shuffled.
- All Implemented Interfaces:
Dimensions,EuclideanSpace,Interval,RandomAccessible<T>,RandomAccessibleInterval<T>,RealInterval,View
public class ShuffledView<T> extends AbstractInterval implements RandomAccessibleInterval<T>, View
Randomly shuffles an image blockwise.- Author:
- Curtis Rueden, Ellen T Arena
-
-
Field Summary
-
Fields inherited from class net.imglib2.AbstractInterval
max, min
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description ShuffledView(RandomAccessibleInterval<T> image, int[] blockSize, long seed)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> RandomAccessibleInterval<T>cropAtCenter(RandomAccessibleInterval<T> image, int[] blockSize)static <T> RandomAccessibleInterval<T>cropAtMax(RandomAccessibleInterval<T> image, int[] blockSize)static <T> RandomAccessibleInterval<T>cropAtMin(RandomAccessibleInterval<T> image, int[] blockSize)RandomAccess<T>randomAccess()RandomAccess<T>randomAccess(Interval interval)voidshuffleBlocks()voidshuffleBlocks(long seed)-
Methods inherited from class net.imglib2.AbstractInterval
dimension, dimensions, max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMin, toString
-
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.Dimensions
dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.Interval
dimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMin
-
Methods inherited from interface net.imglib2.RandomAccessible
getAt, getAt, getAt
-
Methods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
-
-
-
-
Constructor Detail
-
ShuffledView
public ShuffledView(RandomAccessibleInterval<T> image, int[] blockSize, long seed)
-
-
Method Detail
-
shuffleBlocks
public void shuffleBlocks()
-
shuffleBlocks
public void shuffleBlocks(long seed)
-
randomAccess
public RandomAccess<T> randomAccess()
- Specified by:
randomAccessin interfaceRandomAccessible<T>
-
randomAccess
public RandomAccess<T> randomAccess(Interval interval)
- Specified by:
randomAccessin interfaceRandomAccessible<T>
-
cropAtMin
public static <T> RandomAccessibleInterval<T> cropAtMin(RandomAccessibleInterval<T> image, int[] blockSize)
-
cropAtMax
public static <T> RandomAccessibleInterval<T> cropAtMax(RandomAccessibleInterval<T> image, int[] blockSize)
-
cropAtCenter
public static <T> RandomAccessibleInterval<T> cropAtCenter(RandomAccessibleInterval<T> image, int[] blockSize)
-
-