效果展示:前者(左)是ENVI5.3计算,后者(右)是本文代码计算
1.运行环境
GDAL 3.4.2,Scikit-image最新版本0.19.3,numpy1.21.5
GDAL主要用于实现图像的读取和保存,Scikit-image和numpy对图像进行各种计算处理。
在调试好之前,由于numpy版本(1.16.6)低的问题,运行提示如下错误,更新为1.21.5版本之后就可以正常运行了,在此记录一下:
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
File "D:/PycharmPro