Various ways to normalize a (multidimensional) image. Sets image X to have zero mean and unit variance (if flag==1). Sets image X to range in [0,1] (if flag==2). Sets image X to have zero mean (if flag==3). Sets image X to have zero mean and unit magnitude (if flag==4). X may have arbitrary dimension (ie an image or video, etc). X is treated as a vector of pixel values. Hence, the mean of X is the average pixel value, and likewise the standard deviation is the std of the pixels from the mean pixel. INPUTS X - n dimensional array to standardize flag - [optional] determines normalization procedure OUTPUTS X - X after normalization. DATESTAMP 29-Sep-2005 2:00pm See also FEVAL_ARRAYS