Index

Name

mri_mergelabels

Description

This is a simple script that will merge two or more label files. It does this by catting the label files together (after removing the first two lines). It inserts a new header (the first two lines). The number of entries in the new file (ie, the number on the second line), is computed by summing those from the input files.

Synopsis

mri_mergelabels -i <label1> [-i <label2> ...] -o <outputlabel>

Arguments

-i label

input label

-o outputlabel

output label

-d dir

all labels in a directory

Label File Format

Labels are simple text files. The first line is a header. Each following line contains data with 5 columns. The first column is the vertex number of the label point. The next 3 columns are the X, Y, and Z of the point. The last can be ignored. If the label is not a surface-based label, then the vertex number will be -1.

Bugs

None

See Also

mri_label2vol mri_label2label

Links

FreeSurfer

Reporting Bugs

Report bugs to <freesurfer@nmr.mgh.harvard.edu>

mri_mergelabels (last edited 2017-11-30 11:36:44 by MorganFogarty)