subtract_image

Stoner.Image.imagefuncs.subtract_image(im, background, contrast=16, clip=True, offset=0.5)[source]

Subtract a background image from the ImageArray.

Multiply the contrast by the contrast parameter. If clip is on then clip the intensity after for the maximum allowed data range.