Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Feb 20, 2019
1 parent 6dd5df3 commit 9b5b6d9
Show file tree
Hide file tree
Showing 42 changed files with 1,385 additions and 518 deletions.
15 changes: 15 additions & 0 deletions Resources/lut/Inferno.clut
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[FLT]
min=0
max=0
[INT]
numnodes=4
[BYT]
nodeintensity0=0
nodeintensity1=64
nodeintensity2=192
nodeintensity3=255
[RGBA255]
nodergba0=0|0|4|0
nodergba1=120|28|109|56
nodergba2=237|105|37|80
nodergba3=240|249|33|88
15 changes: 15 additions & 0 deletions Resources/lut/Plasma.clut
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[FLT]
min=0
max=0
[INT]
numnodes=4
[BYT]
nodeintensity0=0
nodeintensity1=64
nodeintensity2=192
nodeintensity3=255
[RGBA255]
nodergba0=13|8|135|0
nodergba1=156|23|158|56
nodergba2=237|121|83|80
nodergba3=240|249|33|88
37 changes: 37 additions & 0 deletions Resources/lut/PlasmaSeg.clut
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[FLT]
min=0
max=0
[INT]
numnodes=15
[BYT]
nodeintensity0=0
nodeintensity1=1
nodeintensity2=36
nodeintensity3=37
nodeintensity4=73
nodeintensity5=74
nodeintensity6=109
nodeintensity7=110
nodeintensity8=146
nodeintensity9=147
nodeintensity10=182
nodeintensity11=183
nodeintensity12=219
nodeintensity13=220
nodeintensity14=255
[RGBA255]
nodergba0=13|8|135|0
nodergba1=13|8|135|1
nodergba2=13|8|135|32
nodergba3=85|16|147|32
nodergba4=85|16|147|48
nodergba5=156|23|158|48
nodergba6=156|23|158|60
nodergba7=197|72|121|60
nodergba8=197|72|121|70
nodergba9=237|121|83|70
nodergba10=237|121|83|76
nodergba11=239|185|58|76
nodergba12=239|185|58|82
nodergba13=240|249|33|82
nodergba14=240|249|33|84
15 changes: 15 additions & 0 deletions Resources/lut/Viridis.clut
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[FLT]
min=0
max=0
[INT]
numnodes=4
[BYT]
nodeintensity0=0
nodeintensity1=64
nodeintensity2=192
nodeintensity3=255
[RGBA255]
nodergba0=68|1|84|0
nodergba1=49|104|142|56
nodergba2=53|183|121|80
nodergba3=253|231|37|88
17 changes: 0 additions & 17 deletions Resources/lut/unused/GE_color.clut

This file was deleted.

25 changes: 25 additions & 0 deletions Resources/lut/unused/cwn_roybigBL.clut
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#Connectome Workbench: used with permission
# https://github.com/Washington-University/workbench/tree/master/src/Palette
[FLT]
min=0
max=0
[INT]
numnodes=8
[BYT]
nodeintensity0=0
nodeintensity1=36
nodeintensity2=73
nodeintensity3=109
nodeintensity4=146
nodeintensity5=182
nodeintensity6=219
nodeintensity7=255
[RGBA255]
nodergba0=0|0|80|0
nodergba1=0|0|170|36
nodergba2=75|0|125|73
nodergba3=125|0|160|109
nodergba4=75|125|0|146
nodergba5=0|200|0|182
nodergba6=0|255|0|219
nodergba7=0|255|255|255
25 changes: 25 additions & 0 deletions Resources/lut/unused/cwp_roybigBL.clut
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#Connectome Workbench: used with permission
# https://github.com/Washington-University/workbench/tree/master/src/Palette
[FLT]
min=0
max=0
[INT]
numnodes=8
[BYT]
nodeintensity0=0
nodeintensity1=36
nodeintensity2=73
nodeintensity3=109
nodeintensity4=146
nodeintensity5=182
nodeintensity6=219
nodeintensity7=255
[RGBA255]
nodergba0=60|0|0|0
nodergba1=100|0|0|36
nodergba2=150|0|0|73
nodergba3=200|0|0|109
nodergba4=255|0|0|146
nodergba5=255|120|0|182
nodergba6=255|200|0|219
nodergba7=255|255|0|255
15 changes: 0 additions & 15 deletions Resources/lut/unused/electric_blue.clut

This file was deleted.

15 changes: 0 additions & 15 deletions Resources/lut/unused/gold.clut

This file was deleted.

43 changes: 43 additions & 0 deletions Resources/lut/unused/power_surf.clut
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[FLT]
min=0
max=0
[INT]
numnodes=18
[BYT]
nodeintensity0=0
nodeintensity1=15
nodeintensity2=30
nodeintensity3=45
nodeintensity4=60
nodeintensity5=75
nodeintensity6=90
nodeintensity7=105
nodeintensity8=120
nodeintensity9=135
nodeintensity10=150
nodeintensity11=165
nodeintensity12=180
nodeintensity13=195
nodeintensity14=210
nodeintensity15=225
nodeintensity16=240
nodeintensity17=255
[RGBA255]
nodergba0=255|0|0|0
nodergba1=0|0|153|15
nodergba2=255|255|0|30
nodergba3=255|179|102|45
nodergba4=0|204|0|60
nodergba5=255|75
nodergba6=0|153|153|90
nodergba7=0|0|0|105
nodergba8=77|0|153|120
nodergba9=51|255|255|135
nodergba10=255|128|0|150
nodergba11=153|51|255|165
nodergba12=0|51|102|180
nodergba13=51|255|51|195
nodergba14=0|0|255|210
nodergba15=255|255|204|225
nodergba16=0|102|0|240
nodergba17=64|64|64|255
13 changes: 0 additions & 13 deletions Resources/lut/unused/surface.clut

This file was deleted.

21 changes: 0 additions & 21 deletions Resources/lut/unused/x_rain.clut

This file was deleted.

12 changes: 12 additions & 0 deletions Resources/script/basic_paint_surface.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import gl
gl.resetdefaults()
gl.azimuthelevation(70, 15)
gl.meshload('BrainMesh_ICBM152Right.mz3')
gl.overlayload('motor_4t95vol.nii.gz')
gl.overlayminmax(1,2,12)
gl.overlayload('motor_4t95vol.nii.gz')
gl.overlayminmax(2,-1,-2)
gl.colorbarvisible(1)
gl.overlaytransparencyonbackground(25)
gl.meshcurv()

8 changes: 8 additions & 0 deletions Resources/script/fmri_mesh.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import gl
gl.resetdefaults()
gl.meshload('BrainMesh_ICBM152Right.mz3')
gl.overlayload('motor_4t95mesh.mz3')
gl.overlaycolorname(1, 'red')
gl.shaderxray(1.0, 0.3)
gl.azimuthelevation(110, 15)
gl.meshcurv()
7 changes: 7 additions & 0 deletions Resources/script/help.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import gl
print(gl.__doc__)
for key in dir( gl ):
if not key.startswith('_'):
x = getattr( gl, key ).__doc__
print(key+' (built-in function): ')
print(x)
8 changes: 8 additions & 0 deletions Resources/script/hide_curves.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import gl
gl.resetdefaults()
gl.meshload('BrainMesh_ICBM152Left_smoothed.mz3')
gl.meshcurv()
gl.shadername('hidecurves')
gl.overlayload('CIT168.mz3')
gl.shaderforbackgroundonly(1)
gl.shaderadjust('curvthreshhi', 0.44)
9 changes: 9 additions & 0 deletions Resources/script/mesh.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import gl
gl.resetdefaults()
gl.meshload('mni152_2009.mz3')
gl.overlayload('motor_4t95mesh.mz3')
gl.clipazimuthelevation(0.37, 0, 140)
gl.shaderambientocclusion(0.5)
gl.azimuthelevation(90, 20)
gl.shaderxray(1.0, 0.3)

18 changes: 18 additions & 0 deletions Resources/script/newer_2017.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import gl
gl.resetdefaults()
gl.meshload('BrainMesh_ICBM152Right.mz3')
gl.meshcurv()
gl.overlayminmax(1,-1,1)
gl.overlaycolorname(1,'surface')
gl.overlayinvert(1,1)
gl.overlayload('motor_4t95vol.nii.gz')
gl.overlaycolorname(2,'kelvin')
gl.overlayminmax(2,2,7)
gl.overlayload('scalp.mz3')
gl.overlaycolorname(3,'gold')
gl.shaderxray(1.0, 0.9)
gl.meshoverlayorder(1)
gl.colorbarvisible(0)
gl.shaderambientocclusion(0.05)
gl.azimuthelevation(90, 15)
gl.clipazimuthelevation(0.5, 0, 90)
18 changes: 18 additions & 0 deletions Resources/script/node.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import gl
gl.resetdefaults()
gl.meshload('BrainMesh_ICBM152Left.mz3')
gl.edgeload('LPBA40.edge')
gl.clipazimuthelevation(0.3, 0, 130)
gl.nodesize(6, 1)
gl.edgesize(3,1)
gl.nodehemisphere(-1)
gl.azimuthelevation(250, 35)
gl.edgecolor('actc',1)
gl.nodecolor('blue',1)
gl.nodethresh(1.0,1.0)
gl.edgethresh(0.5,1.0)
gl.meshcurv()
gl.overlayminmax(1,-1,1)
gl.overlaycolorname(1,'surface')
gl.overlayinvert(1,1)
gl.overlaytranslucent(1, 1)
33 changes: 33 additions & 0 deletions Resources/script/shaders.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import gl
gl.resetdefaults()
kframesperrotation = 180
gl.meshcolor(210, 148, 148)
gl.meshload('BrainMesh_ICBM152Left.mz3')
gl.edgeload('LPBA40.edge')
gl.clipazimuthelevation(0.3, 0, 130)
gl.nodesize(6, 1)
gl.edgesize(3,1)
gl.nodehemisphere(-1)
gl.azimuthelevation(250, 35)
gl.edgecolor('actc',1)
gl.nodecolor('red',1)
gl.nodethresh(1.0,1.0)
gl.edgethresh(0.5,1.0)
for i in range(1, kframesperrotation * 5):
s = 0.5 + (i+0.0)/72
if (s <= 1):
gl.cameradistance(s)
if ((i % kframesperrotation) == 0):
rot = (i / kframesperrotation)
if rot == 1:
gl.shadername('metal')
elif rot == 2:
gl.shadername('wireframe')
elif rot == 3:
gl.shadername('toon')
gl.shaderambientocclusion(0)
else :
gl.shadername('wire')
gl.shaderforbackgroundonly(1)
gl.azimuth( int(round(360.0/kframesperrotation)))
gl.wait(20)
Loading

0 comments on commit 9b5b6d9

Please sign in to comment.