“放在地图上”在图像处理中使用近似最近邻
我使用python读取一个hdf文件(分层数据格式),其中包含来自卫星的图像数据(名称应该是MODIS)。 python代码能够获取图像的经度、纬度和辐射度。然后使用数据生成图像。
我的老师告诉我目标是将图像放在地图上,我不明白这是什么意思。但她提到要将图像“放置”在地图上,我很可能必须使用“近似最近邻”库(ANN 库)。
将图像“放置”到地图上后,它应该如下所示:
那么这是什么意思将图像“放置”在地图上? 谢谢。
I used python to read a hdf file(Hierarchical Data Format) that contains image data from a satellite(the name should be MODIS). The python code is able to get the longitude, the latitude and radiance of the image. Then use the data to produce an image.
My teacher told me the objective is to put the image on the map, which I don't understand the meaning of this. But she mentioned to "put" the image on the map, I most likely have to use the "Approximated Nearest neighbor" Library ( ANN library).
After the image is "put" on the map, it should look like this:
So what is the meaning of "Put" the image on the map?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这意味着您必须拍摄地图图像并在其顶部显示您的数据(辐射度)。
困难在于地图图像的像素与数据点不对应,因此您必须在地图图像的每个像素处插值数据。最近邻是一种方法。
基本上,您要做的就是对于图像的给定像素,在数据坐标(纬度和经度)中找到它的位置,并找到最接近该点的数据点并保存其辐射度。对每个像素执行此操作,您将获得与地图图像大小相同的图像,您可以将其叠加,如所示的示例图像所示。
I assume it means you have to take an image of a map and display your data (radiance) on top of it.
The difficulty is that the pixels of your map image will not correspond to your data points, so you will have to interpolate your data at each pixel of your map image. Nearest neighbor is one way to do it.
Basically what you have to do is for a given pixel of your image, find its location in the coordinates of your data (latitude and longitude) and find the data point nearest to this point and save its radiance. Do this for each pixel and you obtain an image of the same size as your map image that you can superimpose as in the example image you showed.