torchbp.ops.speckle_filter module
- torchbp.ops.speckle_filter.lee_filter(img, wx, wy, cu)[source]
Lee filter for speckle noise reduction.
- Parameters:
img (Tensor) – Complex or real SAR image.
wx (int) – Window size in the first dimension.
wy (int) – Window size in the second dimension.
cu (float) – Coefficient of variance of the noise-free image.
- Returns:
img – Filtered input image.
- Return type:
Tensor