lentil.detector.pixelate

lentil.detector.pixelate(img, oversample)[source]

Convolve an image with the pixel MTF and rescale the result to native sampling

Parameters
  • img (array_like) – Input image

  • oversample (int) – Number of times img is oversampled

Returns

img – Rescaled image with pixel MTF applied

Return type

ndarray

Note

pixelate should only be used if oversample > 2

See also

lentil.detector.pixel

Apply pixel MTF effect without rescaling the result