next up previous contents
Next: miset_slice_max Up: SLICE/VOLUME SCALE FUNCTIONS (14) Previous: SLICE/VOLUME SCALE FUNCTIONS (14)   Contents

miget_slice_max

NAME 

miget_slice_max - get maximum real value of all the slice

SYNOPSIS

#include <minc2.h>

int miget_slice_max ( mihandle_t        volume,
                      unsigned long     start_positions[],
                      unsigned long     array_length,
                      double            *slice_max)
                       
NOTE

All of the slice scale (i.e., one scale per slice) functions take an array
of long integer coordinates to specify the slice in particular and the order 
of the coordinates is always set to FILE ORDER of the dimensions (i.e. not the
apparent order). The number of coordinates to specify is the first (n-2) 
dimensions except in the case of a uniform record which is also flattened
(i.e., flatten_flag=1) that is the first (n-3) dimensions.                                


DESCRIPTION

This method returns the slice_max with the minimum real value of
the corresponding slice. Note that this function is not defined for
floating point data type nor it works if the volume is globally scaled.

RETURN VALUE

miget_slice_max returns MI_NOERROR if it successfully returns the slice_max
or MI_ERROR otherwise



Robert VINCENT 2005-03-09