Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import struct
- import numpy as np
- tckFile = open("./5M1-2_filtered.tck", 'rb')
- # outfile = open(sys.argv[2], 'w')
- for i in range(10):
- d = tckFile.readline()
- print(d)
- print(d.isdigit())
- # print(d.isnumeric())
- # read the tractography data
- tckFile.seek(632, 0)
- # track = tckFile.read()
- ary = np.fromfile(tckFile, np.float32, -1)
Add Comment
Please, Sign In to add comment