Speckle
汇总
通过移除斑点并消除雷达数据集中的噪声,并在影像中保留边和尖锐要素来创建栅格对象。
讨论
有关此函数工作原理的更多信息,请参阅 斑点 栅格函数。
栅格对象所引用的栅格数据集是临时性的。 要将其设置为永久,可以调用栅格对象的 save 方法。
语法
Speckle(raster, {filter_type}, {filter_size}, {noise_model}, {noise_var}, {additive_noise_mean}, {multiplicative_noise_mean}, {nlooks}, {damp_factor})
| 参数 | 说明 | 数据类型 |
|---|---|---|
|
raster |
The input raster. |
Raster |
|
filter_type |
Specifies the filter type that will be used in the smoothing algorithm to remove speckle noise.
(默认值为 Lee) |
String |
|
filter_size |
Specifies the size of the filter window in pixels.
(默认值为 3x3) |
String |
|
noise_model |
Specifies the type of noise that is reducing the quality of the radar image. This argument is only valid when the
(默认值为 Multiplicative) |
String |
|
noise_var |
The noise variance of the radar image. This argument is only valid when the (默认值为 None) |
Double |
|
additive_noise_mean |
The mean value of additive noise. A larger noise mean value will produce less smoothing, while a smaller value results in more smoothing. This argument is only valid when the (默认值为 None) |
Double |
|
multiplicative_noise_mean |
The mean value of multiplicative noise. A larger noise mean value will produce less smoothing, while a smaller value results in more smoothing. This argument is only valid when the (默认值为 1) |
Double |
|
nlooks |
The number of looks of the image, which controls image smoothing and estimates noise variance. A smaller value results in more smoothing, while a larger value retains more image features. This argument is only valid when the (默认值为 1) |
Integer |
|
damp_factor |
The extent of exponential damping effect on filtering. A larger damping value preserves edges better but smooths less, while a smaller value produces more smoothing. This parameter is only valid when the (默认值为 None) |
Double |
返回值
| 数据类型 | 说明 |
|---|---|
|
Raster |
输出栅格。 |
代码示例
将 Lee 滤镜应用于 Sentinel 1 雷达影像。
import arcpy
out_speckle_raster = arcpy.sa.Speckle("Sentinel_1.tif", filter_type="Lee", filter_size="3x3",
noise_model="AdditiveAndMultiplicative", noise_var=0.25,
additive_noise_mean=0, multiplicative_noise_mean=1)