#define _CRT_SECURE_NO_DEPRECATE#include stdioh#include stdlibh#include mathh#define PIXEL_SIZE 50 像素大小#define NO_DATA_VALUE -99990 无效像素值int main FILE fp_dem; const char filename = Dkjfxdemtif
将代码中的偏移量 epsilon 从 0.0001 修改为 0.5,重新运行程序,得到结果:
Fill volume = 162.50 m3 Cut volume = 160.00 m3
代码如下:
原文地址: https://www.cveoy.top/t/topic/fswS 著作权归作者所有。请勿转载和采集!