Class Block
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractInterval
net.preibisch.mvrecon.process.cuda.Block
- All Implemented Interfaces:
net.imglib2.Dimensions,net.imglib2.EuclideanSpace,net.imglib2.Interval,net.imglib2.RealInterval
-
Field Summary
Fields inherited from class net.imglib2.AbstractInterval
max, minFields inherited from class net.imglib2.AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsConstructorDescriptionBlock(ExecutorService service, long[] blockSize, long[] offset, long[] effectiveSize, long[] effectiveOffset, long[] effectiveLocalOffset, boolean isPrecise) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyBlock(net.imglib2.RandomAccessible<net.imglib2.type.numeric.real.FloatType> source, net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.real.FloatType> block) voidfinalize()WARNING: this method may never get invoked, unless the garbage collector processes this instance; what is likely to happen is that the native memory consumed by theExecutorServiceis never released.long[]long[]booleanstatic voidstatic final long[]max(long[] min, long[] size) voidpasteBlock(net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.real.FloatType> target, net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.real.FloatType> block) Methods inherited from class net.imglib2.AbstractInterval
dimension, dimensions, max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMin, toStringMethods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensionsMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.Dimensions
dimensions, dimensionsAsLongArray, dimensionsAsPointMethods inherited from interface net.imglib2.EuclideanSpace
numDimensionsMethods inherited from interface net.imglib2.Interval
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPointMethods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
-
Constructor Details
-
Block
public Block(ExecutorService service, long[] blockSize, long[] offset, long[] effectiveSize, long[] effectiveOffset, long[] effectiveLocalOffset, boolean isPrecise)
-
-
Method Details
-
getBlockSize
public long[] getBlockSize() -
getEffectiveSize
public long[] getEffectiveSize() -
finalize
public void finalize()WARNING: this method may never get invoked, unless the garbage collector processes this instance; what is likely to happen is that the native memory consumed by theExecutorServiceis never released. It would be preferable to declare a "destroy()" method that does so explictly. -
isPrecise
public boolean isPrecise()- Returns:
- - if the blocks that cover an area/volume/... are precise, i.e. if they are identical to performing the convolution on the entire image. Non-precise blocks do not need an outofbounds, they will not query data from outside of the blocked area.
-
copyBlock
public void copyBlock(net.imglib2.RandomAccessible<net.imglib2.type.numeric.real.FloatType> source, net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.real.FloatType> block) - Parameters:
source- - needs to be extended with an OutOfBounds in case the block extends past the boundaries of the RandomAccessibleIntervalblock- - the Block to copy it to
-
pasteBlock
public void pasteBlock(net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.real.FloatType> target, net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.real.FloatType> block) -
max
public static final long[] max(long[] min, long[] size) -
main
-