AttocubeScan.subtract

AttocubeScan.subtract(background)

Subtract a background image (or index) from all images in the stack.

Parameters:

background (int, str or 2D array) – Background image to index

Returns:

(ImageStack) – The modified image stack.

Notes

Method changed for v0.10 to not normalise or clip the data. The background image is scaled by the ratio of the mean pixel values of the unmasked region in the background image.