dacapo.experiments.datasplits.datasets.arrays.crop_array

Module Contents

Classes

CropArray

Used to crop a larger array to a smaller array.

class dacapo.experiments.datasplits.datasets.arrays.crop_array.CropArray(array_config)

Used to crop a larger array to a smaller array.

property attrs

Return a dictionary of metadata attributes stored on this array.

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 channels