Exemplo n.º 1
0
def get_label_info(xml_name):
    """
    Get atlas label information.
    """
    tar_path = os.path.join(get_data_dir(), 'atlas')
    label_list = get_info(os.path.join(tar_path, xml_name), 'label')
    return label_list
Exemplo n.º 2
0
def get_atlas_names():
    """
    Get atlas name which is equal to xml names.
    """
    tar_path = os.path.join(get_data_dir(), 'atlas')
    xml_names = get_file_names(tar_path,'.xml')
    return xml_names
Exemplo n.º 3
0
def get_atlas_data(xml_name):
    """
    Get atlas nii data.
    """
    tar_path = os.path.join(get_data_dir(), 'atlas')
    nii_name = get_info(os.path.join(tar_path, xml_name), 'imagefile')
    nii_data = get_nii_data(tar_path, nii_name[0])
    return nii_data