code: public static float mean( InterleavedF32 img ) {
  		return sum(img)/(float)(img.width*img.height*img.numBands);
  	}
docs: Returns the mean pixel intensity value.
  
  @param img Input image.  Not modified.
  @return Mean pixel intensity value