CN112348919A - Method for converting pixel and longitude and latitude in Mocha chart image - Google Patents

Method for converting pixel and longitude and latitude in Mocha chart image Download PDF

Info

Publication number
CN112348919A
CN112348919A CN202011182896.1A CN202011182896A CN112348919A CN 112348919 A CN112348919 A CN 112348919A CN 202011182896 A CN202011182896 A CN 202011182896A CN 112348919 A CN112348919 A CN 112348919A
Authority
CN
China
Prior art keywords
latitude
longitude
chart image
pixels
lambda
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.)
Pending
Application number
CN202011182896.1A
Other languages
Chinese (zh)
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.)
PLA Navy Submarine College
Original Assignee
PLA Navy Submarine College
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 PLA Navy Submarine College filed Critical PLA Navy Submarine College
Priority to CN202011182896.1A priority Critical patent/CN112348919A/en
Publication of CN112348919A publication Critical patent/CN112348919A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Abstract

The invention provides a method for converting pixels and longitude and latitude in a Mocha chart image, which can realize the conversion of the chart image from the pixels to the longitude and latitude and the conversion from the longitude and latitude to the pixels. When the mouse moves on the mercator chart image, the longitude and latitude of the mouse point can be accurately read; when the elements need to be marked at a certain longitude and latitude point, the pixel coordinates of the longitude and latitude point can be accurately positioned on the mercator chart image.

Description

Method for converting pixel and longitude and latitude in Mocha chart image
Technical Field
The invention belongs to the technical field of chart processing, and particularly relates to a method for converting pixels and longitude and latitude in a Mexico card Toho chart image.
Background
The mercator projection chart is one of the most commonly used chart types. The mercator chart obtains the spherical projection of the earth suitable for navigation requirements by an equiangular linear projection method. The mercator chart image has the following characteristics: the warp threads and the weft threads are respectively parallel and vertical to each other; the constant direction line is a straight line on the graph; the latitudes are gradually increased, namely the same latitude variation is more towards the poles, and the longitudinal length on the map is larger. In developing images using the mercaton chart, there are two problems that must be solved. One is the longitude and latitude corresponding to the pixel point of the chart image; and secondly, the corresponding pixel point coordinates of a certain longitude and latitude point in the chart image.
Disclosure of Invention
Technical problem to be solved
The invention provides a method for converting pixels and longitude and latitude in a Mount Mercator chart image, which aims to solve the technical problem of how to convert the pixels and the longitude and latitude of the chart image.
(II) technical scheme
In order to solve the technical problem, the invention provides a method for converting pixels and longitude and latitude in an mercator chart image, which comprises the following steps when the pixels are converted into the longitude and latitude:
s1, determining the longitude and latitude (lambda) of the lower left corner of the chart image11) And longitude and latitude (lambda) of upper right corner22) The data units are degrees;
s2, determining the height H and the width W of the chart image, wherein the data unit is the pixel number;
s3, according to the formula (1), respectively calculating the latitude phi1And phi2Latitude growth rates of MP1 and MP 2:
Figure BDA0002750689580000021
s4, calculating the latitude gradual-growth rate MP of any pixel point in the chart image according to the formula (2), wherein the coordinate of any pixel point is (X, Y):
Figure BDA0002750689580000022
s5, respectively calculating the latitude phi and the longitude lambda of the arbitrary pixel point according to the formulas (3) and (4):
Figure BDA0002750689580000023
Figure BDA0002750689580000024
in addition, the invention also provides a method for converting the pixel and the longitude and latitude in the mercator chart image, and when the conversion is carried out from the longitude and latitude to the pixel, the method comprises the following steps:
s1, determining the longitude and latitude (lambda) of the lower left corner of the chart image11) And longitude and latitude (lambda) of upper right corner22) The data units are degrees;
s2, determining the height H and the width W of the chart image, wherein the data unit is the pixel number;
s3, according to the formula (1), respectively calculating the latitude phi1And phi2Latitude growth rates of MP1 and MP 2;
s4, according to the formula (1), calculating the latitude gradual growth rate MP of the latitude and longitude points to be positioned on the map:
Figure BDA0002750689580000025
s5, respectively calculating the coordinate Y value and the coordinate X value of the longitude and latitude point needing to be positioned in the chart image according to the formulas (5) and (6):
Figure BDA0002750689580000026
Figure BDA0002750689580000027
(III) advantageous effects
The invention provides a method for converting pixels and longitude and latitude in a Mocha chart image, which can realize the conversion of the chart image from the pixels to the longitude and latitude and the conversion from the longitude and latitude to the pixels. When the mouse moves on the mercator chart image, the longitude and latitude of the mouse point can be accurately read; when the elements need to be marked at a certain longitude and latitude point, the pixel coordinates of the longitude and latitude point can be accurately positioned on the mercator chart image.
Detailed Description
In order to make the objects, contents and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be given in conjunction with examples.
The embodiment provides a method for converting pixels and longitude and latitude in an inkcard Toho chart image, which comprises the following steps:
A. conversion from pixels to latitude and longitude:
s1, determining the longitude and latitude (lambda) of the lower left corner of the chart image11) And longitude and latitude (lambda) of upper right corner22) The data units are degrees;
s2, determining the height H and the width W of the chart image, wherein the data unit is the pixel number;
s3, according to the formula (1), respectively calculating the latitude phi1And phi2Latitude growth rates of MP1 and MP 2:
Figure BDA0002750689580000031
s4, calculating the latitude gradual-growth rate MP of any pixel point in the chart image according to the formula (2), wherein the coordinate of any pixel point is (X, Y):
Figure BDA0002750689580000032
s5, respectively calculating the latitude phi and the longitude lambda of the arbitrary pixel point according to the formulas (3) and (4):
Figure BDA0002750689580000033
Figure BDA0002750689580000034
B. conversion from latitude and longitude to pixel:
s1, determining the longitude and latitude (lambda) of the lower left corner of the chart image11) And longitude and latitude (lambda) of upper right corner22) The data units are degrees;
s2, determining the height H and the width W of the chart image, wherein the data unit is the pixel number;
s3, according to the formula (1), respectively calculating the latitude phi1And phi2Latitude growth rates of MP1 and MP 2;
s4, according to the formula (1), calculating the latitude gradual growth rate MP of the latitude and longitude points to be positioned on the map:
s5, respectively calculating the coordinate Y value and the coordinate X value of the longitude and latitude point needing to be positioned in the chart image according to the formulas (5) and (6):
Figure BDA0002750689580000041
Figure BDA0002750689580000042
the above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (2)

1. A method for converting pixels and longitude and latitude in an Mocha chart image is characterized in that when the pixels are converted into the longitude and latitude, the method for converting the pixels comprises the following steps:
s1, determining the longitude and latitude (lambda) of the lower left corner of the chart image11) And longitude and latitude (lambda) of upper right corner22) The data units are degrees;
s2, determining the height H and the width W of the chart image, wherein the data unit is the pixel number;
s3, according to the formula (1), respectively calculating the latitude phi1And phi2The latitude growth rates MP1 and MP2:
Figure FDA0002750689570000011
S4, calculating the latitude gradual-growth rate MP of any pixel point in the chart image according to the formula (2), wherein the coordinate of any pixel point is (X, Y):
Figure FDA0002750689570000012
s5, respectively calculating the latitude phi and the longitude lambda of the arbitrary pixel point according to the formulas (3) and (4):
Figure FDA0002750689570000013
Figure FDA0002750689570000014
2. a method for converting pixels and longitude and latitude in an Mocha chart image is characterized in that when the conversion is carried out from the longitude and latitude to the pixels, the method for converting the pixels comprises the following steps:
s1, determining the longitude and latitude (lambda) of the lower left corner of the chart image11) And longitude and latitude (lambda) of upper right corner22) The data units are degrees;
s2, determining the height H and the width W of the chart image, wherein the data unit is the pixel number;
s3, according to the formula (1), respectively calculating the latitude phi1And phi2Latitude growth rates of MP1 and MP 2;
Figure FDA0002750689570000015
s4, according to the formula (1), calculating the latitude gradual growth rate MP of the latitude and longitude points to be positioned on the map:
s5, respectively calculating the coordinate Y value and the coordinate X value of the longitude and latitude point needing to be positioned in the chart image according to the formulas (5) and (6):
Figure FDA0002750689570000021
Figure FDA0002750689570000022
CN202011182896.1A 2020-10-29 2020-10-29 Method for converting pixel and longitude and latitude in Mocha chart image Pending CN112348919A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011182896.1A CN112348919A (en) 2020-10-29 2020-10-29 Method for converting pixel and longitude and latitude in Mocha chart image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011182896.1A CN112348919A (en) 2020-10-29 2020-10-29 Method for converting pixel and longitude and latitude in Mocha chart image

Publications (1)

Publication Number Publication Date
CN112348919A true CN112348919A (en) 2021-02-09

Family

ID=74355362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011182896.1A Pending CN112348919A (en) 2020-10-29 2020-10-29 Method for converting pixel and longitude and latitude in Mocha chart image

Country Status (1)

Country Link
CN (1) CN112348919A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100303968A1 (en) * 2009-05-28 2010-12-02 Gregory Dean Sunvold Pet Food in the Form of a Coated Kibble
CN105699951A (en) * 2016-03-09 2016-06-22 中国人民解放军镇江船艇学院 DEM data superposition-based marine radar echo simulation method
CN106643729A (en) * 2015-12-22 2017-05-10 中国电子科技集团公司第二十研究所 Method for waypoint division and distance calculation of great circle course line of marine satellite navigation equipment
CN106847068A (en) * 2017-01-22 2017-06-13 腾云天宇科技(北京)有限公司 A kind of map conversion method, device and computing device
CN108776952A (en) * 2018-05-24 2018-11-09 天津大学 Sea chart coordinate conversion method for hydrological meteorological monitoring

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100303968A1 (en) * 2009-05-28 2010-12-02 Gregory Dean Sunvold Pet Food in the Form of a Coated Kibble
CN106643729A (en) * 2015-12-22 2017-05-10 中国电子科技集团公司第二十研究所 Method for waypoint division and distance calculation of great circle course line of marine satellite navigation equipment
CN105699951A (en) * 2016-03-09 2016-06-22 中国人民解放军镇江船艇学院 DEM data superposition-based marine radar echo simulation method
CN106847068A (en) * 2017-01-22 2017-06-13 腾云天宇科技(北京)有限公司 A kind of map conversion method, device and computing device
CN108776952A (en) * 2018-05-24 2018-11-09 天津大学 Sea chart coordinate conversion method for hydrological meteorological monitoring

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
钱立胜: ""谈纬度渐长率"", 《航海技术》 *

Similar Documents

Publication Publication Date Title
US9098229B2 (en) Single image pose estimation of image capture devices
US10798301B2 (en) Panoramic image mapping method
EP1531322A2 (en) Map display apparatus
CN112419189B (en) Gridding satellite image data deviation rectifying method
CN108564652B (en) High-precision three-dimensional reconstruction method, system and equipment for efficiently utilizing memory
CN113792730B (en) Method and device for correcting document image, electronic equipment and storage medium
US11694445B2 (en) Obstacle three-dimensional position acquisition method and apparatus for roadside computing device
CN106127691B (en) Panoramic picture mapping method
US9002126B2 (en) Limited error raster compression
CN110017762B (en) Method for monitoring deformation of creep body by using Offset-Tracking technology
JP2010515941A (en) Display altitude information from a digital map
CN103325109B (en) Be applicable to the distortion correction method of the fish eye images of wall-mounted type panoramic camera
CN101957839A (en) Map file format
CN112348919A (en) Method for converting pixel and longitude and latitude in Mocha chart image
CN110728718A (en) Method for improving calibration parameters of camera
JP3218372B2 (en) 3D graphic display method
EP0881598A2 (en) Method for filling a polygon and image processing system
CN114913245B (en) Multi-calibration-block multi-camera calibration method and system based on undirected weighted graph
CN113284211B (en) Method and system for generating orthoimage
CN113592744B (en) Geometric fine correction method suitable for high-resolution remote sensing image
CN109978999A (en) Coordinate scaling method, device and terminal device
CN112836688A (en) Tile image feature extraction method and device, electronic equipment and storage medium
CN108932292B (en) Rapid multi-resolution scheduling display method for large-range remote sensing image
US20030142885A1 (en) Image size reduction method and system
CN112395445A (en) Vector data online calculation method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210209

RJ01 Rejection of invention patent application after publication