PinkShnack / TEMUL

Functions for analysis of high resolution electron microscopy and spectroscopy data.
https://temul-toolkit.readthedocs.io
GNU General Public License v3.0
14 stars 11 forks source link

remove local background with get_cell_image #4

Closed PinkShnack closed 5 years ago

PinkShnack commented 5 years ago

Three functions added.

get_cell_image allow you to input an image with sublattice coords and remove some intensity form each atom by choosing reduce_func. The default is reduce_func=np.min. This will remove the local minimum intensity from all intensities around each atom. Essentially local background removal.

remove_image_intensity_in_data_slice calls _remove_image_slice_around_atom which will return a square slice around each atom. Similar to _get_image_slice_around_atom in Atomap. Intended for local background removal, but get_cell_image should be used instead, as it calculates the distance of each pixel from each atom which act as Voronoi cells. Could be useful in future or for investigating intensities around atoms.