Add virtual backscatter electron image generator #170
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Håkon Wiik Ånes hwaanes@gmail.com
Description
Adds a
VirtualBSEGenerator
, following the workflow in pyxem (https://github.com/pyxem/pyxem/blob/master/pyxem/generators/vdf_generator.py). The generator is initialized with anEBSD
orLazyEBSD
signal, and has methods to get a virtual backscatter electron (BSE) RGB image or a stack of images from a detector grid, (5, 5) default. The grid can also be plotted, and three tiles/regions of interest (ROIs) in the grid can be coloured red, green and blue if desired, to indicate which tiles were used to generate an RGB image.It generates a
VirtualBSEImage
signal object, which is introduced in this PR. This is a thin wrapper around HyperSpy'sSignal2D
. This class has no lazy implementation, which is considered unnecessary for now.Also renames
EBSD.virtual_backscatter_electron_imaging
toEBSD.virtual_bse_imaging
andEBSD.get_virtual_image
toEBSD.get_virtual_bse_image
.Checklist
Minimal example of the bug fix or new feature
For reviewers
later.
__init__.py
.the unreleased section in
doc/changelog.rst
.