2023-08-25 07:22:47 +00:00
|
|
|
name: core.nwb.image
|
|
|
|
id: core.nwb.image
|
|
|
|
imports:
|
|
|
|
- core.nwb.base
|
2023-08-29 05:16:58 +00:00
|
|
|
- core.nwb.device
|
2023-08-25 07:22:47 +00:00
|
|
|
- nwb.language
|
2023-08-29 05:16:58 +00:00
|
|
|
- core.nwb.image.include
|
|
|
|
- core.nwb.image
|
2023-08-25 07:22:47 +00:00
|
|
|
default_prefix: core.nwb.image/
|
|
|
|
classes:
|
|
|
|
GrayscaleImage:
|
|
|
|
name: GrayscaleImage
|
|
|
|
description: A grayscale image.
|
|
|
|
is_a: Image
|
|
|
|
attributes:
|
|
|
|
array:
|
|
|
|
name: array
|
2023-08-29 05:16:58 +00:00
|
|
|
range: GrayscaleImage__Array
|
2023-08-25 07:22:47 +00:00
|
|
|
RGBImage:
|
|
|
|
name: RGBImage
|
|
|
|
description: A color image.
|
|
|
|
is_a: Image
|
|
|
|
attributes:
|
|
|
|
array:
|
|
|
|
name: array
|
2023-08-29 05:16:58 +00:00
|
|
|
range: RGBImage__Array
|
2023-08-25 07:22:47 +00:00
|
|
|
RGBAImage:
|
|
|
|
name: RGBAImage
|
|
|
|
description: A color image with transparency.
|
|
|
|
is_a: Image
|
|
|
|
attributes:
|
|
|
|
array:
|
|
|
|
name: array
|
2023-08-29 05:16:58 +00:00
|
|
|
range: RGBAImage__Array
|
2023-08-25 07:22:47 +00:00
|
|
|
ImageSeries:
|
|
|
|
name: ImageSeries
|
|
|
|
description: General image data that is common between acquisition and stimulus
|
|
|
|
time series. Sometimes the image data is stored in the file in a raw format
|
|
|
|
while other times it will be stored as a series of external image files in the
|
|
|
|
host file system. The data field will either be binary data, if the data is
|
|
|
|
stored in the NWB file, or empty, if the data is stored in an external image
|
|
|
|
stack. [frame][x][y] or [frame][x][y][z].
|
|
|
|
is_a: TimeSeries
|
|
|
|
attributes:
|
|
|
|
data:
|
|
|
|
name: data
|
|
|
|
description: Binary data representing images across frames. If data are stored
|
|
|
|
in an external file, this should be an empty 3D array.
|
|
|
|
multivalued: false
|
2023-08-29 05:16:58 +00:00
|
|
|
range: ImageSeries__data
|
2023-08-25 07:22:47 +00:00
|
|
|
required: true
|
|
|
|
dimension:
|
|
|
|
name: dimension
|
|
|
|
description: Number of pixels on x, y, (and z) axes.
|
|
|
|
multivalued: false
|
2023-08-29 05:16:58 +00:00
|
|
|
range: ImageSeries__dimension
|
2023-08-25 07:22:47 +00:00
|
|
|
required: false
|
|
|
|
external_file:
|
|
|
|
name: external_file
|
|
|
|
description: Paths to one or more external file(s). The field is only present
|
|
|
|
if format='external'. This is only relevant if the image series is stored
|
|
|
|
in the file system as one or more image file(s). This field should NOT be
|
|
|
|
used if the image is stored in another NWB file and that file is linked
|
|
|
|
to this file.
|
|
|
|
multivalued: false
|
2023-08-29 05:16:58 +00:00
|
|
|
range: ImageSeries__external_file
|
2023-08-25 07:22:47 +00:00
|
|
|
required: false
|
|
|
|
format:
|
|
|
|
name: format
|
|
|
|
description: Format of image. If this is 'external', then the attribute 'external_file'
|
|
|
|
contains the path information to the image files. If this is 'raw', then
|
|
|
|
the raw (single-channel) binary data is stored in the 'data' dataset. If
|
|
|
|
this attribute is not present, then the default format='raw' case is assumed.
|
|
|
|
multivalued: false
|
|
|
|
range: text
|
2023-08-29 05:16:58 +00:00
|
|
|
required: false
|
2023-08-25 07:22:47 +00:00
|
|
|
ImageMaskSeries:
|
|
|
|
name: ImageMaskSeries
|
|
|
|
description: An alpha mask that is applied to a presented visual stimulus. The
|
|
|
|
'data' array contains an array of mask values that are applied to the displayed
|
|
|
|
image. Mask values are stored as RGBA. Mask can vary with time. The timestamps
|
|
|
|
array indicates the starting time of a mask, and that mask pattern continues
|
|
|
|
until it's explicitly changed.
|
|
|
|
is_a: ImageSeries
|
|
|
|
OpticalSeries:
|
|
|
|
name: OpticalSeries
|
|
|
|
description: Image data that is presented or recorded. A stimulus template movie
|
|
|
|
will be stored only as an image. When the image is presented as stimulus, additional
|
|
|
|
data is required, such as field of view (e.g., how much of the visual field
|
|
|
|
the image covers, or how what is the area of the target being imaged). If the
|
|
|
|
OpticalSeries represents acquired imaging data, orientation is also important.
|
|
|
|
is_a: ImageSeries
|
|
|
|
attributes:
|
|
|
|
distance:
|
|
|
|
name: distance
|
|
|
|
description: Distance from camera/monitor to target/eye.
|
|
|
|
multivalued: false
|
2023-08-29 05:16:58 +00:00
|
|
|
range: float32
|
2023-08-25 07:22:47 +00:00
|
|
|
required: false
|
|
|
|
field_of_view:
|
|
|
|
name: field_of_view
|
|
|
|
description: Width, height and depth of image, or imaged area, in meters.
|
|
|
|
multivalued: false
|
2023-08-29 05:16:58 +00:00
|
|
|
range: OpticalSeries__field_of_view
|
2023-08-25 07:22:47 +00:00
|
|
|
required: false
|
|
|
|
data:
|
|
|
|
name: data
|
|
|
|
description: Images presented to subject, either grayscale or RGB
|
|
|
|
multivalued: false
|
2023-08-29 05:16:58 +00:00
|
|
|
range: OpticalSeries__data
|
2023-08-25 07:22:47 +00:00
|
|
|
required: true
|
|
|
|
orientation:
|
|
|
|
name: orientation
|
|
|
|
description: Description of image relative to some reference frame (e.g.,
|
|
|
|
which way is up). Must also specify frame of reference.
|
|
|
|
multivalued: false
|
2023-08-29 05:16:58 +00:00
|
|
|
range: text
|
2023-08-25 07:22:47 +00:00
|
|
|
required: false
|
|
|
|
IndexSeries:
|
|
|
|
name: IndexSeries
|
|
|
|
description: Stores indices to image frames stored in an ImageSeries. The purpose
|
|
|
|
of the IndexSeries is to allow a static image stack to be stored in an Images
|
|
|
|
object, and the images in the stack to be referenced out-of-order. This can
|
|
|
|
be for the display of individual images, or of movie segments (as a movie is
|
|
|
|
simply a series of images). The data field stores the index of the frame in
|
|
|
|
the referenced Images object, and the timestamps array indicates when that image
|
|
|
|
was displayed.
|
|
|
|
is_a: TimeSeries
|
|
|
|
attributes:
|
|
|
|
data:
|
|
|
|
name: data
|
|
|
|
description: Index of the image (using zero-indexing) in the linked Images
|
|
|
|
object.
|
|
|
|
multivalued: false
|
2023-08-29 05:16:58 +00:00
|
|
|
range: IndexSeries__data
|
2023-08-25 07:22:47 +00:00
|
|
|
required: true
|