pingwyn.core.align_rows

Perform Gwyddion-like median row alignment of images.

param image:

The image to row align.

type image:

pingwyn.Image

param mask:

Masking image, only non-zero mask pixels will be used for the image row alignment, by default None

type mask:

pingwyn.Image, optional

param method:

The type of row alignment to perform. Can be “median”, “median_diff” or “westenberg_local”, by default “median”

type method:

str

returns:

The row aligned image.

rtype:

pingwyn.Image

See also

pingwyn.remove_artefacts

Perform image artefact removal

pingwyn.remove_plane

Perform image plane removal / flattening