torchbp.ops.multilook module

torchbp.ops.multilook.multilook_polar(sar_img, kernel, grid_polar)[source]

Apply multilook (spatial averaging) to polar SAR image.

Parameters:
  • sar_img (Tensor) – SAR image in polar coordinates.

  • kernel (tuple) – Kernel size (nr, ntheta) for averaging.

  • grid_polar (PolarGrid or dict) –

    Polar grid definition. Can be:

    • PolarGrid object (recommended): PolarGrid(r_range=(r0, r1), theta_range=(theta0, theta1), nr=nr, ntheta=ntheta)

    • dict (legacy): {"r": (r0, r1), "theta": (theta0, theta1), "nr": nr, "ntheta": ntheta}

    where theta represents sin of angle (-1, 1 for 180 degree view)

Returns:

  • sar_img_ml (Tensor) – Multilooked SAR image.

  • grid_out (dict) – Updated grid definition reflecting reduced resolution.

Return type:

tuple[Tensor, dict]