pingwyn.core.remove_plane

Remove an n-th order polynomial background from an image

param image:

The image that needs background removal

type image:

pingwyn.Image

param order:

The order (n) of the polynomial that needs to be removed. A value of 1 will remove a plane, a value of 2 will remove a paraboloid, etc. By default 1

type order:

int, optional

param mask:

A mask image. Only non-zero mask values will be considered to compute the background that needs to be removed.

type mask:

pingwyn.Image, optional

returns:

The input image with the background polynomial removed.

rtype:

pingwyn.Image

See also

pingwyn.align_rows

Perform image row alignment

pingwyn.remove_artefacts

Perform image artefact removal