// This macro calculates the average pixel value // of the current image both pixel by pixel and // by using the getStatics functions. start = getTime; w=getWidth(); h=getHeight(); sum = 0; for (y=0; y