pingwyn.remove_plane
- pingwyn.remove_plane(image, order=1, mask=None)
Remove an n-th order polynomial background from an image
- Parameters:
image (pingwyn.Image) – The image that needs background removal
order (int, optional) – 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
mask (pingwyn.Image, optional) – A mask image. Only non-zero mask values will be considered to compute the background that needs to be removed.
- Returns:
The input image with the background polynomial removed.
- Return type:
See also
pingwyn.align_rowsPerform image row alignment
pingwyn.remove_artefactsPerform image artefact removal