Home

Awesome

N5 Viewer Build Status

BigDataViewer-based tool for visualizing N5 datasets.

Usage

The plugin will be available in Fiji as Plugins -> BigDataViewer -> HDF5/N5/Zarr/OME-NGFF Viewer, See also the N5 Fiji plugin.

Storage options

The plugin supports multiple storage formats:

and multiple storage backends:

Metadata and container

The plugin allows to select which datasets to open from the container tree. While almost any dataset can be opened as a BigDataViewer source, the plugin also tries to read the metadata from the storage format to determine the additional transformations, or treat a group as a multiscale source. Supported metadata formats include:

"N5 Viewer" Metadata

Early versions of this plugin developed the following naming and metadata specification we call the "N5 Viewer" metadata. This plugin supports visualization of this format, and the N5 Fiji plugins support reading and writing of this metadata format.

└─ group
    ├─── s0 {} 
    ├─── s1 {"downsamplingFactors": [2, 2, 2]}
    ├─── s2 {"downsamplingFactors": [4, 4, 4]}
    ...

The downsampling factors values are given as an example and do not necessarily need to be powers of two.

Each scale level can also contain the pixel resolution attribute in one of the following forms:

{"pixelResolution": {"unit": "um", "dimensions": [0.097, 0.097, 0.18]}}

or

{"pixelResolution": [0.097, 0.097, 0.18]}

Both options are supported. For the second option with a plain array, the application assumes the unit to be um.

The above format is fully compatible with scale pyramids generated by N5 Spark.

DEPRECATED: alternatively, downsampling factors and pixel resolution can be stored in the group N5 attributes as scales and pixelResolution.

Cloud storage access

Fetching data from a cloud storage may require authentication. If the bucket is not public, the application will try to find the user credentials on the local machine and use them to access the bucket.

The local user credentials can be initialized as follows:

Cropping tool

The application has a built-in cropping tool for extracing parts of the dataset as a ImageJ image (can be converted to commonly supported formats such as TIFF series).

Press SPACE or select the Tools > Extract to ImageJ menu options. A dialog will appear where you can specify the field of view and dimensions of the image you would like to extract. The field of view can be edited by clicking and draggging corners of the displayed bounding box, moving the sliders in the new dialog, or manually editing their values. If the image is multiscale, you can select which scale level to export using the drop down menu. If multiple channels or images are open, you can export either the current image only, or all visible images, using the "Images to export" drop down.

The image is cropped <i>without</i> respect to the camera orientation, so slices of the cropped image will always be the Z dimension.