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

FeatureChainCodeFunction

Measurement feature #measure function

SYNOPSIS

#include "dip_measurement.h"

dip_Error (*dip_FeatureChainCodeFunction) ( measurement, featureID, objectID, chaincode, iterations )

FUNCTION

The chaincode measure function is meant for 2-D measurement functions that only require information on the shape of the object's contour, such as FeaturePerimeter. The chaincode function is called for each object seperately, with the contour of that object stored in chaincode.

ARGUMENTS

Data typeNameDescription
dip_MeasurementmeasurementMeasurement data structure
dip_intfeatureIDMeasurement function ID
dip_intobjectIDID of the object to be measured
dip_ChainCodechaincodeChaincode data structure encoding the object's contour
dip_intiterationsNumber of iterations the measure function needs to scan the data

SEE ALSO

MeasurementFeatureRegister, FeatureLineFunction, FeatureImageFunction, FeatureConvHullFunction, FeatureCompositeFunction, FeatureCreateFunction