Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.imglib2.cache.img;
- import net.imglib2.cache.CacheLoader;
- import net.imglib2.cache.ref.BoundedSoftRefLoaderCache;
- import net.imglib2.cache.util.LoaderCacheAsCacheAdapter;
- import net.imglib2.img.basictypeaccess.array.FloatArray;
- import net.imglib2.img.cell.Cell;
- import net.imglib2.img.cell.CellGrid;
- import net.imglib2.type.numeric.real.FloatType;
- public class Dummy
- {
- public static void main( final String[] args )
- {
- final CacheLoader< Long, Cell< FloatArray > > loader = l -> {
- return null;
- };
- final BoundedSoftRefLoaderCache< Long, Cell< FloatArray > > cache = new BoundedSoftRefLoaderCache<>( 1 );
- final LoaderCacheAsCacheAdapter< Long, Cell< FloatArray > > wrappedCache = new LoaderCacheAsCacheAdapter<>( cache, loader );
- new CachedCellImg<>( new CellGrid( new long[ 3 ], new int[ 3 ] ), new FloatType(), wrappedCache, new FloatArray( 1 ) );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment