CN109978999A - Coordinate scaling method, device and terminal device - Google Patents

Coordinate scaling method, device and terminal device Download PDF

Info

Publication number
CN109978999A
CN109978999A CN201711444798.9A CN201711444798A CN109978999A CN 109978999 A CN109978999 A CN 109978999A CN 201711444798 A CN201711444798 A CN 201711444798A CN 109978999 A CN109978999 A CN 109978999A
Authority
CN
China
Prior art keywords
tile map
pixel
dimensional
building model
latitude
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711444798.9A
Other languages
Chinese (zh)
Other versions
CN109978999B (en
Inventor
单远达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201711444798.9A priority Critical patent/CN109978999B/en
Publication of CN109978999A publication Critical patent/CN109978999A/en
Application granted granted Critical
Publication of CN109978999B publication Critical patent/CN109978999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Remote Sensing (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)

Abstract

Coordinate scaling method, device and terminal device provided by the invention are related to coordinate calibration technique field.Wherein, coordinate scaling method includes: to obtain three-dimensional building model corresponding at least tile map in satellite map, and an at least tile map is fitted in into the three-dimensional building model, so that the three-dimensional point in the threedimensional model is corresponding with the pixel in an at least tile map, wherein, the three-dimensional building model includes multiple three-dimensional points, and each tile map includes multiple pixels;For each of three-dimensional building model three-dimensional point, the three-dimensional point corresponding pixel in the tile map Jing Guo laminating process is obtained;The latitude and longitude coordinates of corresponding three-dimensional points are calculated according to the latitude and longitude coordinates of position coordinates of the pixel in affiliated tile map and affiliated tile map.By the above method, can improve in existing coordinate calibration technique has narrow scope of application.

Description

Coordinate scaling method, device and terminal device
Technical field
The present invention relates to coordinate calibration technique fields, set in particular to a kind of coordinate scaling method, device and terminal It is standby.
Background technique
Three-dimensional building model refers to, the emulation buildings model constructed by Computerized three-dimensional modeling technique, and due to three Dimension buildings model can more be truly reflected corresponding building and be widely used.Wherein, pass through coordinate calibration technique Coordinate calibration is carried out to each three-dimensional point in three-dimensional building model, the application field of three-dimensional building model can be extended.Through inventing The study found that there is narrow scope of application in existing coordinate calibration technique in people.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of coordinate scaling method, device and terminal device, it is existing to improve There are problems that narrow scope of application in some coordinate calibration techniques.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that
A kind of coordinate scaling method, comprising:
Three-dimensional building model corresponding at least tile map in satellite map is obtained, and will be at least one watt described Piece map fits in the three-dimensional building model, so that the three-dimensional point in the threedimensional model and an at least tile map In pixel it is corresponding, wherein the three-dimensional building model includes multiple three-dimensional points, and each tile map includes multiple pixels Point;
For each of three-dimensional building model three-dimensional point, the three-dimensional point is obtained in the tile Jing Guo laminating process Corresponding pixel in map;
It is calculated according to the latitude and longitude coordinates of position coordinates of the pixel in affiliated tile map and affiliated tile map Obtain the latitude and longitude coordinates of corresponding three-dimensional points.
It, will at least tile in above-mentioned coordinate scaling method in the embodiment of the present invention preferably selects Figure fits in the step of three-dimensional building model and includes:
An at least tile map is fitted in into quad patch, and the quad patch is fitted in into the three-dimensional Buildings model;
The size of the quad patch is adjusted according to the three-dimensional building model, so that an at least tile map In building be overlapped with the three-dimensional building model.
In the embodiment of the present invention preferably selects, in above-mentioned coordinate scaling method, if three-dimensional building model is in satellite Corresponding tile map is multiple in map, and an at least tile map is fitted in quad patch, and by four side Shape dough sheet fits in the step of three-dimensional building model and includes:
Multiple described tile maps are fitted in into multiple quad patch respectively;
The multiple quad patch is spliced according to the positional relationship respectively built in the three-dimensional building model;
Spliced quad patch is fitted in into the three-dimensional building model.
In the embodiment of the present invention preferably selects, in above-mentioned coordinate scaling method, according to the three-dimensional building model In the positional relationship respectively built the step of being spliced the multiple quad patch include:
Determine that a quad patch is closed as benchmark dough sheet, and according to the position respectively built in the three-dimensional building model System determines adjacent quadrangular dough sheet of the benchmark dough sheet on longitude and latitude both direction respectively;
According to the length of the benchmark dough sheet, the position coordinates of width and each vertex, calculates separately to obtain the benchmark dough sheet and exist The position coordinates on each vertex of the adjacent quadrangular dough sheet on longitude and latitude both direction;
Corresponding quad patch and the benchmark dough sheet are spelled according to the position coordinates on each vertex being calculated It connects.
In the embodiment of the present invention preferably selects, in above-mentioned coordinate scaling method, for the three-dimensional building model Each of three-dimensional point, obtain three-dimensional point packet the step of corresponding pixel in the tile map Jing Guo laminating process It includes:
For each of three-dimensional building model three-dimensional point, to the three-dimensional point along perpendicular to the tile map Direction carries out projection process;
It obtains projected position coordinate of the three-dimensional point in the tile map, and is obtained pair according to the projected position coordinate The pixel answered.
In the embodiment of the present invention preferably selects, in above-mentioned coordinate scaling method, according to the pixel at affiliated watt The latitude and longitude coordinates of corresponding three-dimensional points are calculated in the latitude and longitude coordinates of position coordinates and affiliated tile map in piece map Step includes:
It is calculated according to the latitude and longitude coordinates of position coordinates of the pixel in affiliated tile map and affiliated tile map Obtain the pixel coordinate of the pixel;
The latitude and longitude coordinates of corresponding three-dimensional points are calculated according to preset rules according to the pixel coordinate.
In the embodiment of the present invention preferably selects, in above-mentioned coordinate scaling method, according to the pixel at affiliated watt The step of pixel coordinate of the pixel is calculated in the latitude and longitude coordinates of position coordinates and affiliated tile map in piece map Include:
According to the position of position coordinates of the pixel in affiliated tile map and the reference image vegetarian refreshments of affiliated tile map It sets coordinate and pixel-shift amount of the pixel in affiliated tile map is calculated;
The pixel is calculated according to the latitude and longitude coordinates of the pixel-shift amount of the pixel and affiliated tile map Pixel coordinate.
The embodiment of the invention also provides a kind of coordinate caliberating devices, comprising:
Tile map processing module, for obtaining three-dimensional building model corresponding at least tile in satellite map Figure, and an at least tile map is fitted in into the three-dimensional building model, so that the three-dimensional point in the threedimensional model It is corresponding with the pixel in an at least tile map, wherein the three-dimensional building model includes multiple three-dimensional points, each Opening tile map includes multiple pixels;
Pixel obtains module, for obtaining the three-dimensional point for each of three-dimensional building model three-dimensional point The corresponding pixel in the tile map Jing Guo laminating process;
Latitude and longitude coordinates computing module, for according to position coordinates of the pixel in affiliated tile map and affiliated watt The latitude and longitude coordinates of corresponding three-dimensional points are calculated in the latitude and longitude coordinates of piece map.
It is described the embodiment of the invention also provides a kind of terminal device, including memory, processor and coordinate caliberating device Coordinate caliberating device includes one or more software function modules for being stored in the memory and being executed by the processor, Wherein, the software function module includes:
Tile map processing module, for obtaining three-dimensional building model corresponding at least tile in satellite map Figure, and an at least tile map is fitted in into the three-dimensional building model, so that the three-dimensional point in the threedimensional model It is corresponding with the pixel in an at least tile map, wherein the three-dimensional building model includes multiple three-dimensional points, each Opening tile map includes multiple pixels;
Pixel obtains module, for obtaining the three-dimensional point for each of three-dimensional building model three-dimensional point The corresponding pixel in the tile map Jing Guo laminating process;
Latitude and longitude coordinates computing module, for according to position coordinates of the pixel in affiliated tile map and affiliated watt The latitude and longitude coordinates of corresponding three-dimensional points are calculated in the latitude and longitude coordinates of piece map.
On the basis of the above, the embodiment of the invention also provides a kind of computer-readable storage medias, are stored thereon with meter The step of calculation machine program, which realizes above-mentioned coordinate scaling method when being executed by processor.
Coordinate scaling method, device and terminal device provided by the invention, by obtaining three-dimensional building model in satellite Corresponding tile map in figure, and each three-dimensional point in three-dimensional building model is calculated according to the latitude and longitude coordinates of tile map Latitude and longitude coordinates to realize the purpose of the latitude and longitude coordinates calibration to three-dimensional building model, and then improve existing coordinate calibration There is narrow scope of application because that can not be suitable for modeling the three-dimensional building model formed manually in method, greatly improve The scope of application of coordinate scaling method, device and terminal device.
Further, by the way that tile map is fitted in quad patch, and according to three-dimensional building model to quadrilateral surface The size of piece is adjusted, so that the building in tile map is overlapped with three-dimensional building model, it is ensured that pass through tile map The three-dimensional building model that is calculated of latitude and longitude coordinates in each three-dimensional point latitude and longitude coordinates accuracy with higher, effectively Ground improves the reliability of coordinate scaling method.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Fig. 1 is the structural block diagram of terminal device provided in an embodiment of the present invention.
Fig. 2 is the flow diagram of coordinate scaling method provided in an embodiment of the present invention.
Fig. 3 is the flow diagram of step S110 in Fig. 2.
Fig. 4 is the flow diagram of step S111 in Fig. 3.
Fig. 5 is the splicing schematic diagram of quad patch.
Fig. 6 is the flow diagram of step S130 in Fig. 2.
Fig. 7 is the flow diagram of step S150 in Fig. 2.
Fig. 8 is the flow diagram of step S151 in Fig. 6.
Fig. 9 is the structural block diagram of coordinate caliberating device provided in an embodiment of the present invention.
Figure 10 is the structural block diagram of tile map processing module provided in an embodiment of the present invention.
Figure 11 is the structural block diagram that pixel provided in an embodiment of the present invention obtains module.
Figure 12 is the structural block diagram of latitude and longitude coordinates computing module provided in an embodiment of the present invention.
Icon: 10- terminal device;12- memory;14- processor;100- coordinate caliberating device;At 110- tile map Manage module;111- tile map is bonded submodule;113- tile map adjusting submodule;130- pixel obtains module;131- Three-dimensional point projects submodule;133- pixel acquisition submodule;150- latitude and longitude coordinates computing module;151- pixel coordinate calculates Submodule;153- latitude and longitude coordinates computational submodule.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment only It is a part of the embodiments of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings The component of embodiment can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects It encloses.It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi are attached It is defined in figure, does not then need that it is further defined and explained in subsequent attached drawing.
As shown in Figure 1, the embodiment of the invention provides a kind of terminal device 10, including memory 12, processor 14 and seat Mark caliberating device 100.
It is directly or indirectly electrically connected between the memory 12 and processor 14, to realize the transmission or friendship of data Mutually.It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.The coordinate Caliberating device 100 can be stored in soft in the memory 12 including at least one in the form of software or firmware (firmware) Part functional module.The processor 14 is for executing the executable computer program stored in the memory 12, for example, institute Software function module included by coordinate caliberating device 100 and computer program etc. are stated, to realize coordinate scaling method, Jin Ershi Now to the calibration of the latitude and longitude coordinates of each three-dimensional point in three-dimensional building model.
Wherein, the memory 12 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 12 is for storing program, and the processor 14 executes described program after receiving and executing instruction.
The processor 14 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 14 It can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (DSP), specific integrated circuit (ASIC), scene Programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware group Part.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with It is that microprocessor or the processor are also possible to any conventional processor etc..
It is appreciated that structure shown in FIG. 1 is only to illustrate, the terminal device 10 may also include more than shown in Fig. 1 Perhaps less component or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can use hardware, software Or combinations thereof realize.
Optionally, the concrete type of the terminal device 10 is unrestricted, for example, it may be, but be not limited to, intelligent hand Machine, PC (personal computer, PC), tablet computer, personal digital assistant (personal digital Assistant, PDA), the electricity having data processing function such as mobile internet surfing equipment (mobile Internet device, MID) Sub- equipment.
In conjunction with Fig. 2, the embodiment of the present invention also provides a kind of coordinate scaling method that can be applied to above-mentioned terminal device 10.Its In, method and step defined in the related process of the method can be realized by the processor 14.It below will be to shown in Fig. 2 Detailed process is described in detail.
Step S110 obtains three-dimensional building model corresponding at least tile map in satellite map, and will be described At least a tile map fits in the three-dimensional building model, so that the three-dimensional point in the threedimensional model and described at least one The pixel opened in tile map is corresponding.
Step S130 obtains the three-dimensional point by being bonded for each of three-dimensional building model three-dimensional point Corresponding pixel in the tile map of processing.
Step S150, according to the longitude and latitude of the pixel position coordinates in affiliated tile map and affiliated tile map The latitude and longitude coordinates of corresponding three-dimensional points are calculated in coordinate.
In the present embodiment, the three-dimensional building model includes multiple three-dimensional points, and each tile map includes multiple pictures Vegetarian refreshments.By execute step S110, can establish the corresponding relationship of pixel and three-dimensional point, guarantee execute step S130 and When S150, it can be demarcated according to the latitude and longitude coordinates of the coordinate pair three-dimensional point of pixel.
Optionally, the source of three-dimensional building model is unrestricted, for example, either passing through the three-dimensional mould to be formed of taking photo by plane Type is also possible to the threedimensional model by modeling formation manually.Wherein, three-dimensional point refers to three-dimensional building in three-dimensional display space Model is decomposed, obtained minimum unit (according to the difference of display resolution, the quantity of minimum unit can be different).Tile Map can get the latitude and longitude coordinates of the tile map from satellite map according to the satellite map.Each tile The quantity for the pixel that map includes is unrestricted, can be configured according to the resolution ratio of the tile map, for example, can be with It is 256*256.
After executing above-mentioned steps, it may be implemented to carry out the latitude and longitude coordinates of each three-dimensional point in three-dimensional building model Calibration in order to obtain the latitude and longitude coordinates for the equipment for being set to each three-dimensional point, and then realizes the longitude and latitude by equipment The purpose that coordinate pair equipment is effectively managed.
Optionally, the mode for obtaining three-dimensional building model corresponding at least one tile map in satellite map is unrestricted System, is configured, according to actual needs for example, it may be by finding the three-dimensional building model in satellite map Corresponding building, and longitude and latitude range of the building in satellite map is obtained, it is available according to the longitude and latitude range The three-dimensional building model corresponding tile map in satellite map.
Further, the three-dimensional building model is fitted in at least tile map that execution step S110 will acquire When, the corresponding relationship to guarantee the pixel in the three-dimensional point and tile map in three-dimensional building model is more accurate, so that root The longitude and latitude for the three-dimensional point being calculated according to the coordinate of pixel coordinate it is more accurate, in the present embodiment, in conjunction with Fig. 3, step S110 may include step S111 and step S113.
An at least tile map is fitted in quad patch, and the quad patch is bonded by step S111 In the three-dimensional building model.
Step S113 adjusts the size of the quad patch according to the three-dimensional building model, so that described at least one The building opened in tile map is overlapped with the three-dimensional building model.
It in the present embodiment, can be with by the way that the building in tile map is overlapped setting with the three-dimensional building model Guarantee that the corresponding relationship of the pixel in the three-dimensional point and tile map in three-dimensional building model is more accurate.In view of tile The size of figure is different from being typically of size of for three-dimensional building model, to guarantee that the building in tile map is built with the three-dimensional It builds model to be completely coincident, the size to tile figure is needed to be adjusted.Wherein, to be adjusted convenient for the size to tile map It is whole, tile map can be fitted in quad patch, and by adjusting the size of quad patch to realize to tile map The adjustment of size.
Foundation in view of obtaining tile map is longitude and latitude range of the corresponding building in satellite map.Wherein, it passes through Spending line has vertical positional relationship with latitude line, and the tile map of acquisition is rectangle, and therefore, the quad patch can be Rectangle.
Further, it is contemplated that the building in the three-dimensional building model is generally multiple, to guarantee the correspondence obtained Tile map resolution ratio with higher, corresponding tile map can be obtained respectively for different buildings.Wherein, exist The tile map of acquisition be multiple when, when executing step S113 be convenient for being adjusted to tile map, in the present embodiment, The quad patch for being respectively fitted with tile map can be spliced when executing step S111, when so as to execute step S113 Unified adjustment can be carried out to spliced each quad patch, in conjunction with Fig. 4, step S111 may include step S111a, step Rapid S111b and step S111c.
Multiple described tile maps are fitted in multiple quad patch by step S111a respectively.
In the present embodiment, after obtaining multiple tile maps, four sides can be generated for each tile map Shape dough sheet, and the tile map is fitted in into the quad patch, so that watt being bonded in the size variation of quad patch Piece map can be changed accordingly.
Step S111b, according to the positional relationship respectively built in the three-dimensional building model by the multiple quad patch Spliced.
Optionally, the mode spliced to the multiple quad patch is unrestricted, as long as corresponding watt after splicing The positional relationship between building in piece map is identical as the positional relationship of each building in the three-dimensional building model. For example, if, along a direction successively by building A, building B and building C, there is watt of building A in three-dimensional building model The quad patch of piece map fitting is dough sheet A, and the quad patch that the tile map with building B is bonded is dough sheet B, tool The quad patch for having the tile map fitting of building C is dough sheet C.In spliced multiple quad patch, along above-mentioned Direction is followed successively by dough sheet A, dough sheet B and dough sheet C.It in the present embodiment, can be by following steps to the multiple quadrangle Dough sheet is spliced:
Determine that a quad patch is closed as benchmark dough sheet, and according to the position respectively built in the three-dimensional building model System determines adjacent quadrangular dough sheet of the benchmark dough sheet on longitude and latitude both direction respectively;According to the length of the benchmark dough sheet The position coordinates of degree, width and each vertex calculate separately to obtain the benchmark dough sheet adjacent on longitude and latitude both direction The position coordinates on each vertex of quad patch;According to the position coordinates on each vertex being calculated by corresponding quad patch Spliced with the benchmark dough sheet.
Wherein it is determined that benchmark dough sheet can be any one in the multiple quad patch, be also possible to according to One of preset rules determination, for example, it may be corresponding building is located at the quad patch of three-dimensional building model corner Or the quad patch in middle position.
For example, can be sat according to the position of the length of dough sheet A, width and each vertex when determining dough sheet A is benchmark dough sheet Mark is calculated the position coordinates on each vertex of dough sheet B, and is spliced dough sheet B in dough sheet A according to the position coordinates.Then, may be used Position coordinates dough sheet B to be calculated to each vertex of dough sheet C as benchmark dough sheet, and according to the position coordinates by dough sheet C Splice in dough sheet B.
After determining benchmark dough sheet, the building for the tile map that can be bonded according to datum level on piece is according to the building The positional relationship with other buildings in the three-dimensional building model determines one adjacent four in longitudinal respectively Side shape dough sheet and an adjacent quadrangular dough sheet on latitude direction.Wherein, longitudinal and latitude direction are either refer to The increased direction of longitude and the increased direction of latitude, the direction that the direction and latitude for being also possible to longitude reduction reduce.In this reality It applies in example, in conjunction with Fig. 5, is illustrated using the increased direction of longitude and the increased direction of latitude as example.
Assuming that the coordinate on four vertex of benchmark dough sheet is respectively a1, a2, a3 and a4, be calculated in longitudinal The coordinate on four vertex of an adjacent quadrangular dough sheet be respectively b1, b2, b3 and b4, one on latitude direction is adjacent The coordinate on four vertex of quad patch is respectively c1, c2, c3 and c4.
Wherein, the relationship of the apex coordinate of adjacent quadrangular dough sheet can be on the apex coordinate and longitude of benchmark dough sheet are as follows:
B1=a2;
B4=a3.
The relationship of the apex coordinate of adjacent quadrangular dough sheet can be on the apex coordinate and latitude of benchmark dough sheet are as follows:
C1=a4;
C2=a3;
Wherein, L is the length (longitudinal) of benchmark dough sheet, and H is the width (latitude direction) of benchmark dough sheet,WithVector of the vector, vertex a4 of respectively vertex a1 to vertex a2 to vertex a3, vertex The vector of the vector sum vertex a1 to vertex a4 of a2 to vertex a3.
Spliced quad patch is fitted in the three-dimensional building model by step S111c.
In the present embodiment, spliced new quad patch is obtained for step S111b, it can be by the quadrilateral surface Piece fits in the bottom of the three-dimensional building model, so that each three-dimensional point in the three-dimensional building model in the same direction can be with Corresponding pixel is found in the tile map of the quadrilateral surface on piece.
Further, it is contemplated that the latitude and longitude coordinates of the three-dimensional point not height by the three-dimensional point in three-dimensional building model The influence of (the distance between three-dimensional building model bottom), in the present embodiment, in conjunction with Fig. 6, step S130 may include step Rapid S131 and step S133, to obtain the corresponding pixel of three-dimensional point.
Step S131, for each of three-dimensional building model three-dimensional point, to the three-dimensional point along perpendicular to described The direction of tile map carries out projection process.
Step S133 obtains projected position coordinate of the three-dimensional point in the tile map, and according to the projected position Coordinate obtains corresponding pixel.
In the present embodiment, can for three-dimensional building model space establish three-dimensional coordinate system, including phase Mutually vertical x, y and z axes, wherein x is longitudinal, and z is latitude direction, and y is perpendicular to the plane of x and y-axis composition (after fitting Tile map where plane).Assuming that the coordinate of three-dimensional point is (x1, y1, z1), what projection process obtained is carried out to the three-dimensional point Projected position coordinate is (x1,0, z1), due to the plane that the tile map after fitting is constituted in x and y-axis, coordinate is The coordinate of the corresponding pixel of the three-dimensional point of (x1, y1, z1) is (x1,0, z1).
Further, in the present embodiment, in conjunction with Fig. 7, step S150 may include step S151 and step S153, in terms of Calculation obtains the latitude and longitude coordinates of three-dimensional point, to complete the coordinate calibration of each three-dimensional point in three-dimensional building model.
Step S151, according to the longitude and latitude of the pixel position coordinates in affiliated tile map and affiliated tile map The pixel coordinate of the pixel is calculated in coordinate.
The latitude and longitude coordinates of corresponding three-dimensional points are calculated according to the pixel coordinate according to preset rules by step S153.
In the present embodiment, the particular content of the preset rules is unrestricted, can be according to defending where tile map The type of star map is configured, wherein satellite map may include, but with being not limited to Baidu map, Tencent's map and Gao De Figure etc..
In view of being directed to same three-dimensional building model, the longitude and latitude of corresponding tile map is sat in different satellite maps Mark identical, and the pixel coordinate of each pixel in the tile map is also identical, in the present embodiment, in conjunction with Fig. 8, step S151 It may include step S151a and step S151b, the pixel coordinate of pixel is calculated.
Step S151a, according to the benchmark of the pixel position coordinates in affiliated tile map and affiliated tile map Pixel-shift amount of the pixel in affiliated tile map is calculated in the position coordinates of pixel.
Step S151b is calculated according to the latitude and longitude coordinates of the pixel-shift amount of the pixel and affiliated tile map The pixel coordinate of the pixel.
In the present embodiment, the position of the reference image vegetarian refreshments of any one tile map is unrestricted, either four Any one in vertex is also possible to the pixel positioned at tile map middle position.In the present embodiment, for as base The quad patch of quasi- dough sheet, can be using vertex a1 as reference image vegetarian refreshments, wherein vertex a1 is corresponding in world coordinate system Latitude and longitude coordinates are the latitude and longitude coordinates of the affiliated tile map in the vertex.Therefore, pixel can be calculated by following formula The pixel coordinate of point:
Wherein, px is coordinate value of the pixel in x-axis (longitudinal), and py is pixel on y-axis (latitude direction) Coordinate value, x and z are position coordinates of the pixel in affiliated tile map, and a1.x and a1.y are benchmark pixel affiliated Position coordinates in tile map, m and n be respectively belonging to resolution ratio of the tile map on longitude and latitude, TileX and TileY is respectively the latitude and longitude coordinates of affiliated tile map.
In conjunction with Fig. 9, the embodiment of the present invention also provides a kind of coordinate caliberating device that can be applied to above-mentioned terminal device 10 100.Wherein, the coordinate caliberating device 100 includes tile map processing module 110, pixel acquisition module 130 and longitude and latitude Coordinate calculation module 150.
The tile map processing module 110, for obtaining three-dimensional building model corresponding at least one in satellite map Tile map is opened, and an at least tile map is fitted in into the three-dimensional building model, so that in the threedimensional model Three-dimensional point it is corresponding with the pixel in an at least tile map, wherein the three-dimensional building model includes multiple three Point is tieed up, each tile map includes multiple pixels.In the present embodiment, the tile map processing module 110 can be used for Step S110 shown in Fig. 2 is executed, the specific descriptions about the tile map processing module 110 are referred to above to step The description of S110.
The pixel obtains module 130, for for each of three-dimensional building model three-dimensional point, obtaining should Three-dimensional point corresponding pixel in the tile map Jing Guo laminating process.In the present embodiment, the pixel obtains module 130 can be used for executing step S130 shown in Fig. 2, before the specific descriptions about pixel acquisition module 130 are referred to Description of the text to step S130.
The latitude and longitude coordinates computing module 150, for the position coordinates according to the pixel in affiliated tile map The latitude and longitude coordinates of corresponding three-dimensional points are calculated with the latitude and longitude coordinates of affiliated tile map.In the present embodiment, the warp Latitude coordinate computing module 150 can be used for executing step S150 shown in Fig. 2, about the latitude and longitude coordinates computing module 150 Specific descriptions be referred to the description to step S150 above.
In conjunction with Figure 10, in the present embodiment, the tile map processing module 110 may include tile map fitting submodule Block 111 and tile map adjusting submodule 113.
The tile map is bonded submodule 111, for an at least tile map to be fitted in quad patch, And the quad patch is fitted in into the three-dimensional building model.In the present embodiment, the tile map is bonded submodule 111 It can be used for executing step S111 shown in Fig. 3, before the specific descriptions about tile map fitting submodule 111 are referred to Description of the text to step S111.
The tile map adjusting submodule 113, for adjusting the quad patch according to the three-dimensional building model Size so that the building in an at least tile map is overlapped with the three-dimensional building model.In the present embodiment, The tile map adjusting submodule 113 can be used for executing step S113 shown in Fig. 3, adjust submodule about the tile map The specific descriptions of block 113 are referred to the description to step S113 above.
In conjunction with Figure 11, in the present embodiment, it may include three-dimensional point projection submodule that the pixel, which obtains module 130, 131 and pixel acquisition submodule 133.
The three-dimensional point projects submodule 131, for being directed to each of three-dimensional building model three-dimensional point, to this Three-dimensional point carries out projection process along the direction perpendicular to the tile map.In the present embodiment, the three-dimensional point projects submodule Block 131 can be used for executing step S131 shown in fig. 6, and the specific descriptions about three-dimensional point projection submodule 131 can join According to the description above to step S131.
The pixel acquisition submodule 133 is sat for obtaining projected position of the three-dimensional point in the tile map Mark, and corresponding pixel is obtained according to the projected position coordinate.In the present embodiment, the pixel acquisition submodule 133 It can be used for executing step S133 shown in fig. 6, the specific descriptions about the pixel acquisition submodule 133 are referred to above Description to step S133.
In conjunction with Figure 12, in the present embodiment, the latitude and longitude coordinates computing module 150 may include that pixel coordinate calculates son Module 151 and latitude and longitude coordinates computational submodule 153.
The pixel coordinate computational submodule 151, for the position coordinates according to the pixel in affiliated tile map The pixel coordinate of the pixel is calculated with the latitude and longitude coordinates of affiliated tile map.In the present embodiment, the pixel is sat Mark computational submodule 151 can be used for executing step S151 shown in Fig. 7, the tool about the pixel coordinate computational submodule 151 Body description is referred to the description to step S151 above.
The latitude and longitude coordinates computational submodule 153, for being calculated pair according to the pixel coordinate according to preset rules Answer the latitude and longitude coordinates of three-dimensional point.In the present embodiment, the latitude and longitude coordinates computational submodule 153 can be used for executing Fig. 7 institute The step S153 shown, the specific descriptions about the latitude and longitude coordinates computational submodule 153 are referred to above to step S153 Description.
The embodiment of the present invention also provides a kind of computer-readable storage media, is stored thereon with computer program, the program The step of realizing above-mentioned coordinate scaling method when being executed by processor 14.
In conclusion a kind of coordinate scaling method, device and terminal device 10 provided by the invention, are built by obtaining three-dimensional Model corresponding tile map in satellite map is built, and three-dimensional building mould is calculated according to the latitude and longitude coordinates of tile map The latitude and longitude coordinates of each three-dimensional point in type to realize the purpose of the latitude and longitude coordinates calibration to three-dimensional building model, and then improve There are narrow scope of application due to can not be suitable for modeling the three-dimensional building model formed manually for existing coordinate scaling method Problem greatly improves the scope of application of coordinate scaling method, device and terminal device 10.Secondly, by by tile map Quad patch is fitted in, and is adjusted according to size of the three-dimensional building model to quad patch, so that in tile map Building be overlapped with three-dimensional building model, it is ensured that the three-dimensional building mould being calculated by the latitude and longitude coordinates of tile map The latitude and longitude coordinates of each three-dimensional point accuracy with higher in type, effectively improves the reliability of coordinate scaling method.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, electronic equipment or network equipment etc.) execute all or part of step of each embodiment the method for the present invention Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk. It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of coordinate scaling method, which is characterized in that the described method includes:
Obtain three-dimensional building model corresponding at least tile map in satellite map, and will at least tile Figure fits in the three-dimensional building model, so that in the three-dimensional point in the threedimensional model and an at least tile map Pixel is corresponding, wherein the three-dimensional building model includes multiple three-dimensional points, and each tile map includes multiple pixels;
For each of three-dimensional building model three-dimensional point, the three-dimensional point is obtained in the tile map Jing Guo laminating process In corresponding pixel;
It is calculated according to the latitude and longitude coordinates of position coordinates of the pixel in affiliated tile map and affiliated tile map The latitude and longitude coordinates of corresponding three-dimensional points.
2. coordinate scaling method according to claim 1, which is characterized in that fit in an at least tile map The step of three-dimensional building model includes:
An at least tile map is fitted in into quad patch, and the quad patch is fitted in into the three-dimensional building Model;
The size of the quad patch is adjusted according to the three-dimensional building model, so that in an at least tile map Building is overlapped with the three-dimensional building model.
3. coordinate scaling method according to claim 2, which is characterized in that if three-dimensional building model is right in satellite map The tile map answered is multiple, an at least tile map is fitted in quad patch, and the quad patch is pasted Include: together in the step of three-dimensional building model
Multiple described tile maps are fitted in into multiple quad patch respectively;
The multiple quad patch is spliced according to the positional relationship respectively built in the three-dimensional building model;
Spliced quad patch is fitted in into the three-dimensional building model.
4. coordinate scaling method according to claim 3, which is characterized in that respectively built according in the three-dimensional building model Positional relationship the step of being spliced the multiple quad patch include:
Determine that a quad patch divides as benchmark dough sheet, and according to the positional relationship respectively built in the three-dimensional building model Adjacent quadrangular dough sheet of the benchmark dough sheet on longitude and latitude both direction is not determined;
According to the length of the benchmark dough sheet, the position coordinates of width and each vertex, calculate separately to obtain the benchmark dough sheet in longitude With the position coordinates on each vertex of the adjacent quadrangular dough sheet in latitude both direction;
Corresponding quad patch and the benchmark dough sheet are spliced according to the position coordinates on each vertex being calculated.
5. coordinate scaling method according to any one of claims 1-4, which is characterized in that be directed to the three-dimensional building mould Each of type three-dimensional point obtains three-dimensional point packet the step of corresponding pixel in the tile map Jing Guo laminating process It includes:
For each of three-dimensional building model three-dimensional point, to the three-dimensional point along the direction perpendicular to the tile map Carry out projection process;
Projected position coordinate of the three-dimensional point in the tile map is obtained, and is obtained according to the projected position coordinate corresponding Pixel.
6. coordinate scaling method according to any one of claims 1-4, which is characterized in that according to the pixel affiliated The latitude and longitude coordinates of corresponding three-dimensional points are calculated in the latitude and longitude coordinates of position coordinates and affiliated tile map in tile map The step of include:
It is calculated according to the latitude and longitude coordinates of position coordinates of the pixel in affiliated tile map and affiliated tile map The pixel coordinate of the pixel;
The latitude and longitude coordinates of corresponding three-dimensional points are calculated according to preset rules according to the pixel coordinate.
7. coordinate scaling method according to claim 6, which is characterized in that according to the pixel in affiliated tile map Position coordinates and the latitude and longitude coordinates of the affiliated tile map the step of pixel coordinate of the pixel is calculated include:
It is sat according to the position of position coordinates of the pixel in affiliated tile map and the reference image vegetarian refreshments of affiliated tile map Pixel-shift amount of the pixel in affiliated tile map is calculated in mark;
The pixel of the pixel is calculated according to the latitude and longitude coordinates of the pixel-shift amount of the pixel and affiliated tile map Coordinate.
8. a kind of coordinate caliberating device, which is characterized in that described device includes:
Tile map processing module, for obtaining three-dimensional building model corresponding at least tile map in satellite map, And an at least tile map is fitted in into the three-dimensional building model, so that three-dimensional point and institute in the threedimensional model It is corresponding to state pixel in an at least tile map, wherein the three-dimensional building model includes multiple three-dimensional points, and each watt Piece map includes multiple pixels;
Pixel obtains module, for obtaining the three-dimensional point and passing through for each of three-dimensional building model three-dimensional point Cross corresponding pixel in the tile map of laminating process;
Latitude and longitude coordinates computing module, for according to position coordinates of the pixel in affiliated tile map and affiliated tile The latitude and longitude coordinates of corresponding three-dimensional points are calculated in the latitude and longitude coordinates of figure.
9. a kind of terminal device, which is characterized in that including memory, processor and coordinate caliberating device, the coordinate calibration dress Set the software function module for being stored in the memory and being executed by the processor including one or more, wherein described Software function module includes:
Tile map processing module, for obtaining three-dimensional building model corresponding at least tile map in satellite map, And an at least tile map is fitted in into the three-dimensional building model, so that three-dimensional point and institute in the threedimensional model It is corresponding to state pixel in an at least tile map, wherein the three-dimensional building model includes multiple three-dimensional points, and each watt Piece map includes multiple pixels;
Pixel obtains module, for obtaining the three-dimensional point and passing through for each of three-dimensional building model three-dimensional point Cross corresponding pixel in the tile map of laminating process;
Latitude and longitude coordinates computing module, for according to position coordinates of the pixel in affiliated tile map and affiliated tile The latitude and longitude coordinates of corresponding three-dimensional points are calculated in the latitude and longitude coordinates of figure.
10. a kind of computer-readable storage media, is stored thereon with computer program, which is characterized in that the program is by processor The step of claim 1-7 any one the method is realized when execution.
CN201711444798.9A 2017-12-27 2017-12-27 Coordinate calibration method and device and terminal equipment Active CN109978999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711444798.9A CN109978999B (en) 2017-12-27 2017-12-27 Coordinate calibration method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711444798.9A CN109978999B (en) 2017-12-27 2017-12-27 Coordinate calibration method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN109978999A true CN109978999A (en) 2019-07-05
CN109978999B CN109978999B (en) 2023-02-28

Family

ID=67071597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711444798.9A Active CN109978999B (en) 2017-12-27 2017-12-27 Coordinate calibration method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109978999B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157683A (en) * 2021-05-12 2021-07-23 北京冠群信息技术股份有限公司 Positioning and deviation rectifying method and system
CN113577772A (en) * 2021-09-27 2021-11-02 深圳易帆互动科技有限公司 Tile map-based unit moving method and device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130101215A1 (en) * 2011-10-25 2013-04-25 John T. Sample System and method for storing and retrieving tiled image data
CN105354878A (en) * 2014-08-22 2016-02-24 北京协进科技发展有限公司 Electronic map data making method and apparatus
WO2016116045A1 (en) * 2015-01-21 2016-07-28 高德软件有限公司 Method and apparatus for generating digital terrain model data of electronic maps
CN106530218A (en) * 2016-10-28 2017-03-22 浙江宇视科技有限公司 Coordinate conversion method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130101215A1 (en) * 2011-10-25 2013-04-25 John T. Sample System and method for storing and retrieving tiled image data
CN105354878A (en) * 2014-08-22 2016-02-24 北京协进科技发展有限公司 Electronic map data making method and apparatus
WO2016116045A1 (en) * 2015-01-21 2016-07-28 高德软件有限公司 Method and apparatus for generating digital terrain model data of electronic maps
CN106530218A (en) * 2016-10-28 2017-03-22 浙江宇视科技有限公司 Coordinate conversion method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157683A (en) * 2021-05-12 2021-07-23 北京冠群信息技术股份有限公司 Positioning and deviation rectifying method and system
CN113577772A (en) * 2021-09-27 2021-11-02 深圳易帆互动科技有限公司 Tile map-based unit moving method and device and readable storage medium

Also Published As

Publication number Publication date
CN109978999B (en) 2023-02-28

Similar Documents

Publication Publication Date Title
US10872439B2 (en) Method and device for verification
CN107976669B (en) Device for determining external parameters between camera and laser radar
CN107976668B (en) Method for determining external parameters between camera and laser radar
US8437554B2 (en) Method of extracting three-dimensional objects information from a single image without meta information
CN106797456B (en) Projected picture correcting method, means for correcting and robot
CN103875024B (en) Systems and methods for navigating camera
ES2818563T3 (en) Three-dimensional modeling method and apparatus
CN107481321B (en) Three-dimensional model generation method and three-dimensional model generation system
US20130169685A1 (en) Path side image on map overlay
CN109269472B (en) Method and device for extracting characteristic line of oblique photogrammetry building and storage medium
EP3170151A1 (en) Blending between street view and earth view
CN106874982B (en) Self-definition model stereoscopic two-dimensional code generating method and system towards 3D printing
CN105427361B (en) The display methods of moving-target track in a kind of three-dimensional scenic
US10235800B2 (en) Smoothing 3D models of objects to mitigate artifacts
CN110310365A (en) A kind of three-dimensional rebuilding method and device
CN109883444A (en) A kind of attitude angle coupling error compensation method, device and electronic equipment
CN106327576B (en) A kind of City scenarios method for reconstructing and system
CN109978999A (en) Coordinate scaling method, device and terminal device
CN103123263A (en) Method and device for displaying navigation electronic map
CN108733711A (en) Distribution line space length acquisition methods based on three-dimension GIS technology
CN106954054A (en) A kind of image correction method, device and projecting apparatus
CN114387347A (en) Method and device for determining external parameter calibration, electronic equipment and medium
CN109059864A (en) Unmanned plane large scale topographical map house alien invasion mapping method, device and medium
KR20220100813A (en) Automatic driving vehicle registration method and device, electronic equipment and a vehicle
CN113610702B (en) Picture construction method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant