dacapo.experiments.datasplits.datasets.arrays.intensity_array

Module Contents

Classes

IntensitiesArray

This is wrapper another array that will normalize intensities to

class dacapo.experiments.datasplits.datasets.arrays.intensity_array.IntensitiesArray(array_config)

This is wrapper another array that will normalize intensities to the range (0, 1) and convert to float32. Use this if you have your intensities stored as uint8 or similar and want your model to have floats as input.

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.