Check out the Hyperspy Workshop May 13-17, 2024 Online

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

DiffractionVectors2D.has_navigation_axis

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#

Glass Symmetry from Vectors

Glass Symmetry from Vectors

Clustering Vectors

Clustering Vectors

Creating Virtual Images from Vectors

Creating Virtual Images from Vectors

Other Virtual Imaging

Other Virtual Imaging