diplib/chain_code.h file

Support for chain-code object representation and quantification. Everything declared in this file is explicitly 2D. See Measurement.

Contents

Classes

struct dip::ChainCode
The contour of an object as a chain code sequence. more...

Aliases

using dip::ChainCodeArray = std::vector<ChainCode>
A collection of object contours.

Functions

auto dip::GetImageChainCodes(dip::Image const& labels, std::vector<LabelType> const& objectIDs = {}, dip::uint connectivity = 2) -> dip::ChainCodeArray
Returns the set of chain codes sequences that encode the contours of the given objects in a labeled image. more...
auto dip::GetSingleChainCode(dip::Image const& labels, dip::UnsignedArray const& startCoord, dip::uint connectivity = 2) -> dip::ChainCode
Returns the chain codes sequence that encodes the contour of one object in a binary or labeled image. more...