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

CumulativeSum

statistics function

SYNOPSIS

dip_Error dip_CumulativeSum ( in, mask, out, ps )

DATA TYPES

binary, integer, float, complex

FUNCTION

Calculates the cumulative sum of the pixel values over all those dimensions which are specified by ps, i.e.:

out(x,y)=sum_i=0:x,j=0:y in(i,j) when ps specifies both x and y out(x,y)=sum_j=0:y in(x,j) when ps specifies only y

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