- java.lang.Object
-
- bdv.export.ExportScalePyramid
-
public class ExportScalePyramid extends Object
Write an image to a chunked mipmap representation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceExportScalePyramid.AfterEachPlaneCallback that is called after each "plane of blocks" is written, giving the opportunity to clear caches, etc.static interfaceExportScalePyramid.DatasetIO<D,T extends net.imglib2.type.NativeType<T>>Writing and reading back data for each resolution level.static classExportScalePyramid.DefaultLoopbackHeuristicSimple heuristic: use loopback image loader if saving 8 times or more on number of pixel access with respect to the original image.static interfaceExportScalePyramid.LoopbackHeuristicA heuristic to decide for a given resolution level whether the source pixels should be taken from the original image or read from a previously written resolution level in the output dataset.
-
Constructor Summary
Constructors Constructor Description ExportScalePyramid()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>,D>
voidwriteScalePyramid(net.imglib2.RandomAccessibleInterval<T> img, T type, ExportMipmapInfo mipmapInfo, ExportScalePyramid.DatasetIO<D,T> io, ExecutorService executorService, int numThreads, ExportScalePyramid.LoopbackHeuristic loopbackHeuristic, ExportScalePyramid.AfterEachPlane afterEachPlane, ProgressWriter progressWriter)Write an image to a chunked mipmap representation.
-
-
-
Method Detail
-
writeScalePyramid
public static <T extends net.imglib2.type.numeric.RealType<T> & net.imglib2.type.NativeType<T>,D> void writeScalePyramid(net.imglib2.RandomAccessibleInterval<T> img, T type, ExportMipmapInfo mipmapInfo, ExportScalePyramid.DatasetIO<D,T> io, ExecutorService executorService, int numThreads, ExportScalePyramid.LoopbackHeuristic loopbackHeuristic, ExportScalePyramid.AfterEachPlane afterEachPlane, ProgressWriter progressWriter) throws IOException
Write an image to a chunked mipmap representation.- Type Parameters:
T- Pixel typeD- Dataset handle- Parameters:
img- the image to be written.type- instance of the pixel type of the image.mipmapInfo- contains for each mipmap level of the setup, the subsampling factors and block sizes.io- writer for image blocks.executorService- ExecutorService where block-creator tasks are submitted.numThreads- How many block-creator tasks to run in parallel. (This many tasks are submitted to the @codeloopbackHeuristic- heuristic to decide whether to create each resolution level by reading pixels from the original image or by reading back a finer resolution level already written to the hdf5. may be null (in this case always use the original image).afterEachPlane- this is called after each "plane of blocks" is written, giving the opportunity to clear caches, etc. may be null.progressWriter- completion ratio and status output will be directed here. may be null.- Throws:
IOException
-
-