目录
fastDistanceTransform(neighborhood, units, metric)
简介
根据海拔高度阈值制作简单的二进制图层
函数
fastDistanceTransform(neighborhood, units, metric)
Returns the distance, as determined by the specified distance metric, to the nearest non-zero valued pixel in the input. The output contains values for all pixels within the given neighborhood size, regardless of the input's mask. Note: the default distance metric returns squared distance.
根据指定的距离度量,返回与输入值中最近的非零值像素的距离。输出包含给定邻域大小内所有像素的值,与输入的掩码无关。注意:默认距离度量返回平方距离。
Arguments:
this:image (Image):
The input image.
neighborhood (