Topology Relation Model of Contour Based on Incomplete Binary Tree