Пример #1
0
def test_fg2volume():

    data_path = os.path.split(oz.__file__)[0] + '/data/'
    pdb_file = data_path + 'FG_w_stats.pdb'
    nii_file = data_path + 'fp20110912_ecc.nii.gz'
    fg = ozv.nii2fg(oio.fg_from_pdb(pdb_file), nii_file)
    # Smoke testing this: 
    vol = ozv.fg2volume(fg, 'fp20110912_ecc.nii.gz',
                        shape=ni.load(nii_file).get_shape())
Пример #2
0
def test_nii2fg():
    """

    Testing the addition of information from a nifti volume to fiber groups

    nii2fg

    """

    data_path = os.path.split(oz.__file__)[0] + '/data/'
    pdb_file = data_path + 'FG_w_stats.pdb'
    nii_file = data_path + 'fp20110912_ecc.nii.gz'
    # Smoke testing this: 
    fg = ozv.nii2fg(oio.fg_from_pdb(pdb_file), nii_file)