def load_transferfunction(filename): with open(filename,'rb') as fid: data = np.fromfile(fid, count=-1,dtype=np.ubyte) return data