Skip to content

Instantly share code, notes, and snippets.

@emanuele
emanuele / tck2trk.py
Created December 5, 2019 08:51 — forked from MarcCote/tck2trk.py
Script that converts TCK to TRK using https://github.com/MarcCote/nibabel/tree/streamlines_tck
import os
import argparse
import nibabel as nib
from nibabel.streamlines import Field
from nibabel.orientations import aff2axcodes
def build_argparser():
DESCRIPTION = "Convert tractograms (TCK -> TRK)."
@emanuele
emanuele / tck2trk.py
Created December 5, 2019 08:51 — forked from MarcCote/tck2trk.py
Script that converts TCK to TRK using https://github.com/MarcCote/nibabel/tree/streamlines_tck
import os
import argparse
import nibabel as nib
from nibabel.streamlines import Field
from nibabel.orientations import aff2axcodes
def build_argparser():
DESCRIPTION = "Convert tractograms (TCK -> TRK)."