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

RadialMean

statistics function

SYNOPSIS

#include "dip_math.h"

dip_Error dip_RadialMean ( in, out, ps, binSize, innerRadius )

DATA TYPES

binary, integer, float

FUNCTION

This function computes the radial projection of the mean of the pixel intensities of in.

The radial projection is performed for the dimensions specified by ps. If the radial distance of a pixel to the center of the image is r, than the mean of the intensities of all pixels with n * binSize <= r < (n + 1) * binSize is stored at position n in the radial dimension of out. The radial dimension is the first dimension to be processed (as specified by ps). If innerRadius is set to DIP_TRUE, the maximum radius that is projected is equal to the the smallest dimension of the to be projected dimensions. Otherwise, the maximum radius is set equal to the diagonal length of the dimensions to be processed.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput
dip_ImageoutOutput
dip_BooleanArraypsDimensions to project
dip_floatbinSizeSize of radial bins
dip_BooleaninnerRadiusMaximum radius

SEE ALSO

RadialSum, RadialMaximum, RadialMinimum, Sum, Mean, Maximum, Minimum

DIPlib on-line documentation | Function reference | Global function index