Generates an integer which is the sum of all pixels contained in the
input image.
function call:
[num1]=vsg('GreyscalePixelSum',in_img1);
Arguments:
in_img1
input image, 3 channel RGB, 1 channel greyscale or binary image, or
DICOM image.
Return values
num1
– A number, which is the sum of all grey levels across all image
dimensions and colour planes.
Example:
img1=openimage('baboon.jpg');