首页 > 解决方案 > 地理坐标系中的对象投影

问题描述

我想弄清楚如何在图像中粗略地投影带注释对象的地理位置?

设置

给定这些数据点,谁能指出我从图像原点位置粗略投影对象位置的解决方案?

标签: machine-learningcomputer-visiongeospatial

解决方案


The solution is simple if you assume an ellipsoidal surface for the Earth. If you need to use a Digital Terrain Model (DTM) things will get quickly more complicated. For example, your object may be visible in the image but occluded on the DTM because of various sources of error. In the following I assume you work with the ellipsoid.

Briefly, what you need to do is backproject the vertices of the image bounding box, obtaining four vectors (rays) in camera coordinates. You then transform them into Earth-Centered Earth-Fixed (ECEF) coordinates and solve for the intersection of the rays with the WGS-72 (or WGS-84) ellipsoid as explained here.

I recommend using the nvector library to help with this kind of calculations. You didin't specify the language you work with, but there are ports of nvector to many common languages, including Python and Matlab.


推荐阅读