Added Freeman Chain Code computation to the libcontour and Python wrapper