def _get_lut():
 data_dir = op.join(op.dirname(__file__), 'data')
 lut_fname = op.join(data_dir, 'FreeSurferColorLUT.txt')
 return np.genfromtxt(lut_fname, dtype=None, usecols=(0, 1, 2, 3, 4, 5), names=['id', 'name', 'R', 'G', 'B', 'A'])

def _get_lut ( ) : data_dir = op . join ( op . dirname ( __file__ ) , 'data' ) lut_fname = op . join ( data_dir , 'FreeSurferColorLUT.txt' ) return np . genfromtxt ( lut_fname , dtype = None , usecols = ( 0 , 1 , 2 , 3 , 4 , 5 ) , names = [ 'id' , 'name' , 'R' , 'G' , 'B' , 'A' ] )
helper to get the freesurfer lut .