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

FeatureCreateFunction

Measurement feature #create function

SYNOPSIS

#include "dip_measurement.h"

dip_Error (*dip_FeatureCreateFunction) ( measurement, featureID, label, intensity, physDims, params, data, resources )

FUNCTION

The create function is called to initialise the measurement function. It should allocate and initialise a memory block for internal use, assign this block to the pointer *data, and register it in resources.

ARGUMENTS

Data typeNameDescription
dip_MeasurementmeasurementMeasurement data structure
dip_intfeatureIDMeasurement feature function ID
dip_ImagelabelImage with pixel intensities represending object IDs
dip_ImageintensityImage containing corresponding intensity values
dip_PhysicalDimensionsphysDimsPhysical dimensions data structure
void *paramsFor future expansion, is currently always NULL
void **dataPointer to a data block that can later be accessed using MeasurementObjectData
dip_ResourcesresourcesResources tracking structure. See ResourcesNew

SEE ALSO

MeasurementFeatureRegister, FeatureLineFunction, FeatureImageFunction, FeatureChainCodeFunction, FeatureConvHullFunction, FeatureCompositeFunction