allensdk.brain_observatory.behavior.image_api module

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

Bases: tuple

Describes a 2D Image

data : np.ndarray
Image data points
spacing : tuple
Spacing describes the physical size of each pixel
unit : str
Physical unit of the spacing (currently constrained to be isotropic)

Alias for field number 0


Alias for field number 1


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]