Chain code measurement function
#include "dip_chaincode.h"
dip_Error dip_ChainCodeGetLongestRun ( chaincode, longestRun )
Returns the number of pixels in the longest run of identical codes in chaincode. This represents the longest straight section of the boundary. ChainCodeGetLongestRun is the function used by Measure for the FeatureLongestChaincodeRun measurement.
Data type | Name | Description |
dip_ChainCode | chaincode | Input chain code |
dip_int * | longestRun | Receives the pixel count for the longest run |
ImageChainCode, ChainCodeNew, ChainCodeFree, ChainCodeGetLength, ChainCodeGetFeret, ChainCodeGetRadius