Chain codes are an efficient encoding of binary objects in an image. Use this tag together with [image-processing].