Tag: heightmap

如何将Ciff.ReadEncodedTile从C#中的高度图转换为高程地形矩阵?

我是新手阅读tiff图像,我试图通过使用LibTiff从tiff地图获取高程地形值。 我需要解码的地图是瓷砖组织的。 根据图书馆文档和网络研究,我正在使用的代码片段下面获取这些值: private void getBytes() { int numBytes = bitsPerSample / 8; //Number of bytes depending the tiff map int stride = numBytes * height; byte[] bufferTiff = new byte[stride * height]; // this is the buffer with the tiles data int offset = 0; for (int i = 0; i < tif.NumberOfTiles() – […]