0

这是我一段时间以来一直试图解决的问题。我有一个二进制文件,经过处理后,我得到一个二进制 bmp 文件,即像素只有两个值。现在,我有以下 HDR 文件:

ENVI
description = {
PolSARpro File Imported to ENVI}
samples = 2618
lines   = 2757
bands   = 1
header offset = 0
file type = ENVI Standard
data type = 4
interleave = bsq
byte order = 0
map info = {UTM, 1, 1, 399711.555, 2641320.529, 12.500, 12.500, 45, North, WGS-84}
wavelength units = meters
band names = {
SPF_L1.bin }

由 ENVI 和 PolSARPro 生成。我面临的问题是像 ENVI 这样的软件会计算每个像素的纬度和经度值,而我无法在我的程序中找到任何复制相同像素的方法(我使用 C,使用 PolSARPro 的源文件作为基础)。如果有人可以通过解释如何分配位置信息来帮助我,将不胜感激!

PS:从我的角度来看,地图信息 -lists geographic coordinates information in the order of projection name (UTM), reference pixel x location in file coordinates, pixel y, x pixel size, y pixel size, Projection Zone, North or South for UTM only.

4

1 回答 1

1

看起来所有信息都可以做你想做的事。

你有一个像素大小(我想是米)和一个参考。获取特定像素的坐标涉及将参考坐标偏移适当的量(12.5 米乘以像素数)。看起来两个方向都是一样的。

399711.5552641320.529是 UTM 中的东向和北向坐标。(印度钢铁城附近?)

不过,您需要进行另一次转换才能获得纬度/经度。

于 2013-04-08T20:31:47.300 回答