ECPMasterPattern#

class kikuchipy.signals.ECPMasterPattern(*args, **kwargs)[source]#

Bases: KikuchiMasterPattern

Simulated Electron Channeling Pattern (ECP) master pattern.

This class extends HyperSpy’s Signal2D class for ECP master patterns.

See the documentation of Signal2D for the list of inherited attributes and methods.

Parameters:
*args

See Signal2D.

hemispherestr

Which hemisphere the data contains, either "upper", "lower", or "both".

phasePhase

The phase describing the crystal structure used in the master pattern simulation.

projectionstr

Which projection the pattern is in, "stereographic" or "lambert".

**kwargs

See Signal2D.

Attributes

ECPMasterPattern.hemisphere

Return or set which hemisphere(s) the signal contains.

ECPMasterPattern.phase

Return or set the phase describing the crystal structure used in the master pattern simulation.

ECPMasterPattern.projection

Return or set which projection the pattern is in.

Methods

ECPMasterPattern.adaptive_histogram_equalization([...])

Enhance the local contrast using adaptive histogram equalization.

ECPMasterPattern.as_lambert([show_progressbar])

Return a new master pattern in the Lambert projection [Callahan and De Graef, 2013].

ECPMasterPattern.deepcopy()

Return a deep copy using copy.deepcopy().

ECPMasterPattern.normalize_intensity([...])

Normalize image intensities to a mean of zero with a given standard deviation.

ECPMasterPattern.plot_spherical([energy, ...])

Plot the master pattern sphere.

ECPMasterPattern.rescale_intensity([...])

Rescale image intensities.