摘要
A fast color contour filling algorithm based on the rectangular regular grid data was proposed in the paper. The filling algorithm is based on the rectangular grid tracing algorithm which was formed by contours, the judge and classification were made through the topology strikes which were acquired during the contour generation process, and then according to the agreed rules, the enclosed areas were formed by combining the unclosed open curve and the rectangular boundary, by combining the characteristics of contour themselves and fully utilizing the information to sort the enclosed areas during the contour generation process, the sequence coverage filling for the enclosed areas was realized. At the same time the detailed regional filling color selection algorithm was presented in this paper, the algorithm is simpler and faster. The comparison of the data tests proved the correctness of the proposed method, based on the algorithm the gravity and magnetic processing software system was independently developed, the algorithm becomes the basis for the colorful contour mapping method.