Skip to content

Commit 2de3e93

Browse files
committed
add external image
1 parent d5a931d commit 2de3e93

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

core/nwb.base.yaml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,17 @@ datasets:
2323
VectorData column stores the start_index and count to indicate the range in time
2424
to be selected as well as an object reference to the TimeSeries.
2525

26-
- neurodata_type_def: Image
26+
- neurodata_type_def: BaseImage
2727
neurodata_type_inc: NWBData
28+
doc: An abstract base type for image data. Parent type for Image and ExternalImage types.
29+
attributes:
30+
- name: description
31+
dtype: text
32+
doc: Description of the image.
33+
required: false
34+
35+
- neurodata_type_def: Image
36+
neurodata_type_inc: BaseImage
2837
dtype: numeric
2938
dims:
3039
- - x
@@ -44,29 +53,34 @@ datasets:
4453
- - null
4554
- null
4655
- 4
47-
doc: An abstract data type for an image. Shape can be 2-D (x, y), or 3-D where the
56+
doc: A type for storing image data directly. Shape can be 2-D (x, y), or 3-D where the
4857
third dimension can have three or four elements, e.g. (x, y, (r, g, b)) or
4958
(x, y, (r, g, b, a)).
5059
attributes:
5160
- name: resolution
5261
dtype: float32
5362
doc: Pixel resolution of the image, in pixels per centimeter.
5463
required: false
55-
- name: description
64+
65+
- neurodata_type_def: ExternalImage
66+
neurodata_type_inc: BaseImage
67+
doc: A type for referencing an external image file.
68+
attributes:
69+
- name: file_path
5670
dtype: text
57-
doc: Description of the image.
58-
required: false
71+
doc: Path or URL to the external image file.
72+
required: true
5973

6074
- neurodata_type_def: ImageReferences
6175
neurodata_type_inc: NWBData
6276
dtype:
63-
target_type: Image
77+
target_type: BaseImage
6478
reftype: object
6579
dims:
6680
- num_images
6781
shape:
6882
- null
69-
doc: Ordered dataset of references to Image objects.
83+
doc: Ordered dataset of references to Image or ExternalImage objects.
7084

7185
groups:
7286
- neurodata_type_def: NWBContainer
@@ -253,12 +267,12 @@ groups:
253267
dtype: text
254268
doc: Description of this collection of images.
255269
datasets:
256-
- neurodata_type_inc: Image
257-
doc: Images stored in this collection.
270+
- neurodata_type_inc: BaseImage
271+
doc: Images stored in this collection. Can be either Image or ExternalImage types.
258272
quantity: '+'
259273
- name: order_of_images
260274
neurodata_type_inc: ImageReferences
261-
doc: Ordered dataset of references to Image objects stored in the parent group.
262-
Each Image object in the Images group should be stored once and only once, so
275+
doc: Ordered dataset of references to Image or ExternalImage objects stored in the parent group.
276+
Each object in the Images group should be stored once and only once, so
263277
the dataset should have the same length as the number of images.
264278
quantity: '?'

0 commit comments

Comments
 (0)