DiffractionVectors2D#

class pyxem.signals.DiffractionVectors2D(*args, **kwargs)[source]#

Bases: DiffractionVectors, Signal2D

DiffractionVectors signal with the same number of vectors at each navigation position.

This class can also be used to represent a list of vectors with no navigation axis.

Attributes

Methods

DiffractionVectors2D.filter_detector_edge(...)

Filter the diffraction vectors to accept only those not within a user specified proximity to the detector edge.

DiffractionVectors2D.from_peaks(**kwargs)

Takes a list of peak positions (pixel coordinates) and returns an instance of Diffraction2D

DiffractionVectors2D.get_unique_vectors([...])

Returns diffraction vectors considered unique by: strict comparison, distance comparison with a specified threshold, or by clustering using DBSCAN [1].

DiffractionVectors2D.to_roi([radius, ...])

Convert the diffraction vectors to regions of interest (ROIs) for creating virtual images.

Examples using DiffractionVectors2D#

Clustering Vectors

Clustering Vectors

Glass Symmetry from Vectors

Glass Symmetry from Vectors

Diffraction Vectors to Mask

Diffraction Vectors to Mask

Creating Virtual Images from Vectors

Creating Virtual Images from Vectors

Other Virtual Imaging

Other Virtual Imaging