allensdk.brain_observatory.behavior.image_api module

class allensdk.brain_observatory.behavior.image_api.Image(data: ndarray, spacing: tuple, unit: str = 'mm')[source]

Bases: tuple

Describes a 2D Image


Image data points


Spacing describes the physical size of each pixel


Physical unit of the spacing (currently constrained to be isotropic)

data: ndarray

Alias for field number 0

spacing: tuple

Alias for field number 1

unit: str

Alias for field number 2

class allensdk.brain_observatory.behavior.image_api.ImageApi[source]

Bases: object

static deserialize(img)[source]
static serialize(data, spacing, unit)[source]