ee.Image.spectralDistance 算法,它可以用于我的研究目的。我想提取图像之间光谱距离较大的年份。所以这个想法是:
1. 在image1-image2, image2-image3, image3-image4...之间连续运行ee.Image.spectralDistance算法,从第一张图片到最后一张。
2.要求更大的价值。
3. 提取年份并使用这些年份值创建栅格。在这里,Sergio 提出的解决方案可能会很有帮助。
函数:
spectralDistance(image2, metric)
Computes the per-pixel spectral distance between two images. If the images are array based then only the first band of each image is used; otherwise all bands are involved in the distance computation. The two images are therefore expected to contain the same number of bands or have the same 1-dimensional array length.
Arguments:
this:image1 (Image):
The first image.
image2 (Image):
The second image.
metric (String, default: "sam"):
The spectral distance metric to use. One of 'sam' (spectral angle mapper), &#