i need to calculate the freeman or chain code for an image how to write a program to calculate freeman code using java help me thanks in advance.............