Read trackvis file, return streamlines, header
Parameters: | fileobj : string or file-like object
as_generator : bool, optional
points_space : {None, ‘voxel’, ‘rasmm’}, optional
|
---|---|
Returns: | streamlines : sequence or generator
hdr : structured array
|
Notes
The endianness of the input data can be deduced from the endianness of the returned hdr or streamlines
Points are in trackvis voxel mm. Each track has N points, each with 3 coordinates, x, y, z, where x is the floating point voxel coordinate along the first image axis, multiplied by the voxel size for that axis.