dacapo.experiments.datasplits.datasets.arrays.missing_annotations_mask

Module Contents

Classes

MissingAnnotationsMask

This is wrapper around a ZarrArray containing uint annotations.

class dacapo.experiments.datasplits.datasets.arrays.missing_annotations_mask.MissingAnnotationsMask(array_config)

This is wrapper around a ZarrArray containing uint annotations. Complementary to the BinarizeArray class where we convert labels into individual channels for training, we may find crops where a specific label is present, but not annotated. In that case you might want to avoid training specific channels for specific training volumes. See package fibsem_tools for appropriate metadata format for indicating presence of labels in your ground truth. “https://github.com/janelia-cosem/fibsem-tools

property axes

Returns the axes of this dataset as a string of charactes, as they are indexed. Permitted characters are:

  • zyx for spatial dimensions

  • c for channels

  • s for samples

property dims: int

Returns the number of spatial dimensions.

property voxel_size: funlib.geometry.Coordinate

The size of a voxel in physical units.

property roi: funlib.geometry.Roi

The total ROI of this array, in world units.

property writable: bool

Can we write to this Array?

property dtype

The dtype of this array, in numpy dtypes

property num_channels: int

The number of channels provided by this dataset. Should return None if the channel dimension doesn’t exist.

property data

Get a numpy like readable and writable view into this array.

property attrs

Return a dictionary of metadata attributes stored on this array.

property channels