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

ChordLength

Compute the chord lengths of the different phases

SYNOPSIS

#include "dip_analysis.h"

dip_Error dip_ChordLength ( object, mask, dist, probes, length, sampling )

DATA TYPES

binary, integer

FUNCTION

This function computes the chord lengths 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 chord lengths. The probes variable specifies how many random point pairs should be drawn to compute the lengths. Length specifies the maximum correlation length. The chord length can be computed using a random of grid method, as specified by sampling.

ARGUMENTS

Data typeNameDescription
dip_ImageobjectObject image
dip_ImagemaskMask image
dip_DistributiondistOuput distribution
dip_intprobesNumber of probes
dip_intlengthMaximum chord length
dipf_CorrelationEstimatorsamplingSamplings method

SEE ALSO

PairCorrelation, ProbabilisticPairCorrelation

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