Electronic chart element display method
By giving electronic chart elements the dynamic coefficient weight of the importance of navigation safety, combined with zoom level and collision processing, the intelligent and human-computer interaction bottleneck problems of electronic chart display are solved, and the automated management and display optimization of chart elements are realized.
Patent Information
- Application Number
- CN202510550769.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-08-08
AI Technical Summary
Currently, electronic charts have human-computer interaction bottlenecks in the display of navigation elements, low operation efficiency and risk of human error, and over-reliance on manual parameter configuration.
By calculating the dynamic coefficient of navigation safety importance, weight each chart feature, combined with the zoom level control icon display, and automatic adjustment and color filling processing are performed during collision, design the display method of chart feature icons.
It improves the intelligence level of electronic charts, improves operation efficiency, reduces human errors, and realizes the automated management and display optimization of chart elements.
Smart Images

Figure CN120447807A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of informatization, and in particular to a method for displaying electronic chart elements. Background Art
[0002] Currently, electronic nautical charts have a significant human-computer interaction bottleneck in the display of navigation elements. Their element display mechanism relies too much on manual parameter configuration, resulting in low operational efficiency and the risk of human error. Summary of the Invention
[0003] In order to improve the intelligent level of electronic nautical charts in displaying navigation elements, the present invention designs an electronic nautical chart element display method.
[0004] The technical solution adopted by the present invention is a method for displaying electronic chart elements: Step 1: Control the icon display of chart elements. The specific method is as follows: A1, classify the elements, such as channel, water depth point, obstacle, etc., and assign a basic weight W to each type base ; A2, calculate the dynamic weight of the factors based on the importance of navigation safety W=W base ×S safety , where S safety The dynamic coefficient of importance of navigation safety is set artificially according to the area where the element is located. safety Changes as the feature coordinates change; A3, assuming the feature's zoom level is Z, creates a mapping function from weight to feature visibility range: Minimum zoom level for features: Z min =W÷W max ×Z total ; Maximum zoom level for features: Z max = Z total -[(W max -W)÷W max ×Z total ]; Where W max is the maximum weight of the element, Z total The maximum zoom level of the electronic chart; A4: Determine whether the element needs to display a complete icon: When Z min ≤Z≤Z max When , the icon of this element is displayed; When Z < Z min or Z>Z max , the icon for this element is not displayed.
[0005] Step 2: Control the size of the chart element icon. The specific method is: Defines the feature at zoom level Z f The icon size is S f , then the icon size at zoom level Z is: ; Set the minimum visible size S min , when S<S min When the icon size is S min .
[0006] Step 3: Adjust the chart element icons when they collide. The specific method is as follows: B1: The pixel's column number from left to right on the screen is the pixel's X-axis coordinate value, and the pixel's row number from bottom to top on the screen is the pixel's Y-axis coordinate value; the average of the multiple X-axis coordinates of the pixels occupied by the icon is the icon's X-axis coordinate value, and the average of the multiple Y-axis coordinates of the pixels occupied by the icon is the icon's Y-axis coordinate value; if two icons have pixels with the same coordinate value, the two icons are determined to have collided; B2, conduct a comparative analysis of the collision icons and compare the dynamic coefficient S of the importance of navigation safety of the elements represented by the two icons. safety , mobile S safety Small icon; set the pixel coordinate value of the overlapping area of the two icons to ( x i , y i ), S safety The coordinate value of the larger icon is ( x j , y j ); ① When x i < x j and y i < y j When the screen is opened, the screen moves horizontally 2 pixels to the left side of the screen and then vertically 2 pixels to the bottom side of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ②When x i < x j and y i = y j When the S is moved horizontally to the left of the screen by 2 pixels each time, safetyThe coordinates of the smaller icon until the two icons no longer collide; ③When x i < x j and y i > y j When the screen is opened, the screen moves horizontally 2 pixels to the left and vertically 2 pixels to the top of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ④When x i = x j and y i > y j When the screen is turned on, the S safety The coordinates of the smaller icon until the two icons no longer collide; ⑤When x i > x j and y i > y j When the screen is set to S, it moves horizontally 2 pixels to the right side of the screen and then vertically 2 pixels to the top of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ⑥ When x i > x j and y i = y j When the S is moved horizontally to the right of the screen by 2 pixels each time, safety The coordinates of the smaller icon until the two icons no longer collide; ⑦When x i > x j and y i < y j When the screen is set to S, it moves horizontally 2 pixels to the right side of the screen and then vertically 2 pixels to the bottom side of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ⑧When x i = x j and y i < y j When the S is moved horizontally to the bottom of the screen by 2 pixels each time, safety The coordinates of the smaller icon until the two icons no longer collide; B3, dynamic coefficient S of importance to navigation safety of elements represented by multiple icons where collision occurred safety When they are equal, set the alternating display cycle and display the icons alternately.
[0007] Step 4: Improve the recognition of chart elements by: C1, with the feature icon coordinates as the center, the pixel coordinates farthest from the center as the outer end point, let the distance between the icon center and the outer end point be D, and use 1.5D as the radius to define a circular range around the icon, and extract the values of the three color channels R, G, and B of the background color: The R channel color mean R0 is the mean of the R channel values of all pixels whose coordinates are within the circle; The G channel color mean G0 is the mean of the G channel values of all pixels whose coordinates are within the circle; The B channel color mean B0 is the mean of the B channel values of all pixels whose coordinates are within the circle; C2, convert RGB color to relative brightness value L: L=0.2126×(R0÷255)+0.7152×(G0÷255)+0.0722×(B0÷255); C3, create brightness contrast function: Contrast black ratio Q=(L+0.05)÷0.05; Contrast white ratio P = 1.05 ÷ (L + 0.05); C4, determine the icon fill color: When Q≥P, the element icon is black, that is, the RGB value of the element icon is (0, 0, 0); When Q<P, the element icon is white, that is, the RGB value of the element icon is (255, 255, 255).
[0008] The electronic chart element display method of the present invention has the following advantages: (1) The weight of the chart elements is calculated based on the dynamic coefficient of navigation safety importance, and the display of icons is automatically controlled by the zoom level, which is a novel idea; (2) Create a calculation method for element image size and zoom level, and design a solution to the collision of chart element icons, which is effective, practical and creative; (3) The innovative design of the color filling method of the chart element icons is highly creative.
[0009] Other features and advantages of the present invention will be set forth in the following description or may be learned by practicing the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are only for the purpose of illustrating particular embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like parts throughout the drawings.
[0011] Figure 1 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0012] The following will further describe in detail a method for displaying electronic nautical chart elements of the present invention in conjunction with the accompanying drawings and embodiments. In terms of direction description, it is assumed that the user's face is facing horizontally forward, the display screen loaded with the electronic nautical chart is facing horizontally backward, and the user's line of sight is perpendicular to the display screen.
[0013] The technical solution adopted by the present invention is as follows: Figure 1 As shown, a method for displaying electronic chart elements: Step 1: Control the icon display of chart elements. The specific method is as follows: A1, classify the elements, such as channel, water depth point, obstacle, etc., and assign a basic weight W to each type base ; In the specific implementation, W base The value range is 1-10, the larger the value, the more important it is; A2, calculate the dynamic weight of the factors based on the importance of navigation safety W=W base ×S safety , where S safety The dynamic coefficient of importance of navigation safety is set artificially according to the area where the element is located. safety Changes with the change of element coordinates; in specific implementation, S safety The value ranges from 1.0 to 3.0. The more dangerous the area where the element is located, the higher the S safety The larger the value; A3, assuming the feature's zoom level is Z, creates a mapping function from weight to feature visibility range: Minimum zoom level for features: Z min =W÷W max ×Z total ; Maximum zoom level for features: Z max = Z total -[(Wmax -W)÷W max ×Z total ]; Where W max is the maximum weight of the element, Z total The maximum zoom level of the electronic chart; A4: Determine whether the element needs to display a complete icon: When Z min ≤Z≤Z max When , the icon of this element is displayed; When Z < Z min or Z>Z max , the icon for this element is not displayed.
[0014] Step 2: Control the size of the chart element icon. The specific method is: Defines the feature at zoom level Z f The icon size is S f , then the icon size at zoom level Z is: ; Set the minimum visible size S min , when S<S min When the icon size is S min .
[0015] Step 3: Adjust the chart element icons when they collide. The specific method is as follows: B1: The pixel's column number from left to right on the screen is the pixel's X-axis coordinate value, and the pixel's row number from bottom to top on the screen is the pixel's Y-axis coordinate value; the average of the multiple X-axis coordinates of the pixels occupied by the icon is the icon's X-axis coordinate value, and the average of the multiple Y-axis coordinates of the pixels occupied by the icon is the icon's Y-axis coordinate value; if two icons have pixels with the same coordinate value, the two icons are determined to have collided; B2, conduct a comparative analysis of the collision icons and compare the dynamic coefficient S of the importance of navigation safety of the elements represented by the two icons. safety , mobile S safety Small icon; set the pixel coordinate value of the overlapping area of the two icons to ( x i , y i ), S safety The coordinate value of the larger icon is ( x j , y j ); ① When x i < x j and yi < y j When the screen is opened, the screen moves horizontally 2 pixels to the left side of the screen and then vertically 2 pixels to the bottom side of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ②When x i < x j and y i = y j When the S is moved horizontally to the left of the screen by 2 pixels each time, safety The coordinates of the smaller icon until the two icons no longer collide; ③When x i < x j and y i > y j When the screen is opened, the screen moves horizontally 2 pixels to the left and vertically 2 pixels to the top of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ④When x i = x j and y i > y j When the screen is turned on, the S safety The coordinates of the smaller icon until the two icons no longer collide; ⑤When x i > x j and y i > y j When the screen is set to S, it moves horizontally 2 pixels to the right side of the screen and then vertically 2 pixels to the top of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ⑥ When x i > x j and y i = yj When the S is moved horizontally to the right of the screen by 2 pixels each time, safety The coordinates of the smaller icon until the two icons no longer collide; ⑦When x i > x j and y i < y j When the screen is set to S, it moves horizontally 2 pixels to the right side of the screen and then vertically 2 pixels to the bottom side of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ⑧When x i = x j and y i < y j When the S is moved horizontally to the bottom of the screen by 2 pixels each time, safety The coordinates of the smaller icon until the two icons no longer collide; B3, dynamic coefficient S of importance to navigation safety of elements represented by multiple icons where collision occurred safety When they are equal, set the alternating display cycle and display the icons alternately.
[0016] Step 4: Improve the recognition of chart elements by: C1, with the feature icon coordinates as the center, the pixel coordinates farthest from the center as the outer end point, let the distance between the icon center and the outer end point be D, and use 1.5D as the radius to define a circular range around the icon, and extract the values of the three color channels R, G, and B of the background color: The R channel color mean R0 is the mean of the R channel values of all pixels whose coordinates are within the circle; The G channel color mean G0 is the mean of the G channel values of all pixels whose coordinates are within the circle; The B channel color mean B0 is the mean of the B channel values of all pixels whose coordinates are within the circle; C2, convert RGB color to relative brightness value L: L=0.2126×(R0÷255)+0.7152×(G0÷255)+0.0722×(B0÷255); C3, create brightness contrast function: Contrast black ratio Q=(L+0.05)÷0.05; Contrast white ratio P = 1.05 ÷ (L + 0.05); C4, determine the icon fill color: When Q≥P, the element icon is black, that is, the RGB value of the element icon is (0, 0, 0); When Q<P, the element icon is white, that is, the RGB value of the element icon is (255, 255, 255).
[0017] The RGB color system is a color representation method based on the three primary colors of light (red, green, and blue). It is widely used in electronic screen displays, digital image processing, web design, and other fields. Its principle is to combine the three primary colors, adjusting the light intensity of red, green, and blue to mix and produce the vast majority of colors visible to the human eye. RGB colors are defined by the combination of the values of three channels, each of which typically ranges from 0 to 255, totaling approximately 16.77 million colors (256×256×256).
[0018] The above description is only a preferred specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with this technical field within the technical scope disclosed by the present invention should be covered by the scope of protection of the present invention.
Claims
1. A method for displaying electronic chart elements, characterized by: Step 1: Control the icon display of the chart elements; Step 2: Control the size of the icons of the chart elements; Step 3: Adjust the chart element icons when they collide; Step 4: Improve the recognition of chart elements.
2. The method for displaying electronic chart elements according to claim 1, wherein: The specific method of step 1 is: A1: Classify the elements and assign a basic weight W to each type. base ; A2, calculate the dynamic weight of the factors based on the importance of navigation safety W=W base ×S safety , where S safety The dynamic coefficient of importance of navigation safety is set artificially according to the area where the element is located. safety Changes as the feature coordinates change; A3, assuming the feature's zoom level is Z, creates a mapping function from weight to feature visibility range: Minimum zoom level for features: Z min =W÷W max ×Z total ; Maximum zoom level for features: Z max = Z total -[(W max -W)÷W max ×Z total ]; Where W max is the maximum weight of the element, Z total The maximum zoom level of the electronic chart; A4: Determine whether the element needs to display a complete icon: When Z min ≤Z≤Z max When , the icon of this element is displayed; When Z < Z min or Z>Z max , the icon for this element is not displayed.
3. The method for displaying electronic chart elements according to claim 2, wherein: The specific method of step 2 is: Defines the feature at zoom level Z f The icon size is S f , then the icon size at zoom level Z is: ; Set the minimum visible size S min , when S<S min When the icon size is S min .
4. The method for displaying electronic chart elements according to claim 3, wherein: The specific method of step 3 is: B1: The pixel's column number from left to right on the screen is the pixel's X-axis coordinate value, and the pixel's row number from bottom to top on the screen is the pixel's Y-axis coordinate value; the average of the multiple X-axis coordinates of the pixels occupied by the icon is the icon's X-axis coordinate value, and the average of the multiple Y-axis coordinates of the pixels occupied by the icon is the icon's Y-axis coordinate value; if two icons have pixels with the same coordinate value, the two icons are determined to have collided; B2, conduct a comparative analysis of the collision icons and compare the dynamic coefficient S of the importance of navigation safety of the elements represented by the two icons. safety , mobile S safety Small icon; set the pixel coordinate value of the overlapping area of the two icons to ( x i , y i ), S safety The coordinate value of the larger icon is ( x j , y j ); ① When x i < x j and y i < y j When the screen is opened, the screen moves horizontally 2 pixels to the left side of the screen and then vertically 2 pixels to the bottom side of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ②When x i < x j and y i = y j When the S is moved horizontally to the left of the screen by 2 pixels each time, safety The coordinates of the smaller icon until the two icons no longer collide; ③When x i < x j and y i > y j When the screen is opened, the screen moves horizontally 2 pixels to the left and vertically 2 pixels to the top of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ④When x i = x j and y i > y j When the screen is turned on, the S safety The coordinates of the smaller icon until the two icons no longer collide; ⑤When x i > x j and y i > y j When the screen is set to S, it moves horizontally 2 pixels to the right side of the screen and then vertically 2 pixels to the top of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ⑥ When x i > x j and y i = y j When the S is moved horizontally to the right of the screen by 2 pixels each time, safety The coordinates of the smaller icon until the two icons no longer collide; ⑦When x i > x j and y i < y j When the screen is set to S, it moves horizontally 2 pixels to the right side of the screen and then vertically 2 pixels to the bottom side of the screen. safety The coordinates of the smaller icon until the two icons no longer collide; ⑧When x i = x j and y i < y j When the S is moved horizontally to the bottom of the screen by 2 pixels each time, safety The coordinates of the smaller icon until the two icons no longer collide; B3, dynamic coefficient S of importance to navigation safety of elements represented by multiple icons where collision occurred safety When they are equal, set the alternating display cycle and display the icons alternately.
5. The method for displaying electronic chart elements according to claim 4, characterized in that: The specific method of step 4 is: C1, with the feature icon coordinates as the center, the pixel coordinates farthest from the center as the outer end point, let the distance between the icon center and the outer end point be D, and use 1.5D as the radius to define a circular range around the icon, and extract the values of the three color channels R, G, and B of the background color: The R channel color mean R0 is the mean of the R channel values of all pixels whose coordinates are within the circle; The G channel color mean G0 is the mean of the G channel values of all pixels whose coordinates are within the circle; The B channel color mean B0 is the mean of the B channel values of all pixels whose coordinates are within the circle; C2, convert RGB color to relative brightness value L: L=0.2126×(R0÷255)+0.7152×(G0÷255)+0.0722×(B0÷255); C3, create brightness contrast function: The contrast ratio of black is Q = (L + 0.05) ÷ 0.05; The ratio of contrast to white is P = 1.05 ÷ (L + 0.05); C4, determine the icon fill color: When Q≥P, the element icon is black; When Q<P, the element icon is white.
Citation Information
Cited By
Automatic labeling method for dynamic elements of electronic chart
CN121561013A