apply_transformation#
- pyxem.utils.diffraction.apply_transformation(z, transformation, keep_dtype, order=1, *args, **kwargs)[source]#
Apply a transformation to a 2-dimensional array.
- Parameters:
z (numpy.ndarray) – Array to be transformed
transformation (numpy.ndarray) – 3x3 numpy array specifying the transformation to be applied.
order (int) – Interpolation order.
keep_dtype (bool) – If True dtype of returned object is that of z
*args – To be passed to
skimage.transform.warp()
**kwargs – To be passed to
skimage.transform.warp()
- Returns:
trans – Affine transformed diffraction pattern.
- Return type:
array
Notes
Generally used in combination with
pyxem.expt_utils.convert_affine_to_transform()
See also
pyxem.expt_utils.convert_affine_to_transform