CN106846472B - Method and device for generating image map based on panoramic map - Google Patents

Method and device for generating image map based on panoramic map Download PDF

Info

Publication number
CN106846472B
CN106846472B CN201611100302.1A CN201611100302A CN106846472B CN 106846472 B CN106846472 B CN 106846472B CN 201611100302 A CN201611100302 A CN 201611100302A CN 106846472 B CN106846472 B CN 106846472B
Authority
CN
China
Prior art keywords
map
point
panoramic
image
drawing point
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.)
Active
Application number
CN201611100302.1A
Other languages
Chinese (zh)
Other versions
CN106846472A (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 CN201611100302.1A priority Critical patent/CN106846472B/en
Publication of CN106846472A publication Critical patent/CN106846472A/en
Application granted granted Critical
Publication of CN106846472B publication Critical patent/CN106846472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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)
  • Image Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method and a device for generating an image map based on a panoramic map, which are characterized in that according to the angle of a drawing point in the image map relative to a central point and the width of the panoramic map, the abscissa of a pixel point in the panoramic map corresponding to the drawing point is calculated, according to the proportional value of the abscissa and the ordinate of the drawing point in the image map and the height of the panoramic map, the ordinate of the pixel point in the panoramic map corresponding to the drawing point is calculated, and then the pixel value of the pixel point corresponding to the calculated drawing point in the panoramic map is used as the pixel value of the drawing point in the image map, so that the image map corresponding to the panoramic map is drawn. The invention draws the image map through the panoramic map, has low cost and is convenient and quick.

Description

Method and device for generating image map based on panoramic map
Technical Field
The invention belongs to the field of video monitoring map manufacturing, and particularly relates to a method and a device for generating an image map based on a panoramic map.
Background
In the command and scheduling business of the safe city project and the public security, the map occupies an important position, the application of the two-dimensional map is mature at present, and the two-dimensional map plays an important role in the command and scheduling field of the public security, such as PGIS map, heaven map and the like. The two-dimensional map can be in the condition of the whole city of very good assurance globally, and the user uses very conveniently, but the two-dimensional map also has the problem that can't reflect the earth's surface situation clearly, and in some places that the topography is complicated changeable, height and fall are big, can't accurately reflect the geographical situation in this place through the two-dimensional map.
The image map is a map with ground remote sensing image, and is a map which directly reflects geographical features and spatial distribution of a drawing object by using aerial picture or satellite remote sensing image through geometric correction, projection transformation and scale normalization and applying certain map symbols and notes. Compared with a common two-dimensional map, the image map has the characteristics of vividness: the method is characterized in that the geographical appearance of an area is expressed by abundant image details, and compared with a common two-dimensional map, the method is rich in information quantity, real, visual, vivid and rich in expressive force; and secondly, the simple line marks and the marks are used for representing the ground features of which the images cannot be displayed or need to be calculated, so that the defect that the ground features are represented by the images only is overcome.
The image map can clearly reflect the situation of a site in actual application, so the application value is huge, and in the prior art, the image map is generated by directly shooting by using an airplane or a satellite, but due to the high acquisition cost, a user cannot conveniently acquire a required image map.
Disclosure of Invention
The invention aims to provide a method and a device for generating an image map based on a panoramic map.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a method for generating a video map based on a panoramic map comprises the following steps:
calculating the abscissa of a pixel point in the panoramic map corresponding to the drawing point according to the angle of the drawing point in the image map relative to the central point and the width of the panoramic map;
calculating the vertical coordinate of a corresponding pixel point of a drawing point in the panoramic map according to the horizontal coordinate and the vertical coordinate of the drawing point in the image map, the proportion value of the horizontal coordinate and the vertical coordinate in the image map, and the height of the panoramic map;
and taking the pixel value of the pixel point corresponding to the calculated drawing point in the panoramic map as the pixel value of the drawing point in the image map.
Further, according to the angle of the drawing point in the image map relative to the central point and the width of the panoramic map, calculating the abscissa of the pixel point corresponding to the drawing point in the panoramic map, wherein the calculation formula is as follows:
Figure GDA0002370020660000021
wherein, x is the abscissa of the pixel point corresponding to the drawing point in the panoramic map, theta is the angle of the drawing point in the image map relative to the central point, and sourcewidth is the width of the panoramic map.
Further, the vertical coordinate of the pixel point in the panoramic map corresponding to the drawing point is calculated according to the proportional value of the horizontal coordinate and the vertical coordinate of the drawing point in the image map and the height of the panoramic map, and the calculation formula is as follows:
Figure GDA0002370020660000022
wherein y is the ordinate of the pixel point corresponding to the drawing point in the panoramic map, xratio is the proportional value of the abscissa of the drawing point in the image map, aratio is the proportional value of the ordinate of the drawing point in the image map, sourceheight is the height of the panoramic map, and α is a parameter.
Further, the vertical coordinate of the pixel point in the panoramic map corresponding to the drawing point is calculated according to the proportional value of the horizontal coordinate and the vertical coordinate of the drawing point in the image map and the height of the panoramic map, and the calculation formula is as follows:
Figure GDA0002370020660000031
wherein the content of the first and second substances,
Figure GDA0002370020660000032
pi is the circumference ratio, h is the corresponding height of the shot point of the panoramic map in the image map, dis is the distance from the drawing point to the central point of the image map, and sourceheight is the height of the panoramic map.
Furthermore, the central point of the image map is the projection of the panoramic map shooting point on the image map.
The invention also provides a device for generating the image map based on the panoramic map, which comprises the following steps:
the horizontal coordinate calculation module is used for calculating the horizontal coordinate of the pixel point in the panoramic map corresponding to the drawing point according to the angle of the drawing point in the image map relative to the central point and the width of the panoramic map;
the vertical coordinate calculation module is used for calculating the vertical coordinate of a corresponding pixel point of a drawing point in the panoramic map according to the horizontal coordinate and the vertical coordinate of the drawing point in the image map, the proportional value of the vertical coordinate in the image map and the height of the panoramic map;
and the conversion module is used for taking the calculated pixel value of the pixel point corresponding to the drawing point in the panoramic map as the pixel value of the drawing point in the image map.
Further, the abscissa calculating module calculates the abscissa of a pixel point corresponding to a drawing point in the panoramic map according to an angle of the drawing point in the image map relative to the central point and the width of the panoramic map, and the calculation formula is as follows:
Figure GDA0002370020660000033
wherein, x is the abscissa of the pixel point corresponding to the drawing point in the panoramic map, theta is the angle of the drawing point in the image map relative to the central point, and sourcewidth is the width of the panoramic map.
Further, the ordinate calculating module calculates the ordinate of the pixel point in the panoramic map corresponding to the drawing point according to the abscissa and the proportional value of the ordinate in the image map, and the height of the panoramic map, and the calculation formula is as follows:
Figure GDA0002370020660000041
wherein y is the ordinate of the pixel point corresponding to the drawing point in the panoramic map, xratio is the proportional value of the abscissa of the drawing point in the image map, aratio is the proportional value of the ordinate of the drawing point in the image map, sourceheight is the height of the panoramic map, and α is a parameter.
Further, the ordinate calculating module calculates the ordinate of the pixel point in the panoramic map corresponding to the drawing point according to the abscissa and the proportional value of the ordinate in the image map, and the height of the panoramic map, and the calculation formula is as follows:
Figure GDA0002370020660000042
wherein the content of the first and second substances,
Figure GDA0002370020660000043
pi is the circumference ratio, h is the corresponding height of the shot point of the panoramic map in the image map, dis is the distance from the drawing point to the central point of the image map, and sourceheight is the height of the panoramic map.
Furthermore, the central point of the image map is the projection of the panoramic map shooting point on the image map.
The invention provides a method and a device for generating an image map based on a panoramic map, which are characterized in that according to the characteristics of the panoramic map, the abscissa of a pixel point corresponding to a drawing point in the image map in the panoramic map is calculated through a linear function, the ordinate of a pixel point corresponding to the drawing point in the image map in the panoramic map is calculated through a longitude and latitude direct projection method, the corresponding relation between the drawing point in the image map and the pixel point in the panoramic map is obtained, the pixel value of the pixel point corresponding to the drawing point in the panoramic map is used as the pixel value of the drawing point in the image map, all the drawing points are drawn in the image map, and the image map corresponding to the panoramic map is generated. The invention draws the image map through the panoramic map, has low cost and is convenient and quick.
Drawings
Fig. 1 is a data source picture of the panoramic map of the embodiment;
FIG. 2 is a flow chart of a method for generating an image map based on a panoramic map according to the present invention;
fig. 3 is a schematic diagram illustrating an included angle θ between a connection line between the drawing point P and the center point O of the image map and a horizontal axis in the embodiment;
FIG. 4 is a diagram of an image map generated by a linear function calculation method according to the present embodiment;
fig. 5 is a schematic diagram illustrating an included angle θ' between a connection line between the viewpoint K and the rendering point P and a connection line between the viewpoint K and the center point O of the image map calculated in this embodiment;
fig. 6 is an image map generated by the longitude and latitude direct projection method according to the embodiment;
fig. 7 is a schematic structural diagram of an apparatus for generating a video map based on a panoramic map according to the present invention.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the drawings and examples, which should not be construed as limiting the present invention.
The panoramic map is a map technology which is recently developed, and the technology is mainly that an unmanned aerial vehicle carries a camera to rise to a low altitude (generally 100-200 meters) of an area where the panoramic map needs to be manufactured, then the unmanned aerial vehicle is suspended in the air and does not move, the camera is controlled to perform 360-degree rotation shooting in a horizontal direction at a set pitching angle, then pictures shot by the camera from different directions are spliced to obtain data source pictures for manufacturing the panoramic map, and finally the data source pictures for manufacturing the panoramic map are rendered and the like to generate the panoramic map after post-manufacturing. Unmanned aerial vehicle is lower for satellite or aircraft cost to convenient to use, consequently it is lower to shoot the preparation panorama map cost, convenient and fast through unmanned aerial vehicle to the not little region of scope.
In the present embodiment, a video map is generated from a data source picture for creating a panoramic map, and as shown in fig. 1, the data source picture for creating a panoramic map in the present embodiment has a distorted view angle, that is, an object with the same size forms a larger image at the lower part of the picture and a smaller image at the upper part of the picture. The picture has the following characteristics: the bottom image is closest to the viewpoint (where the camera is located, the shooting point), the top image is farthest from the viewpoint, 50% of the vertical direction of the images is the horizon (also the horizon), the sky is above the horizon, and the ground is below the horizon.
The picture also features a segmentation of the image in the vertical axis, the pixels on each axis being exactly the set of all pixels of the viewpoint oriented at an angle.
Based on the above features of the data source picture for making the panoramic map, it can be concluded that if the projection of the viewpoint on the image map is taken as the center of the image map, and the pixels on each longitudinal axis are uniformly laid on the image map according to the angle represented by each longitudinal axis in the panoramic map, the image map of the panoramic map facing to the bottom can be obtained.
In this embodiment, a method for generating a video map based on a panoramic map, as shown in fig. 2, includes:
and step S1, calculating the abscissa of the pixel point corresponding to the drawing point in the panoramic map according to the angle of the drawing point in the image map relative to the central point and the width of the panoramic map.
In this embodiment, according to coordinates of a drawing point in a video map, an abscissa and an ordinate of a pixel point corresponding to the drawing point in the panoramic map are calculated through a linear function, so as to obtain a pixel point corresponding to the drawing point in the video map in the panoramic map, and then a pixel value of the pixel point corresponding to the drawing point in the panoramic map is used as a pixel value of the drawing point in the video map, so as to generate the video map.
First, according to the coordinates of a drawing point in the video map, the abscissa of a pixel point corresponding to the drawing point in the panoramic map is calculated. As shown in fig. 3, the point O is a center point of the video map, X is a horizontal axis direction of the video map, Y is a vertical axis direction of the video map, an abscissa of the drawing point P is i, a vertical axis is j (i.e., the drawing point P is an i-th pixel point in the horizontal axis direction and a j-th pixel point in the vertical axis direction in the video map), and an angle between a connection line between the drawing point P and the center point O of the video map and the horizontal axis is θ. According to the coordinate of the drawing point P, the proportion value of the drawing point P in the image map can be calculated as follows:
xratio=i/width
yratio=j/height
where, xratio is a ratio of the drawing point P in the horizontal axis direction of the video map, yratio is a ratio of the drawing point P in the vertical axis direction of the video map, width is a width of the video map (i.e. a total number of pixels in the horizontal axis direction of the video map), and height is a height of the video map (i.e. a total number of pixels in the vertical axis direction of the video map).
It should be noted that, in this embodiment, it is assumed that the width and the height of the video map are consistent, and when the width and the height of the video map are not consistent, the proportional value formula of the drawing point P in the video map may be calculated based on one of the height and the width of the video map, for example:
xratio=i/width
yratio=j/width
the calculation is performed based on one of the height and the width of the image map, which does not affect the technical effect of the technical solution and is not described herein again.
As shown in fig. 3, the position relationship between the drawing point P and the central point O of the image map can be determined according to the calculated proportional value of the drawing point P in the image map, so that the included angle θ between the horizontal axis and the connecting line between the drawing point P and the central point O of the image map is calculated. The specific calculation method is as follows:
if xratio is greater than 0.5 and yratio is greater than 0.5, then:
Figure GDA0002370020660000071
if xratio is less than 0.5 and yratio is greater than 0.5, then:
Figure GDA0002370020660000072
if xratio is less than 0.5 and yratio is less than 0.5, then:
Figure GDA0002370020660000073
if xratio is greater than 0.5 and yratio is less than 0.5, then:
Figure GDA0002370020660000074
according to the characteristics of the panoramic map, the embodiment obtains the drawing point when the pixel point on the leftmost longitudinal axis a of the panoramic map corresponds to 0 ° in the image map, and the pixel point on the rightmost longitudinal axis c of the panoramic map corresponds to the drawing point when θ equals 360 ° in the image map, so that the abscissa of the pixel point corresponding to the drawing point in the panoramic map obtained through the linear relationship is:
Figure GDA0002370020660000081
wherein, sourcewidth is the width of the panoramic map, that is, the total number of pixels of the panoramic map in the horizontal axis direction.
By the method, according to the angle of the drawing point in the image map relative to the central point and the width of the panoramic map, the abscissa of the pixel point corresponding to the drawing point in the panoramic map is calculated.
And step S2, calculating the vertical coordinate of the pixel point in the panoramic map corresponding to the drawing point according to the ratio of the horizontal coordinate and the vertical coordinate of the drawing point in the image map and the height of the panoramic map.
Firstly, calculating the distance from a drawing point to the center of the image map according to the coordinates of the drawing point in the image map:
Figure GDA0002370020660000082
wherein xratio is a scale value of the drawing point P in the horizontal axis direction of the video map, and yratio is a scale value of the drawing point P in the vertical axis direction of the video map.
According to the characteristics of the panoramic map, in this embodiment, it is obtained that the pixel point on the bottom horizontal axis d of the panoramic map corresponds to the drawing point in the image map where dis is equal to 0, and the pixel point on the horizontal axis e (i.e. the position where the horizon line is located) in the middle of the panoramic map corresponds to the drawing point in the image map where dis is close to 0.5, so that the vertical coordinate of the pixel point corresponding to the drawing point in the panoramic map obtained through the linear relationship is:
Figure GDA0002370020660000083
wherein sourceheight is the height of the panoramic map, that is, the total number of pixels of the panoramic map in the direction of the longitudinal axis; alpha is a parameter. In this embodiment, different α parameters may generate different stretching effects, and the value thereof is determined according to the required stretching effect, and α is preferably set to 2 in this embodiment.
By the method, the vertical coordinate of the pixel point in the panoramic map corresponding to the drawing point is calculated according to the ratio of the horizontal coordinate and the vertical coordinate of the drawing point in the image map and the height of the panoramic map.
In this embodiment, after the abscissa and the ordinate of the pixel corresponding to the drawing point in the panoramic map are calculated by the linear function, the image map is generated by taking the pixel value of the pixel corresponding to the drawing point in the panoramic map as the pixel value of the drawing point in the image map, as shown in fig. 4, it can be seen from the image that there is a huge difference between the resolutions of the center position (e.g., area a) and the edge position (e.g., area B) of the image, the resolution of the center position is very high, and the resolution of the edge position is very low, the difference in resolution is mainly caused by adopting a linear method when the ordinate of the pixel corresponding to the drawing point in the panoramic map is calculated, so in order to obtain the image map with consistent resolutions of each position, the embodiment further adopts a longitude and latitude direct projection method similar to the projection map to calculate the ordinate of the pixel corresponding to the drawing point in the panoramic map, the specific calculation method is as follows:
as shown in fig. 5, dis is a length from the drawing point P to the central point O of the video map, h represents a corresponding height of the shooting point in the video map, and h can be calculated according to the height of the drone and the definition of the video map.
In an embodiment of the present invention, assuming that 1 pixel is N meters according to the definition (resolution) of the influence map, that is, one pixel represents that the actual distance is N meters, and the width of the effect map is consistent with the height, the specific distance represented by dis is dis width N meters.
Obtaining the included angle between the connecting line between the viewpoint K and the drawing point P and the connecting line between the viewpoint K and the central point O of the image map according to a longitude and latitude direct projection method, wherein the included angle is as follows:
Figure GDA0002370020660000091
wherein Pi is a circumferential ratio,
Figure GDA0002370020660000092
if dis is replaced by the specific distance dis width N meters it represents, then H is the actual height H (meters) of the shot point.
Figure GDA0002370020660000093
In practical application, the height of the unmanned aerial vehicle actually shot, the width of the effect graph and the resolution ratio are set in advance, so that h is a known parameter, and is set to be 0.3 according to actual experience.
Obtaining the vertical coordinates of pixel points corresponding to the drawing points in the panoramic map according to a longitude and latitude direct projection method as follows:
Figure GDA0002370020660000101
wherein sourceheight is the height of the panoramic map.
In this embodiment, the abscissa of the pixel corresponding to the drawing point in the panoramic map is calculated by the above linear method, and the ordinate of the pixel corresponding to the drawing point in the panoramic map is calculated by the longitude and latitude direct projection method, and then the pixel value of the pixel corresponding to the drawing point in the panoramic map is used as the pixel value of the drawing point in the image map to generate the image map, as shown in fig. 6, it can be seen from the figure that the resolution of the image can be maintained stable on the horizontal axis and the vertical axis, and the road does not narrow in a far distance, but still has the same width, for example, the road R in the image. The image map is very similar to an image map generated by aerial photography or satellite remote sensing, and can accurately reflect the geographic characteristics of the corresponding area of the image map.
And step S3, taking the calculated pixel value of the pixel point corresponding to the drawing point in the panoramic map as the pixel value of the drawing point in the image map.
In this embodiment, after calculating the abscissa and the ordinate of the pixel point corresponding to the drawing point in the image map in the panoramic map, the pixel point corresponding to the drawing point in the panoramic map is obtained, and the pixel value of the pixel point corresponding to the drawing point in the panoramic map is used as the pixel value of the drawing point in the image map, so as to draw the drawing point in the image map.
In this embodiment, the pixel point corresponding to each drawing point in the image map in the panoramic map is obtained by the above method, and the pixel value of the pixel point corresponding to each drawing point in the panoramic map is used as the pixel value of the drawing point in the image map, so that all the drawing points are drawn in the image map, and the image map corresponding to the panoramic map is generated.
This embodiment has still provided a device based on panorama map generation image map, includes:
the horizontal coordinate calculation module is used for calculating the horizontal coordinate of the pixel point in the panoramic map corresponding to the drawing point according to the angle of the drawing point in the image map relative to the central point and the width of the panoramic map;
the vertical coordinate calculation module is used for calculating the vertical coordinate of a corresponding pixel point of a drawing point in the panoramic map according to the horizontal coordinate and the vertical coordinate of the drawing point in the image map, the proportional value of the vertical coordinate in the image map and the height of the panoramic map;
and the conversion module is used for taking the calculated pixel value of the pixel point corresponding to the drawing point in the panoramic map as the pixel value of the drawing point in the image map.
The abscissa calculating module of this embodiment calculates the abscissa of a pixel point corresponding to a drawing point in a panoramic map according to an angle of the drawing point in the image map relative to a central point and a width of the panoramic map, and the calculation formula is as follows:
Figure GDA0002370020660000111
wherein, x is the abscissa of the pixel point corresponding to the drawing point in the panoramic map, theta is the angle of the drawing point in the image map relative to the central point, and sourcewidth is the width of the panoramic map.
The ordinate calculating module in this embodiment calculates, according to the abscissa and the scale value of the ordinate in the image map of the drawing point in the image map and the height of the panoramic map, the ordinate of the pixel point in the panoramic map corresponding to the drawing point, and the calculation formula is as follows:
Figure GDA0002370020660000112
wherein y is the ordinate of the pixel point corresponding to the drawing point in the panoramic map, xratio is the proportional value of the abscissa of the drawing point in the image map, aratio is the proportional value of the ordinate of the drawing point in the image map, sourceheight is the height of the panoramic map, and α is a parameter.
The ordinate calculating module in this embodiment calculates, according to the abscissa and the scale value of the ordinate in the image map of the drawing point in the image map and the height of the panoramic map, the ordinate of the pixel point in the panoramic map corresponding to the drawing point, and the calculation formula is as follows:
Figure GDA0002370020660000121
wherein the content of the first and second substances,
Figure GDA0002370020660000122
pi is the circumference ratio, h is the corresponding height of the shot point of the panoramic map in the image map, dis is the distance from the drawing point to the central point of the image map, and sourceheight is the height of the panoramic map.
The center point of the image map in this embodiment is the projection of the panoramic map shooting point on the image map.
The above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and those skilled in the art can make various corresponding changes and modifications according to the present invention without departing from the spirit and the essence of the present invention, but these corresponding changes and modifications should fall within the protection scope of the appended claims.

Claims (4)

1. A method for generating a video map based on a panoramic map is characterized in that the method for generating the video map based on the panoramic map comprises the following steps:
calculating the abscissa of a pixel point in the panoramic map corresponding to a drawing point according to the angle of the drawing point in the image map relative to the central point of the image map and the width of the panoramic map;
calculating the vertical coordinate of a corresponding pixel point of a drawing point in the panoramic map according to the horizontal coordinate and the vertical coordinate of the drawing point in the image map, the proportion value of the horizontal coordinate and the vertical coordinate in the image map, and the height of the panoramic map;
taking the pixel value of the pixel point corresponding to the calculated drawing point in the panoramic map as the pixel value of the drawing point in the image map;
the method comprises the following steps of calculating the abscissa of a pixel point corresponding to a drawing point in a panoramic map according to the angle of the drawing point in the image map relative to the central point of the image map and the width of the panoramic map, wherein the calculation formula is as follows:
Figure FDA0002528133870000011
wherein, x is the abscissa of the pixel point corresponding to the drawing point in the panoramic map, theta is the angle of the drawing point in the image map relative to the central point of the image map, and sourcewidth is the width of the panoramic map;
according to the ratio of the abscissa and the ordinate of the drawing point in the image map and the height of the panoramic map, calculating the ordinate of the pixel point in the panoramic map corresponding to the drawing point, wherein the calculation formula is as follows:
Figure FDA0002528133870000012
wherein y is the ordinate of the pixel point corresponding to the drawing point in the panoramic map, xratio is the proportional value of the abscissa of the drawing point in the image map, yratio is the proportional value of the ordinate of the drawing point in the image map, sourceheight is the height of the panoramic map, and alpha is a parameter;
or, calculating the vertical coordinate of the pixel point in the panoramic map corresponding to the drawing point according to the proportional value of the horizontal coordinate and the vertical coordinate of the drawing point in the image map and the height of the panoramic map, wherein the calculation formula is as follows:
Figure FDA0002528133870000021
wherein the content of the first and second substances,
Figure FDA0002528133870000022
pi is the circumference ratio, h is the corresponding height of the shot point of the panoramic map in the image map, dis is the distance from the drawing point to the central point of the image map, and sourceheight is the height of the panoramic map.
2. The method of claim 1, wherein the center point of the image map is a projection of a shot point of the panoramic map on the image map.
3. An apparatus for generating a video map based on a panoramic map, the apparatus comprising:
the horizontal coordinate calculation module is used for calculating the horizontal coordinate of the pixel point in the panoramic map corresponding to the drawing point according to the angle of the drawing point in the image map relative to the central point and the width of the panoramic map;
the vertical coordinate calculation module is used for calculating the vertical coordinate of a corresponding pixel point of a drawing point in the panoramic map according to the horizontal coordinate and the vertical coordinate of the drawing point in the image map, the proportional value of the vertical coordinate in the image map and the height of the panoramic map;
the conversion module is used for taking the calculated pixel value of the pixel point corresponding to the drawing point in the panoramic map as the pixel value of the drawing point in the image map;
the abscissa calculation module calculates the abscissa of a pixel point corresponding to a drawing point in the panoramic map according to the angle of the drawing point in the image map relative to the central point of the image map and the width of the panoramic map, and the calculation formula is as follows:
Figure FDA0002528133870000023
wherein, x is the abscissa of the pixel point corresponding to the drawing point in the panoramic map, theta is the angle of the drawing point in the image map relative to the central point of the image map, and sourcewidth is the width of the panoramic map;
the vertical coordinate calculation module calculates the vertical coordinate of the pixel point in the panoramic map corresponding to the drawing point according to the horizontal coordinate and the vertical coordinate of the drawing point in the image map, the ratio value of the horizontal coordinate and the vertical coordinate in the image map, and the height of the panoramic map, and the calculation formula is as follows:
Figure FDA0002528133870000031
wherein y is the ordinate of the pixel point corresponding to the drawing point in the panoramic map, xratio is the proportional value of the abscissa of the drawing point in the image map, yratio is the proportional value of the ordinate of the drawing point in the image map, sourceheight is the height of the panoramic map, and alpha is a parameter;
or, the ordinate calculating module calculates the ordinate of the pixel point in the panoramic map corresponding to the drawing point according to the abscissa and the proportional value of the ordinate in the image map, and the height of the panoramic map, and the calculation formula is as follows:
Figure FDA0002528133870000032
wherein the content of the first and second substances,
Figure FDA0002528133870000033
pi is the circumference ratio, h is the corresponding height of the shot point of the panoramic map in the image map, dis is the distance from the drawing point to the central point of the image map, and sourceheight is the height of the panoramic map.
4. The apparatus of claim 3, wherein the center point of the image map is a projection of a shot point of the panoramic map on the image map.
CN201611100302.1A 2016-12-02 2016-12-02 Method and device for generating image map based on panoramic map Active CN106846472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611100302.1A CN106846472B (en) 2016-12-02 2016-12-02 Method and device for generating image map based on panoramic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611100302.1A CN106846472B (en) 2016-12-02 2016-12-02 Method and device for generating image map based on panoramic map

Publications (2)

Publication Number Publication Date
CN106846472A CN106846472A (en) 2017-06-13
CN106846472B true CN106846472B (en) 2020-09-01

Family

ID=59145819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611100302.1A Active CN106846472B (en) 2016-12-02 2016-12-02 Method and device for generating image map based on panoramic map

Country Status (1)

Country Link
CN (1) CN106846472B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110926475B (en) * 2019-12-03 2021-04-27 北京邮电大学 Unmanned aerial vehicle waypoint generation method and device and electronic equipment
CN111815775A (en) * 2020-06-12 2020-10-23 中国船舶重工集团公司第七二四研究所 OpenGL-based three-dimensional background map rapid filling method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573733A (en) * 2014-12-26 2015-04-29 上海交通大学 High-precision map generation system and method based on high-definition ortho-photo map
CN105096252A (en) * 2015-07-29 2015-11-25 广州遥感信息科技有限公司 Manufacturing method of band-shaped omni-directional street scenery image map

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7184609B2 (en) * 2002-06-28 2007-02-27 Microsoft Corp. System and method for head size equalization in 360 degree panoramic images

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573733A (en) * 2014-12-26 2015-04-29 上海交通大学 High-precision map generation system and method based on high-definition ortho-photo map
CN105096252A (en) * 2015-07-29 2015-11-25 广州遥感信息科技有限公司 Manufacturing method of band-shaped omni-directional street scenery image map

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
《A Walkthrough System with Improved Map Projection Panoramas from Omni Directional Images》;Chao Liu等;《2010 7th International Conference on Ubiquitous Intelligence & Computing and 7th International Conference on 》;20101213;第45-51页 *
《全景地图在城市三维建模中的应用》;卢丹丹等;《地理空间信息》;20161031;第14卷(第10期);第56-58页 *
《面向陆地边界场景的三维建模方法研究》;刘帅;《中国博士学位论文全文数据库 信息科技辑》;20111215(第12期);正文第1-98页 *
Andr'e A. Araujo等.《Accurate Location of Fac, ades of Interest in Street View Panoramic Sequences》.《2015 28th SIBGRAPI Conference on Graphics, Patterns and Images》.2015,第281-288页. *

Also Published As

Publication number Publication date
CN106846472A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN110310248B (en) A kind of real-time joining method of unmanned aerial vehicle remote sensing images and system
CN104376118B (en) The outdoor moving augmented reality method of accurate interest point annotation based on panorama sketch
CN104330074B (en) Intelligent surveying and mapping platform and realizing method thereof
CN109872401B (en) Unmanned aerial vehicle video augmented reality implementation method
US11508030B2 (en) Post capture imagery processing and deployment systems
CN103226838A (en) Real-time spatial positioning method for mobile monitoring target in geographical scene
US20160019713A1 (en) Blending between street view and earth view
CN109520500A (en) One kind is based on the matched accurate positioning of terminal shooting image and streetscape library acquisition method
CN105913488B (en) A kind of three-dimensional point cloud fast reconstructing method based on three-dimensional mapping table
CN106971408A (en) A kind of camera marking method based on space-time conversion thought
US20210352210A1 (en) Method and device for generating a panoramic image
CN114004977A (en) Aerial photography data target positioning method and system based on deep learning
CN104463956B (en) Construction method and device for virtual scene of lunar surface
CN106846472B (en) Method and device for generating image map based on panoramic map
CN107679015B (en) Three-dimensional map-based real-time monitoring range simulation method for pan-tilt camera
Pan et al. Virtual-real fusion with dynamic scene from videos
CN116129064A (en) Electronic map generation method, device, equipment and storage medium
CN110189395B (en) Method for realizing dynamic analysis and quantitative design of landscape elevation based on human visual angle oblique photography
KR102389762B1 (en) Space Formation and Recognition System through Digital Twin-linked Augmented Reality Camera and the method thereof
CN103413304A (en) Virtual array synthetic aperture perspective imaging method based on color depth fusion
CN112785678B (en) Sunlight analysis method and system based on three-dimensional simulation
CN116862997A (en) Method, device, equipment and storage medium for calculating and verifying camera calibration
CN114494563B (en) Method and device for fusion display of aerial video on digital earth
Deng et al. Automatic true orthophoto generation based on three-dimensional building model using multiview urban aerial images
CN113012032B (en) Aerial panoramic image display method capable of automatically labeling place names

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