pingwyn.align_rows

pingwyn.align_rows(image, mask=None, method='median')

Perform Gwyddion-like median row alignment of images.

Parameters:
  • image (pingwyn.Image) – The image to row align.

  • mask (pingwyn.Image, optional) – Masking image, only non-zero mask pixels will be used for the image row alignment, by default None

  • method (str) – The type of row alignment to perform. Can be “median”, “median_diff” or “westenberg_local”, by default “median”

Returns:

The row aligned image.

Return type:

pingwyn.Image

See also

pingwyn.remove_artefacts

Perform image artefact removal

pingwyn.remove_plane

Perform image plane removal / flattening