{ \
size * pixel = (size *) image.buffer; \
size * end = pixel + image.width * image.height; \
if (ignoreZeros) \
{ \
while (pixel < end) \
{ \
if (*pixel != 0) \
{ \
minimum = min (minimum, (float) *pixel); \
maximum = max (maximum, (float) *pixel); \
average += *pixel; \
count++; \
} \
pixel++; \
} \
} \
else \
{ \
while (pixel < end) \
{ \
minimum = min (minimum, (float) *pixel); \
maximum = max (maximum, (float) *pixel); \
average += *pixel++; \
} \
count = image.width * image.height; \
} \
}