nibabel.trackvis

Read and write trackvis files (old interface)

See nibabel.streamlines for the new interface.

We will deprecate this, the old interface, in some future release.

Functions

aff_from_hdr(trk_hdr[, atleast_v2])

Return voxel to mm affine from trackvis header

aff_to_hdr(affine, trk_hdr[, pos_vox, set_order])

Set affine affine into trackvis header trk_hdr

empty_header([endianness, version])

Empty trackvis header

read(fileobj[, as_generator, points_space, ...])

Read trackvis file from fileobj, return streamlines, header

write(fileobj, streamlines[, hdr_mapping, ...])

Write header and streamlines to trackvis file fileobj

Classes

TrackvisFile(streamlines[, mapping, ...])

Convenience class to encapsulate trackvis file information

Exceptions

DataError

Error in trackvis data

HeaderError

Error in trackvis header

TrackvisFileError

Error from TrackvisFile class