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

PairCorrelation

Compute the pair correlation function

SYNOPSIS

#include "dip_analysis.h"

dip_Error dip_PairCorrelation ( object, mask, dist, probes, length, sampling, covariance )

DATA TYPES

binary, integer

FUNCTION

This function computes the pair correlation function of the different phases in object. If object is a binary image, the image is a regarded as a two phase image. In case object is of the integer type, the image is regarded as a labeled image, with each integer value encoding a phase. Optionally a mask image can be provided so select which pixels in object should be used to compute the pair correlation. The probes variable specifies how many random point pairs should be drawn to compute the function. Length specifies the maximum correlation length. The correlation function can be computed using a random of grid method, as specified by sampling. Finally covariance determines whether only the correlations ( DIP_FALSE) or the covarianances (DIP_TRUE) has to be computed.

ARGUMENTS

Data typeNameDescription
dip_ImageobjectObject image
dip_ImagemaskMask image
dip_DistributiondistOuput distribution
dip_intprobesNumber of probes
dip_intlengthMaximum correlation Length
dipf_CorrelationEstimatorsamplingSamplings method
dip_BooleancovarianceCompute covariance

SEE ALSO

ChordLength, ProbabilisticPairCorrelation

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