WARNING: this documentation page is outdated!
The dip_MsrRegistry structure contains the following elements:
Data type | Name | Description |
dip_int | id | The ID of the measurement function |
dipf_MsrFunctionType | type | The type of the function that performs the measurement |
dip_MsrCreateFunction | create | The measurement create function, see MsrCreateFunction |
dip_MsrComposeFunction | create | The measurement compose function, see MsrComposeFunction |
dip_MsrMeasureFunction | measure | The measurement measure function, see MsrMeasureFunction |
dip_MsrValueFunction | value | The measurement value function, see MsrValueFunction |
dip_MsrConvertFunction | labels | The measurement labels function, see MsrConvertFunction |
dip_MsrDescriptionFunction | description | The measurement description function, see MsrDescriptionFunction |
dip_int | iterations | The number of iterations on the data the measurement measure function requires |
The id of the measurement function should be unique, and can easily be obtained using GetUniqueNumber.
The type element specifies on which data format of the object labels the measurement measure function performs its measurement. The following types of measure functions are currently supported:
Name | Description |
DIP_MSR_FUNCTION_LINE_BASED | Measurement is performed on a line by line basis |
DIP_MSR_FUNCTION_IMAGE_BASED | Measurement is performed having access to complete object label and intensity images |
DIP_MSR_FUNCTION_CHAINCODE_BASED | Measurement is performed on object's chaincode |
DIP_MSR_FUNCTION_COMPOSITE | Measurement is performed using the result of other measurements |
The iterations element of dip_MsrRegistry specifies how many times the measurement measure function should be called (sequentially) to perform its measurement. This feature is not yet supported, all functions are called once.
MeasurementFeatureRegister, MsrCreateFunction, MsrMeasureFunction, MsrValueFunction, MsrConvertFunction, MsrDescriptionFunction
DIPlib on-line documentation | Function reference | Global function index