-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduced an abstraction layer for all N5 dataset parameters and to …
…potentially expose parts of the image (5D -> 3D for OME-ZARR), this allows us to directly use the N5ImageLoader for example for reading OME-ZARR based datasets. It also supports pre-fetching of all dataset attributes, which can slow down cloud processing if not done.
- Loading branch information
1 parent
4d308f7
commit 44aaa01
Showing
4 changed files
with
182 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package bdv.img.n5; | ||
|
||
import org.janelia.saalfeldlab.n5.DataType; | ||
import org.janelia.saalfeldlab.n5.DatasetAttributes; | ||
import org.janelia.saalfeldlab.n5.N5Reader; | ||
|
||
import bdv.img.cache.VolatileCachedCellImg; | ||
import net.imglib2.RandomAccessibleInterval; | ||
import net.imglib2.type.NativeType; | ||
|
||
public interface N5Properties | ||
{ | ||
// in case of OME-ZARR, it has an underlying 5D container | ||
public < T extends NativeType<T> > RandomAccessibleInterval<T> extractImg( final VolatileCachedCellImg<T, ?> img, final int setupId, final int timepointId ); | ||
|
||
// give the option to pre-fetch the attributes or store them in the XML | ||
public DatasetAttributes getDatasetAttributes( final N5Reader n5, final String pathName ); | ||
|
||
public DataType getDataType( final N5Reader n5, final int setupId ); | ||
public double[][] getMipmapResolutions( final N5Reader n5, final int setupId ); | ||
public String getPath( final int setupId ); | ||
public String getPath( final int setupId, final int timepointId ); | ||
public String getPath( final int setupId, final int timepointId, final int level ); | ||
} |