Using vector cross product calculation and binary tree tracking to quickly search closed areas
QIU Liang
XU Mingxiao
Abstract:Objectives The difficulty in automatically filling contour maps lies in automatically identifying each closed area with the same range value.Commonly used methods like scanning line filling and area fill-ing suffer from issues,such as high computational overhead and low efficiency.Methods To determine the trend of fault polygon in equivalent diagram,a method based on the correlation between the calculation re-sult of vector cross product of polygon feature points and the direction of polygon drawing was presented.Based on regularity characteristics of contour attribute values of constituting closed equivalent areas(namely,the attribute values of contour lines were equal or equidistant),tracking binary trees were created with contour endpoints on filled boundaries or faults when tracking areas.When tracking the closed area where endpoints of two adjacent contour line were located,using one endpoint as the root node of the binary tree,the next adjacent contour line endpoint along the boundary was searched for,the found endpoint was used as the left and right child nodes,and so the method achieved the fast tracking for closed domains.The inclusion relationship between different areas was determined through the area ordering of closed domains.Topological adjacent relation tree was constructed to implement sequential coverage filling of enclosed areas.A more simply and efficiently method to distinguish different enclosed areas and to select the filled colors was proposed.Results The new method simplified the complex search algorithm for equivalently connected regions.The color change trend of the contour map could remain consistent.The test showed that the pro-posed algorithms were correct.Conclusions The proposed algorithm obtained a set of points that formed the boundary of a closed area in one pass through a series of contour lines.Consequently,the algorithm enabled complete alignment between contour lines and contour area boundaries.When certain contour lines changed,only the relevant contour areas needed to be updated,thereby the editing efficiency of contour maps was im-proved.
Keywords:cross product calculationbinary tree tracking of closed areadata interpretationtopology
Publication Date:2024-12-28
Online Publishing Date:2025-08-15(First online date of this platform, not the publication date of the document)
Pages:7( 139-145 )
Journal of Henan Polytechnic University(Natural Science)

Journal of Henan Polytechnic University(Natural Science)

ISTICPKU
ISSN:1673-9787
Year, Vol.(Issue):2024,43(6)