-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
widefieldLandmarks.dorsalCortex.json
Collection: alf/widefield
Description: User selected landmarks and transform for widefield imaging to allow images to be transformed and aligned to Allen Atlas
IBL notebooks:
- https://github.com/jcouto/wfield/blob/master/notebooks/match_dorsal_cortex_to_the_allen.ipynb
- https://github.com/jcouto/wfield/blob/master/notebooks/tutorial_example_warping_stack_ROIs.ipynb
Example NWB schema
groups:
- neurodata_type_def: Landmarks
neurodata_type_inc: DynamicTable
doc: "2D spatial landmarks for brain regions or image landmarks."
datasets:
- name: x
neurodata_type_inc: VectorData
dtype: float
doc: "X coordinate of each landmark."
- name: y
neurodata_type_inc: VectorData
dtype: float
doc: "Y coordinate of each landmark."
- name: name
neurodata_type_inc: VectorData
dtype: text
doc: "Name of the landmark."
- name: color
neurodata_type_inc: VectorData
dtype: text
doc: "Color of the landmark (hex code)."
- neurodata_type_def: LandmarksMetaData
neurodata_type_inc: LabMetaData
doc: "Metadata storing multiple landmark sets and their spatial transform."
attributes:
- name: bregma_offset
dtype: float
shape: [2]
doc: "Offset from bregma in reference coordinates."
- name: resolution
dtype: float
doc: "Pixel resolution."
datasets:
- name: transform
dtype: float
shape: [3, 3]
doc: "Similarity transform matrix between coordinate systems."
groups:
- name: landmarks
neurodata_type_inc: Landmarks
doc: "Landmarks in reference coordinate system."
- name: landmarks_im
neurodata_type_inc: Landmarks
doc: "Landmarks in image coordinate system."
- name: landmarks_match
neurodata_type_inc: Landmarks
doc: "Matched landmarks used for transform fitting."
The schema diagram would look like:
LandmarksMetaData (LabMetaData)
│
├── attributes
│ • bregma_offset: float[2]
│ • resolution: float
│ • transform: float[3,3]
│
├── landmarks (Landmarks: DynamicTable)
│ ├── x : float
│ ├── y : float
│ ├── name : text
│ └── color : text
│
├── landmarks_im (Landmarks: DynamicTable)
│ ├── x : float
│ ├── y : float
│ ├── name : text
│ └── color : text
│
└── landmarks_match (Landmarks: DynamicTable)
├── x : float
├── y : float
├── name : text
└── color : text
Example NWB output
/processing/ophys/LandmarksMetaData
bregma_offset: [320, 270]
resolution: 0.0194
transform: 3x3 float matrix
/landmarks (DynamicTable)
/landmarks_im (DynamicTable)
/landmarks_match (DynamicTable)
Metadata
Metadata
Assignees
Labels
No labels