DIPlib Documentation - ©1995-2014 Quantitative Imaging Group, Delft University of Technology.

Sum

statistics function

SYNOPSIS

dip_Error dip_Sum ( in, mask, out, ps )

DATA TYPES

binary, integer, float, complex

FUNCTION

Calculates the sum of the pixel values over all those dimensions which are specified by ps.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput
dip_Imagemask (0)Mask
dip_ImageoutOutput
dip_BooleanArrayps (0)Dimensions to project

SEE ALSO

From images to scalars

Mean, Variance, StandardDeviation, MeanModulus, SumModulus, MeanSquareModulus, Maximum, Minimum, Median, Percentile