Common Boundary Detection between Grid Sets and the Implementation with Matlab


This paper gives a way to find the common boundary between two grid subsets in a unit cubic set and show the picture of it on Matlab by this way. In this method, Both the time complexity and space complexity of this algorithm will be O(mn), if the sizes of the two subset are m and n.