1) Allocate two 2D arrays with extra 2 rows and extra 2 cols. One for input, called ZeroFramedAry, and one for skeleton,
skeletonAry; zero frame both arrays; load input into inside of the frame of ZeroFramedAry.
2) Performs the 1st-pass of the 8-connectness distance transform for all pixels inside the frame of ZeroFramedAry.
3) reformatPrettyPrint of the result of the Pass-1 to outFile1 with proper captions.
4) Performs the 2nd-pass of the 8-connectness distance transform on the result of 1st pass (inside of the frame)
5) reformatPrettyPrint of the result of the Pass-2 to outFile1 with proper captions.
6) Performs local maxima operation on the result of 2nd-pass.
7) reformatPrettyPrint the local maxima to outFile1 with proper captions.
8a) write the header to skeleton file
8b) Produce skeleton (compressed file): for each skeleton (i, j) > 0 (i.e., local maxima),
write a triplet i j skeleton (i,j) to *skeleton* file,
one triplet per text-line
// skeleton file is the compressed (skeleton) file.
9) The name of the compressed file is to be created during the run time of your program, using the original file name with an
extension “_skeleton.” For example, if the name of the input file is “image1”, then the name of the compressed file should be