Computation of the medial axis or surface of a segmented object using the Lee-Kashyap-Chu algorithm. Boundary conditions not available in the published algorithm have been added to deal with truncated data sets. A variation of the LKC algorithm is available which removes the up-down-left-right-top-bot sweep systematic bias of the original LKC algorithm