xrheed.kinematics.ewald_matching

Functions

calculate_match(ewald[, normalize])

Calculate the match coefficient between predicted and observed spots.

generate_mask(ewald)

Generate a mask for predicted spot positions in the image.

generate_spot_structure(spot_w, spot_h)

Generate a binary elliptical spot structure.

match_alpha(ewald, alpha_vector[, ...])

Calculate match coefficients over a range of azimuthal angles.

match_alpha_scale(ewald, alpha_vector, ...)

Calculate the match coefficient for a grid of alpha angles and scale values.

match_scale(ewald, scale_vector[, ...])

Calculate the match coefficient for a series of lattice scale values.

calculate_match(ewald, normalize=True)[source]

Calculate the match coefficient between predicted and observed spots.

generate_mask(ewald)[source]

Generate a mask for predicted spot positions in the image.

Returns:

Boolean mask of the same shape as the RHEED image.

Return type:

NDArray[np.bool_]

generate_spot_structure(spot_w, spot_h)[source]

Generate a binary elliptical spot structure.

match_alpha(ewald, alpha_vector, normalize=True, tqdm_disable=True)[source]

Calculate match coefficients over a range of azimuthal angles.

match_alpha_scale(ewald, alpha_vector, scale_vector, normalize=True, flatten=True, tqdm_disable=True)[source]

Calculate the match coefficient for a grid of alpha angles and scale values.

match_scale(ewald, scale_vector, normalize=True, tqdm_disable=True)[source]

Calculate the match coefficient for a series of lattice scale values.