Pink 0.9

average1.c File Reference

return the average of the pixel values of an image More...


Detailed Description

return the average of the pixel values of an image

Usage: average1 in.pgm [mask.pgm] out.list

Description: This function returns (in the list out.list) the average of the pixel values of the image in.pgm . If the optional parameter mask.pgm is given, then only the values which correspond to non-null points of mask are averaged.

Types supported: byte 2d, byte 3d, int32_t 2d, int32_t 3d, float 2d, float 3d

Category: signal stats

Author:
Michel Couprie