Google街景视图中地面像素的高度/高程 [英] Height/Elevation of a pixel from ground in Google Street View

查看:557
本文介绍了Google街景视图中地面像素的高度/高程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找谷歌街景中每个像素的高度。





我知道的几件事情可以计算出来:




  1. 是可以将两者合起来计算ap的实际高度如果我们知道相机的高度,那么这就成为三角函数的一个简单问题。

    tan(角度)=相机高度/深度

    so

    height-above-camera = depth * tan(angle)如果已知摄像机距离地面8英尺,那么我们可以得到像素的实际高度为

      height = 8ft +深度* tan(角度)

    整个计算取决于深度图的质量。

    另一件可以利用的事情是假设深度图中的块结束于地面。然后在图像上运行边缘检测。





    这里我使用了一个在线的 Canny Edge检测,它挑选出右侧块的底部 - 手边。一点触发应该得到高度。



    如果允许交互式使用,比使用图像处理更好,让用户点击对象的底部和顶部物体。知道基点处的点的距离可以计算距离。

    I am looking to find the height of every pixel from ground in the google street view.

    Couple of things I know can be calculated are:

    1. Pitch of a pixel

    2. Depth map of every pixel from camera

      There is a javascript library to fetch depth map too.

    Is it possible to put the two together to calculate actual height of a pixel from ground?

    解决方案

    If we know the height of the camera then this becomes a simple matter of trigonometry.

    tan(angle) = height-above-camera / depth

    so

    height-above-camera = depth * tan(angle)

    If the camera is known to be 8ft above ground then we can get the actual height of a pixel as

    height = 8ft + depth * tan(angle)
    

    The whole calculation depends on the quality of the depth map.

    Another thing you could exploit is assuming the blocks in the depth map end at ground level. Then run an edge detection on the image.

    Here I've used an online Canny Edge detection which is picking out the base of the block on the right-hand side. A bit of trig should get the height.

    Better than using image processing if you allow interactive use, get the user to click on the base of the object and the top of the object. Knowing the pitch of the point at the base allows the distance to be calculated.

    这篇关于Google街景视图中地面像素的高度/高程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆