prtools.pixelate#
- pixelate(img, oversample=1)[source]#
Apply the aperture effects of an idealized square pixel using the FFT.
- Parameters:
img (array_like) – Input image
oversample (float, optional) – Oversampling factor of
img. Default is 1.
- Returns:
out – Image with pixel sampling effects applied.
- Return type:
ndarray
Notes
To avoid the introduction of numerical artifacts, this function should be performed on data that is at least 2x oversampled.