pybsm.otf.functional.resample_2D
- pybsm.otf.functional.resample_2D(*, img_in: ndarray, dx_in: float, dx_out: float) ndarray
Resample an image.
- Parameters:
img – the input image
dx_in – sample spacing of the input image (radians)
dx_out – sample spacing of the output image (radians)
- Returns:
- img_out:
output image
- Raises:
- IndexError:
if imigin is not a 2D array
- ZeroDivisionError:
if dx_out is 0
- ValueError:
if dx_in is 0