next up previous contents
Next: miflush_volume Up: VOLUME FUNCTIONS (6) Previous: miget_volume_voxel_count   Contents

miopen_volume

NAME

miopen_volume - open a volume for reading

SYNOPSIS

#include <minc2.h>

int miopen_volume(const char    *filename, 
                  int            mode,
                  mihandle_t    *volume);

DESCRIPTION

Opens an existing MINC volume for read-only access if mode argument is
MI2_OPEN_READ, or read-write access if mode argument is MI2_OPEN_RDWR.

RETURN VALUE

Returns MI_NOERROR on success or MI_ERROR on failure.



Robert VINCENT 2005-03-09