next up previous contents
Next: miget_label_name Up: LABEL FUNCTIONS (4) Previous: LABEL FUNCTIONS (4)   Contents

midefine_label

NAME

midefine_label - define a label value for a labelled volume.

SYNOPSIS

#include <minc2.h>

int midefine_label ( mihandle_t         volume, 
                     int                value, 
                     const char         *name );

DESCRIPTION

This function associates a label name with an integer value for the given
volume. Functions which read and write voxel values will read/write 
in integer values, and must call miget_label_name() to discover the 
descriptive text string which corresponds to the integer value.

RETURN VALUE

MI_NOERROR on success, or MI_ERROR on failure.



Robert VINCENT 2005-03-09