Skip to content

Commit

Permalink
[ENH] support for OpenMaps lookup table
Browse files Browse the repository at this point in the history
  • Loading branch information
pwighton committed Dec 12, 2024
1 parent 1e5a227 commit 70e5631
Show file tree
Hide file tree
Showing 6 changed files with 783 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,383 @@
{
"labels": [
"Unknown",
"SUPERIOR FRONTAL GYRUS left",
"SUPERIOR FRONTAL GYRUS right",
"Superior frontal gyrus (prefrontal cortex) left",
"Superior frontal gyrus (prefrontal cortex) right",
"superior frontal gyrus (frontal pole) left",
"superior frontal gyrus (frontal pole) right",
"MIDDLE FRONTAL GYRUS left",
"MIDDLE FRONTAL GYRUS right",
"Middle frontal gyrus (dorsal prefrontal cortex) left",
"Middle frontal gyrus (dorsal prefrontal cortex) right",
"inferior frontal gyrus pars opercularis left",
"inferior frontal gyrus pars opercularis right",
"inferior frontal gyrus pars orbitralis left",
"inferior frontal gyrus pars orbitralis right",
"inferior frontal gyrus pars triangularis left",
"inferior frontal gyrus pars triangularis right",
"LATERAL FRONTO-ORBITAL GYRUS left",
"LATERAL FRONTO-ORBITAL GYRUS right",
"MIDDLE FRONTO-ORBITAL GYRUS",
"MIDDLE FRONTO-ORBITAL GYRUS right",
"GYRUS RECTUS",
"GYRUS RECTUS right",
"POSTCENTRAL GYRUS left",
"POSTCENTRAL GYRUS right",
"PRECENTRAL GYRUS left",
"PRECENTRAL GYRUS right",
"SUPERIOR PARIETAL GYRUS left",
"SUPERIOR PARIETAL GYRUS right",
"SUPRAMARGINAL GYRUS",
"SUPRAMARGINAL GYRUS right",
"ANGULAR GYRUS left",
"ANGULAR GYRUS right",
"PRE-CUNEUS left",
"PRE-CUNEUS right",
"SUPERIOR TEMPORAL GYRUS left",
"SUPERIOR TEMPORAL GYRUS right",
"Pole of the SUPERIOR TEMPORAL GYRUS left",
"Pole of the SUPERIOR TEMPORAL GYRUS right",
"MIDDLE TEMPORAL GYRUS left",
"MIDDLE TEMPORAL GYRUS right",
"Pole of the MIDDLE TEMPORAL GYRUS left",
"Pole of the MIDDLE TEMPORAL GYRUS right",
"INFERIOR TEMPORAL GYRUS left",
"INFERIOR TEMPORAL GYRUS right",
"PARAHIPPOCAMPAL GYRUS left",
"PARAHIPPOCAMPAL GYRUS right",
"ENTORHINAL AREA left",
"ENTORHINAL AREA right",
"FUSIFORM GYRUS left",
"FUSIFORM GYRUS right",
"SUPERIOR OCCIPITAL GYRUS left",
"SUPERIOR OCCIPITAL GYRUS right",
"MIDDLE OCCIPITAL GYRUS left",
"MIDDLE OCCIPITAL GYRUS right",
"INFERIOR OCCIPITAL GYRUS left",
"INFERIOR OCCIPITAL GYRUS right",
"CUNEUS left",
"CUNEUS right",
"LINGUAL GYRUS left",
"LINGUAL GYRUS right",
"rostral anterior cingulate gyrus left",
"rostral anterior cingulate gyrus right",
"subcallosal anterior cingulate gyrus left",
"subcallosal anterior cingulate gyrus right",
"subgenual anterior cingulate gyrus left",
"subgenual anterior cingulate gyrus right",
"dorsal anterior cingulate gyrus left",
"dorsal anterior cingulate gyrus right",
"posterior cingulate gyrus left",
"posterior cingulate gyrus right",
"INSULAR",
"INSULAR right",
"AMYGDALA",
"AMYGDALA right",
"HIPPOCAMPUS",
"HIPPOCAMPUS right",
"CAUDATE NUCLEUS left",
"CAUDATE NUCLEUS right",
"PUTAMEN left",
"PUTAMEN right",
"GLOBUS PALLIDUS left",
"GLOBUS PALLIDUS right",
"THALAMUS left",
"THALAMUS right",
"Hypothalamus left",
"Hypothalamus right",
"AnteriorBasalForebrain_L",
"AnteriorBasalForebrain_R",
"Nucleus accumbens left",
"Nucleus accumbens right",
"Red Nucleus left",
"Red Nucleus right",
"Substancia Nigra left",
"Substancia Nigra right",
"CEREBELLUM right",
"CEREBELLUM",
"Cerebral peduncle left",
"Cerebral peduncle right",
"MIDBRAIN left",
"MIDBRAIN right",
"Corticospinal tract left",
"Corticospinal tract right",
"Superior cerebellar peduncle left",
"Superior cerebellar peduncle right",
"Middle cerebellar peduncle left",
"Middle cerebellar peduncle right",
"Pontine crossing tract (a part of MCP) left",
"Pontine crossing tract (a part of MCP) right",
"Inferior cerebellar peduncle left",
"Inferior cerebellar peduncle right",
"Medial lemniscus left",
"Medial lemniscus right",
"PONS left",
"PONS right",
"MEDULLA left",
"MEDULLA right",
"Anterior corona radiata left",
"Anterior corona radiata right",
"Superior corona radiata left",
"Superior corona radiata right",
"Posterior corona radiata left",
"Posterior corona radiata right",
"Genu of corpus callosum left",
"Genu of corpus callosum right",
"Body of corpus callosum left",
"Body of corpus callosum right",
"Splenium of corpus callosum left",
"Splenium of corpus callosum right",
"Tapatum left",
"Tapatum right",
"Anterior limb of internal capsule left",
"Anterior limb of internal capsule right",
"Posterior limb of internal capsule left",
"Posterior limb of internal capsule right",
"Retrolenticular part of internal capsule left",
"Retrolenticular part of internal capsule right",
"External capsule left",
"External capsule right",
"Cingulum (cingulate gyrus) left",
"Cingulum (cingulate gyrus) right",
"Cingulum (hippocampus) left",
"Cingulum (hippocampus) right",
"Fornix (cres) / Stria terminalis (can not be resolved with current resolution) left",
"Fornix (cres) / Stria terminalis (can not be resolved with current resolution) right",
"Fornix (column and body of fornix) left",
"Fornix (column and body of fornix) right",
"Inferior fronto-occipital fasciculus left",
"Inferior fronto-occipital fasciculus right",
"Posterior thalamic radiation (include optic radiation) left",
"Posterior thalamic radiation (include optic radiation) right",
"Sagittal stratum (include inferior longitidinal fasciculus and inferior fronto-occipital fasciculus) left",
"Sagittal stratum (include inferior longitidinal fasciculus and inferior fronto-occipital fasciculus) right",
"Superior fronto-occipital fasciculus (could be a part of anterior internal capsule) left",
"Superior fronto-occipital fasciculus (could be a part of anterior internal capsule) right",
"Superior longitudinal fasciculus left",
"Superior longitudinal fasciculus right",
"Uncinate fasciculus left",
"Uncinate fasciculus right",
"PosteriorBasalForebrain_L",
"PosteriorBasalForebrain_R",
"Mammillary body left",
"Mammillary body right",
"Lateral ventricle_frontal left",
"Lateral ventricle_body_L",
"Lateral ventricle_atrium_L",
"Lateral ventricle_Occipital_L",
"Lateral ventricle_Inferior_L",
"Lateral ventricle_Frontal_R",
"Lateral ventricle_body_R",
"Lateral ventricle_atrium_R",
"Lateral ventricle_Occipital_R",
"Lateral ventricle_Inferior_R",
"III and IV ventricle",
"Anterior periventricular white matter cap left",
"Anterior periventricular white matter cap right",
"Posterior periventricular white matter cap left",
"Posterior periventricular white matter cap right",
"SUPERIOR FRONTAL GYRUS white matter left",
"SUPERIOR FRONTAL GYRUS white matter right",
"Superior frontal gyrus (prefrontal cortex) white matter left",
"Superior frontal gyrus (prefrontal cortex) white matter right",
"superior frontal gyrus (frontal pole) white matter left",
"superior frontal gyrus (frontal pole) white matter right",
"MIDDLE FRONTAL GYRUS white matterleft",
"MIDDLE FRONTAL GYRUS white matterright",
"Middle frontal gyrus (dorsal prefrontal cortex) white matter left",
"Middle frontal gyrus (dorsal prefrontal cortex) white matterright",
"inferior frontal gyrus pars opercularis white matter left",
"inferior frontal gyrus pars opercularis white matter right",
"inferior frontal gyrus pars orbitralis white matter left",
"inferior frontal gyrus pars orbitralis white matter right",
"inferior frontal gyrus pars triangularis white matter left",
"inferior frontal gyrus pars triangularis white matter right",
"LATERAL FRONTO-ORBITAL GYRUS white matter left",
"LATERAL FRONTO-ORBITAL GYRUS white matter right",
"MIDDLE FRONTO-ORBITAL GYRUS white matter left",
"MIDDLE FRONTO-ORBITAL GYRUS white matter right",
"GYRUS RECTUS white matter left",
"GYRUS RECTUS white matter right",
"POSTCENTRAL GYRUS white matter left",
"POSTCENTRAL GYRUS white matter right",
"PRECENTRAL GYRUS white matter left",
"PRECENTRAL GYRUS white matter right",
"SUPERIOR PARIETAL GYRUS white matter left",
"SUPERIOR PARIETAL GYRUS white matter right",
"SUPRAMARGINAL GYRUS white matter left",
"SUPRAMARGINAL GYRUS white matter right",
"ANGULAR GYRUS white matter left",
"ANGULAR GYRUS white matter right",
"PRE-CUNEUS white matter left",
"PRE-CUNEUS white matter right",
"SUPERIOR TEMPORAL GYRUS white matter left",
"SUPERIOR TEMPORAL GYRUS white matter right",
"Pole of the SUPERIOR TEMPORAL GYRUS white matter left",
"Pole of the SUPERIOR TEMPORAL GYRUS white matter right",
"MIDDLE TEMPORAL GYRUS white matter left",
"MIDDLE TEMPORAL GYRUS white matter right",
"Pole of the MIDDLE TEMPORAL GYRUS white matter left",
"Pole of the MIDDLE TEMPORAL GYRUS white matter right",
"INFERIOR TEMPORAL GYRUS white matter left",
"INFERIOR TEMPORAL GYRUS white matter right",
"FUSIFORM GYRUS white matter left",
"FUSIFORM GYRUS white matter right",
"SUPERIOR OCCIPITAL GYRUS white matter left",
"SUPERIOR OCCIPITAL GYRUS white matter right",
"MIDDLE OCCIPITAL GYRUS white matter left",
"MIDDLE OCCIPITAL GYRUS white matter right",
"INFERIOR OCCIPITAL GYRUS white matter left",
"INFERIOR OCCIPITAL GYRUS white matter right",
"CUNEUS white matter left",
"CUNEUS white matter right",
"LINGUAL GYRUS white matter left",
"LINGUAL GYRUS white matter right",
"rostral anterior cingulate gyrus white matter left",
"rostral anterior cingulate gyrus white matter right",
"subcallosal anterior cingulate gyrus white matter left",
"subcallosal anterior cingulate gyrus white matter right",
"subgenual anterior cingulate gyrus white matter left",
"subgenual anterior cingulate gyrus white matter right",
"dorsal anterior cingulate gyrus white matter left",
"dorsal anterior cingulate gyrus white matter right",
"posterior cingulate gyrus white matter left",
"posterior cingulate gyrus white matter right",
"Cerebellum white matter left",
"Cerebellum white matter right",
"Middle cerebellar peduncle left",
"Middle cerebellar peduncle right",
"Inferior cerebellar peduncle (cerebellum part) left",
"Inferior cerebellar peduncle (cerebellum part) right",
"Frontal sulcus left",
"Frontal sulcus right",
"Central sulcus left",
"Central sulcus right",
"Sylvian Fissure (Frontal rami) left",
"Sylvian Fissure (Frontal rami) right",
"Sylvian Fissure (temporal rami) left",
"Sylvian Fissure (temporal rami) right",
"Sylvian Fissure (parietal rami) left",
"Sylvian Fissure (parietal rami) right",
"Parietal sulcus left",
"Parietal sulcus right",
"Cingulate sulcus left",
"Cingulate sulcus right",
"Occipital sulcus left",
"Occipital sulcus right",
"Temporal sulcus left",
"Temporal sulcus right",
"Caudate_tail_L",
"Fimbria_L",
"Caudate_tail_R",
"Fimbria_R",
"Choroid plexus LV left",
"Choroid plexus LV right",
"IVth ventricle",
"External capsule and claustrum left",
"External capsule and claustrum right",
"Superior subarachnoid space anterior left",
"Superior subarachnoid space anterior right",
"Superior subarachnoid space posterior left",
"Superior subarachnoid space posterior right"
],
"R": [
0, 70, 245, 205, 120, 196, 0, 220, 230, 0, 0, 122, 236, 12, 204, 42, 119,
220, 103, 80, 60, 60, 60, 60, 60, 255, 255, 0, 165, 135, 160, 0, 100, 135,
122, 51, 74, 120, 74, 122, 70, 0, 205, 120, 196, 0, 220, 230, 0, 0, 122,
236, 13, 220, 103, 80, 60, 255, 255, 0, 165, 135, 160, 0, 100, 135, 122, 51,
74, 120, 74, 122, 120, 122, 122, 120, 120, 200, 255, 255, 164, 164, 164,
255, 255, 234, 250, 205, 205, 160, 124, 125, 126, 127, 124, 124, 124, 124,
124, 124, 125, 126, 127, 124, 124, 124, 124, 124, 255, 205, 238, 200, 74,
238, 0, 173, 133, 26, 34, 30, 147, 238, 221, 238, 255, 72, 21, 21, 65, 65,
134, 221, 255, 52, 239, 70, 70, 139, 224, 255, 205, 238, 139, 238, 238, 238,
62, 62, 0, 255, 196, 0, 128, 0, 128, 0, 255, 255, 255, 64, 0, 255, 128, 0,
196, 32, 128, 204, 121, 128, 128, 255, 128, 104, 0, 205, 197, 33, 226, 100,
197, 255, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 255, 255, 255, 80, 160,
160, 0, 0, 80, 160, 255, 0, 255, 255, 255, 255, 30, 80, 80, 195, 120, 170,
20, 20, 206, 121, 199, 1, 221, 231, 1, 120, 123, 238, 123, 138, 238, 218,
38, 1, 1, 200, 200, 5, 5, 100, 25, 25, 230, 230, 100, 150, 150, 175, 175,
10, 10, 150, 150, 45, 45, 227, 227, 227, 17, 119, 204, 204, 221, 153, 51, 0,
20, 17, 119, 204, 204, 221, 153, 51, 0, 0, 20, 40, 80, 100, 120, 140
],
"G": [
0, 130, 245, 62, 18, 58, 148, 248, 148, 118, 118, 186, 13, 48, 182, 204,
159, 216, 255, 196, 58, 58, 58, 58, 60, 165, 165, 255, 42, 206, 32, 200, 50,
50, 135, 50, 155, 62, 155, 135, 130, 225, 62, 18, 58, 148, 248, 148, 118,
118, 186, 13, 48, 216, 255, 196, 58, 165, 165, 255, 42, 206, 32, 200, 50,
50, 135, 50, 155, 62, 155, 135, 190, 135, 135, 18, 18, 70, 148, 148, 108,
108, 108, 218, 218, 169, 255, 10, 10, 32, 140, 140, 140, 140, 141, 142, 143,
144, 140, 140, 140, 140, 140, 141, 142, 143, 144, 140, 20, 179, 238, 200,
255, 0, 0, 255, 203, 237, 139, 144, 19, 59, 39, 174, 0, 61, 39, 39, 135,
135, 4, 226, 255, 209, 160, 130, 130, 121, 224, 0, 205, 238, 121, 59, 59,
59, 10, 10, 196, 164, 196, 100, 196, 126, 96, 50, 204, 128, 255, 0, 0, 0,
128, 128, 160, 200, 255, 153, 17, 0, 32, 204, 128, 255, 226, 63, 58, 150, 0,
100, 150, 0, 0, 0, 0, 0, 0, 0, 0, 80, 160, 255, 255, 0, 0, 50, 255, 255,
200, 255, 0, 50, 0, 210, 160, 200, 200, 80, 160, 255, 200, 255, 255, 200,
10, 130, 180, 62, 18, 58, 148, 248, 148, 118, 118, 186, 13, 186, 13, 130,
230, 213, 225, 225, 2, 2, 200, 200, 5, 255, 255, 7, 7, 5, 10, 10, 10, 10,
100, 100, 45, 45, 200, 200, 45, 45, 45, 85, 187, 68, 0, 187, 221, 17, 119,
100, 85, 187, 68, 0, 187, 221, 17, 119, 0, 20, 40, 80, 100, 120, 140
],
"B": [
0, 180, 245, 78, 134, 250, 0, 164, 34, 14, 14, 220, 176, 255, 142, 164, 176,
20, 255, 98, 210, 210, 210, 210, 60, 0, 0, 127, 42, 235, 240, 200, 100, 74,
50, 135, 60, 43, 60, 50, 180, 0, 78, 134, 250, 0, 164, 34, 14, 14, 220, 176,
255, 20, 255, 98, 210, 0, 0, 127, 42, 235, 240, 221, 100, 74, 50, 135, 60,
43, 60, 50, 150, 50, 50, 134, 134, 255, 10, 10, 226, 226, 226, 185, 185, 30,
50, 125, 125, 240, 178, 178, 178, 178, 178, 178, 178, 178, 179, 178, 178,
178, 178, 178, 178, 178, 178, 179, 147, 139, 209, 200, 74, 0, 139, 47, 229,
57, 34, 255, 173, 59, 200, 238, 0, 139, 132, 132, 20, 20, 160, 68, 254, 226,
223, 180, 181, 94, 224, 0, 0, 209, 94, 59, 59, 59, 205, 205, 255, 164, 0,
255, 164, 75, 64, 128, 153, 128, 0, 64, 255, 0, 255, 0, 128, 255, 128, 204,
136, 0, 255, 102, 128, 255, 0, 78, 250, 250, 0, 100, 250, 0, 64, 112, 160,
208, 255, 0, 0, 0, 0, 0, 0, 160, 255, 80, 50, 50, 255, 160, 255, 255, 255,
0, 255, 80, 160, 200, 200, 80, 255, 200, 200, 20, 200, 180, 130, 78, 134,
250, 0, 164, 34, 14, 14, 221, 177, 220, 206, 176, 76, 176, 176, 176, 100,
100, 90, 90, 200, 100, 100, 100, 100, 200, 200, 200, 176, 176, 255, 255, 70,
70, 15, 15, 100, 100, 100, 136, 102, 34, 255, 17, 238, 17, 85, 200, 137,
103, 35, 254, 16, 239, 18, 86, 201, 254, 0, 20, 40, 80, 100
],
"A": [
0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255
],
"I": [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112,
113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202,
203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217,
218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232,
233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247,
248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262,
263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
278, 279, 280
]
}
2 changes: 2 additions & 0 deletions src/WebUI/ClientApp/src/pages/project/NiivueWrapper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import LookUpTable from '@/pages/project/colorMaps/LookUpTable.json';
import OpenMapTable from '@/pages/project/colorMaps/LookUpTableOpenMap.json';
import { COLOR_MAP_NIIVUE } from '@/pages/project/models/ColorMap';
import { type ProjectState } from '@/pages/project/models/ProjectState';
import {
Expand Down Expand Up @@ -75,6 +76,7 @@ export class NiivueWrapper {

public setCanvas(canvasRef: HTMLCanvasElement): void {
this.niivue.addColormap(COLOR_MAP_NIIVUE.LOOKUP_TABLE, LookUpTable);
this.niivue.addColormap(COLOR_MAP_NIIVUE.OPEN_MAP, OpenMapTable);
void this.niivue.attachToCanvas(canvasRef);
}

Expand Down
Loading

0 comments on commit 70e5631

Please sign in to comment.