Differences between revisions 5 and 6
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
USAGE: mri_mergelabels '''Index'''
<<TableOfContents>>
Line 3: Line 4:
   -i label1 -i label2 ...
Line 5: Line 5:
   -o outputlabel = Name =
mri_mergelabels
Line 7: Line 8:
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.
= 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.
Line 14: Line 11:
=== Label file format === = 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 =
Line 16: Line 21:

= Bugs =
None

= Links =
FreeSurfer

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

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

Links

FreeSurfer

Reporting Bugs

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

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