ChainCodeGetLongestRun

Chain code measurement function

SYNOPSIS

#include "dip_chaincode.h"

dip_Error dip_ChainCodeGetLongestRun ( chaincode, longestRun )

FUNCTION

Returns the number of pixels in the longest run of identical codes in chaincode. This represents the longest straight section of the boundary.

ARGUMENTS

Data typeNameDescription
dip_ChainCodechaincodeInput chain code
dip_int *longestRunReceives the pixel count for the longest run

SEE ALSO

ImageChainCode, ChainCodeNew, ChainCodeFree, ChainCodeGetLength, ChainCodeGetFeret