A short Matlab script to make an 8 connected chain from a contour image. Useful for building Freeman Chain Codes.