image thumbnail

Freeman Chain Code

version 1.0.0.0 (2.35 KB) by Alessandro Mannini
Gives Freeman chain code 8-connected representation of a boundary

7.8K Downloads

Updated 24 Nov 2010

View License

usage:
--------------------------------------------------------
[cc] = chaincode(b,u)

INPUT:
--------------------------------------------------------
b - boundary as np-by-2 array
unwrap - (optional, default=false) unwrap code

OUTPUT:
--------------------------------------------------------
cc is a structure with the following fields:
cc.code - 8-connected Freeman chain code 1-by-np
cc.x0,cc.y0 - coordinates of start point
cc.ucode - unwrapped 8-connected Freeman chain code

Cite As

Alessandro Mannini (2021). Freeman Chain Code (https://www.mathworks.com/matlabcentral/fileexchange/29518-freeman-chain-code), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!