Module org.bigdataviewer.core
Package bdv.export
Interface ExportScalePyramid.DatasetIO<D,T extends net.imglib2.type.NativeType<T>>
-
- Type Parameters:
D- Dataset handleT- Pixel type
- Enclosing class:
- ExportScalePyramid
public static interface ExportScalePyramid.DatasetIO<D,T extends net.imglib2.type.NativeType<T>>Writing and reading back data for each resolution level.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DcreateDataset(int level, long[] dimensions, int[] blockSize)Create a dataset for the image of the given resolutionlevel.voidflush()Blocks until all pending data was written todataset.default net.imglib2.RandomAccessibleInterval<T>getImage(int level)Opens a dataset that was already written as aRaπdomAccessibleInterval.voidwriteBlock(D dataset, org.janelia.saalfeldlab.n5.DataBlock<?> dataBlock)Write the givendataBlockto thedataset.
-
-
-
Method Detail
-
createDataset
D createDataset(int level, long[] dimensions, int[] blockSize) throws IOException
Create a dataset for the image of the given resolutionlevel.- Returns:
- a handle to the dataset.
- Throws:
IOException
-
writeBlock
void writeBlock(D dataset, org.janelia.saalfeldlab.n5.DataBlock<?> dataBlock) throws IOException
Write the givendataBlockto thedataset.- Throws:
IOException
-
flush
void flush() throws IOExceptionBlocks until all pending data was written todataset.- Throws:
IOException
-
getImage
default net.imglib2.RandomAccessibleInterval<T> getImage(int level) throws IOException
Opens a dataset that was already written as aRaπdomAccessibleInterval.- Throws:
IOException
-
-