flatten
- xripl.clean.flatten(image, medianDisk=100, gaussSize=100, plots=False, vmin=0, vmax=1)[source]
Produces an approximate image of the background light intensity variations in the image and divides the image by this background to effectively flatten the contrast.
- Parameters
image (numpy.ndarray) – Image whose background brightness variation is to be removed via flattening.
medianDisk (int) – Size of disk used in median filtering to smooth out all structures in image other than background light variations.
gaussSize (int) – Size of Gaussian smoothing used on background image produced by median filtering. This smooths out ridges that appear in the median filtered image.
plots (bool) – Flag for displaying plots of processed images.