Search

CN-121330206-B - Three-dimensional map construction method, device, equipment and storage medium

CN121330206BCN 121330206 BCN121330206 BCN 121330206BCN-121330206-B

Abstract

The invention discloses a three-dimensional map construction method, a device, equipment and a storage medium, which are applied to the field of three-dimensional maps, wherein a reference point is determined in a view cone of a viewpoint, a reference plane which comprises the reference point and is parallel to a far section of the view cone is constructed, the height of a three-dimensional map rendering interface window is determined, the height of the reference plane window is determined, the unit of the three-dimensional map rendering interface window is a pixel, the unit of the reference plane window height is a length, the proportion of distance pixels is determined based on the ratio of the reference plane window height to the three-dimensional map rendering interface window height, and a three-dimensional map which comprises the three-dimensional map scale is constructed based on the proportion of the distance pixels. The method has the advantages that the scale information of any position in the three-dimensional map can be rapidly and accurately calculated based on the perspective projection rule, the efficiency of constructing the three-dimensional map containing the high-precision scale is improved, the accurate geographic information in the three-dimensional map can be acquired in an auxiliary mode through the high-precision scale, and further the modeling precision is improved.

Inventors

  • YANG SHUNTAO
  • WANG QINPING
  • YU WEI

Assignees

  • 浙江科澜信息技术有限公司

Dates

Publication Date
20260505
Application Date
20251215

Claims (6)

  1. 1. A three-dimensional map construction method, comprising: determining a viewpoint in a three-dimensional map, determining a reference point in a visual cone of the viewpoint, and constructing a reference plane which comprises the reference point and is parallel to a distal section of the visual cone; determining the height of a three-dimensional map rendering interface window, and determining the height of a reference surface window of the reference surface, wherein the unit of the height of the three-dimensional map rendering interface window is a pixel, and the unit of the height of the reference surface window is a length; determining a distance pixel proportion based on the ratio of the three-dimensional map rendering interface window height to the reference surface window height; Determining a three-dimensional map scale of the reference point based on the distance pixel proportion, constructing the three-dimensional map containing the three-dimensional map scale, and acquiring three-dimensional map geographic information through the three-dimensional map scale; Determining a reference plane window height of the reference plane, comprising: Determining an upper line segment based on the viewpoint and the midpoint of the far section upper edge line, and determining a lower line segment based on the viewpoint and the midpoint of the far section lower edge line; determining an intersection point of the reference surface and the upper line segment as an upper line segment intersection point, and determining an intersection point of the reference surface and the lower line segment as a lower line segment intersection point; Determining a reference surface window line segment based on the intersection point of the upper line segment and the intersection point of the lower line segment, and determining the length of the reference surface window line segment as the reference surface window height; Determining the length of the reference surface window segment as the reference surface window height includes: Determining a far cross section center point in the view direction of the view point in the far cross section, and determining a far cross section view line segment based on the view point and the far cross section center point; Determining an intersection point of the reference plane and the far cross section view line segment as a reference plane center point, and determining a reference plane view line segment based on the viewpoint and the reference plane center point; Determining the length of the reference plane view line segment, and determining the length between the intersection point of the upper line segment and the center point of the reference plane based on the length of the reference plane view line segment and the vertical opening angle of the viewpoint; determining 2 times of the length between the intersection point of the upper line segment and the center point of the reference surface as the height of the window of the reference surface; determining the length of the reference plane view line segment includes: Determining a first vector taking the viewpoint as a starting point and taking the reference point as an end point; determining a second vector taking the viewpoint as a starting point and taking the center point of the far section as an end point; Based on a vector projection rule, determining a third vector taking the viewpoint as a starting point and taking the center point of the reference plane as an end point by using the first vector and the second vector; Determining coordinates of the reference plane center point based on the coordinates of the viewpoint and the third vector; Determining the length of the line segment of the reference plane in the viewing direction based on the coordinates of the center point of the reference plane and the coordinates of the view point; based on the length of the reference plane view line segment and the vertical opening angle of the view point, determining the length between the intersection point of the upper line segment and the center point of the reference plane comprises the following steps: Inputting the length of the reference plane view line segment into a length formula of the vertical opening angle of the viewpoint to obtain the length between the intersection point of the output upper line segment and the center point of the reference plane; the expression of the length formula is: 1/2*h 1 =d*tan(1/2*α); Wherein 1/2*h 1 is the length between the intersection point of the upper line segment and the center point of the reference plane, h 1 is the height of the window of the reference plane, d is the length of the line segment of the view of the reference plane, and alpha is the vertical opening angle of the view point.
  2. 2. The three-dimensional map construction method according to claim 1, wherein determining a three-dimensional map rendering interface window height comprises: And acquiring window information of a three-dimensional map rendering interface window, and determining the height of the three-dimensional map rendering interface window from the window information.
  3. 3. The three-dimensional map construction method according to claim 1, wherein determining a reference point in the cone of view of the viewpoint comprises: And acquiring a mouse point in the view cone of the viewpoint, converting the mouse point into a three-dimensional mouse point in the three-dimensional map, and determining the three-dimensional mouse point as the reference point.
  4. 4. A three-dimensional map construction apparatus, comprising: a first module for determining a viewpoint in a three-dimensional map, determining a reference point in a cone of view of the viewpoint, and constructing a reference plane containing the reference point and parallel to a distal section of the cone of view; The second module is used for determining the height of the three-dimensional map rendering interface window and determining the height of the reference surface window of the reference surface, wherein the unit of the height of the three-dimensional map rendering interface window is a pixel, and the unit of the height of the reference surface window is a length; a third module for determining a range pixel ratio based on a ratio of the three-dimensional map rendering interface window height to the reference plane window height; a fourth module, configured to determine a three-dimensional map scale of the reference point based on the distance pixel scale, construct the three-dimensional map including the three-dimensional map scale, and obtain three-dimensional map geographic information through the three-dimensional map scale; Determining a reference plane window height of the reference plane, comprising: Determining an upper line segment based on the viewpoint and the midpoint of the far section upper edge line, and determining a lower line segment based on the viewpoint and the midpoint of the far section lower edge line; determining an intersection point of the reference surface and the upper line segment as an upper line segment intersection point, and determining an intersection point of the reference surface and the lower line segment as a lower line segment intersection point; Determining a reference surface window line segment based on the intersection point of the upper line segment and the intersection point of the lower line segment, and determining the length of the reference surface window line segment as the reference surface window height; Determining the length of the reference surface window segment as the reference surface window height includes: Determining a far cross section center point in the view direction of the view point in the far cross section, and determining a far cross section view line segment based on the view point and the far cross section center point; Determining an intersection point of the reference plane and the far cross section view line segment as a reference plane center point, and determining a reference plane view line segment based on the viewpoint and the reference plane center point; Determining the length of the reference plane view line segment, and determining the length between the intersection point of the upper line segment and the center point of the reference plane based on the length of the reference plane view line segment and the vertical opening angle of the viewpoint; determining 2 times of the length between the intersection point of the upper line segment and the center point of the reference surface as the height of the window of the reference surface; determining the length of the reference plane view line segment includes: Determining a first vector taking the viewpoint as a starting point and taking the reference point as an end point; determining a second vector taking the viewpoint as a starting point and taking the center point of the far section as an end point; Based on a vector projection rule, determining a third vector taking the viewpoint as a starting point and taking the center point of the reference plane as an end point by using the first vector and the second vector; Determining coordinates of the reference plane center point based on the coordinates of the viewpoint and the third vector; Determining the length of the line segment of the reference plane in the viewing direction based on the coordinates of the center point of the reference plane and the coordinates of the view point; based on the length of the reference plane view line segment and the vertical opening angle of the view point, determining the length between the intersection point of the upper line segment and the center point of the reference plane comprises the following steps: Inputting the length of the reference plane view line segment into a length formula of the vertical opening angle of the viewpoint to obtain the length between the intersection point of the output upper line segment and the center point of the reference plane; the expression of the length formula is: 1/2*h 1 =d*tan(1/2*α); Wherein 1/2*h 1 is the length between the intersection point of the upper line segment and the center point of the reference plane, h 1 is the height of the window of the reference plane, d is the length of the line segment of the view of the reference plane, and alpha is the vertical opening angle of the view point.
  5. 5. An electronic device, comprising: a memory for storing a computer program; A processor for implementing the three-dimensional map construction method according to any one of claims 1 to 3 when executing the computer program.
  6. 6. A computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, which when executed by a processor, implement the three-dimensional map construction method according to any one of claims 1 to 3.

Description

Three-dimensional map construction method, device, equipment and storage medium Technical Field The present invention relates to the field of three-dimensional maps, and in particular, to a three-dimensional map construction method, a three-dimensional map construction apparatus, an electronic device, and a computer readable storage medium. Background The map scale is the ratio of the length of the line segment on the map to the horizontal projection length of the corresponding line segment on the field, and is used for representing the reduction degree of the ground feature graph. The accuracy of the three-dimensional map scale directly influences the modeling accuracy of the three-dimensional model, and when the accuracy of the three-dimensional map scale is low, the accuracy of the three-dimensional geographic information obtained through the three-dimensional map scale is low, and the modeling accuracy through the three-dimensional geographic information is low. In engineering applications, such as terrain exploration, urban planning, map navigation, etc., low-precision modeling leads to safety and economic problems. The prior three-dimensional map scale is determined by calculating the numerical value of the scale according to the viewpoint height of the current three-dimensional map, but in a three-dimensional map system, the three-dimensional map is usually an ellipsoid similar to the earth, the three-dimensional map is watched from different view angles, different positions are displayed in a window, the real three-dimensional lengths represented by the same window height at different view angles are different, so that the calculated three-dimensional map scale has lower precision, and the modeling precision of a three-dimensional model is lower. Disclosure of Invention The invention aims to provide a three-dimensional map construction method, a three-dimensional map construction device, electronic equipment and a computer readable storage medium, which are applied to the field of three-dimensional maps. In order to solve the technical problems, the invention provides a three-dimensional map construction method, which comprises the following steps: determining a viewpoint in a three-dimensional map, determining a reference point in a visual cone of the viewpoint, and constructing a reference plane which comprises the reference point and is parallel to a distal section of the visual cone; determining the height of a three-dimensional map rendering interface window, and determining the height of a reference surface window of the reference surface, wherein the unit of the height of the three-dimensional map rendering interface window is a pixel, and the unit of the height of the reference surface window is a length; determining a distance pixel proportion based on the ratio of the three-dimensional map rendering interface window height to the reference surface window height; And determining a three-dimensional map scale of the reference point based on the distance pixel scale, and constructing the three-dimensional map containing the three-dimensional map scale. Optionally, determining the reference plane window height of the reference plane includes: Determining an upper line segment based on the viewpoint and the midpoint of the far section upper edge line, and determining a lower line segment based on the viewpoint and the midpoint of the far section lower edge line; determining an intersection point of the reference surface and the upper line segment as an upper line segment intersection point, and determining an intersection point of the reference surface and the lower line segment as a lower line segment intersection point; and determining a reference surface window line segment based on the intersection point of the upper line segment and the intersection point of the lower line segment, and determining the length of the reference surface window line segment as the reference surface window height. Optionally, determining the length of the reference plane window segment as the reference plane window height includes: Determining a far cross section center point in the view direction of the view point in the far cross section, and determining a far cross section view line segment based on the view point and the far cross section center point; Determining an intersection point of the reference plane and the far cross section view line segment as a reference plane center point, and determining a reference plane view line segment based on the viewpoint and the reference plane center point; Determining the length of the reference plane view line segment, and determining the length between the intersection point of the upper line segment and the center point of the reference plane based on the length of the reference plane view line segment and the vertical opening angle of the viewpoint; and determining 2 times of the length between the intersection point of the upper line segment and the center point