Once an EBSD system has been calibrated, it is possible to automatically index the diffraction patterns and calculate the crystal orientation. This is typically accomplished using the following steps:

- The diffraction pattern is transferred from the detector to the EBSD software.
- A Hough transform is used to identify the positions of the Kikuchi bands. The bands are seen as peaks in Hough space.
- Having identified the Kikuchi band positions and from knowing the calibrated geometry, it is possible to calculate the angles between the detected bands.
- The calculated angles are compared with a list of interplanar angles for the analysed structure(s) based on a selected number of reflecting planes (reflectors) in the reference structure.
- The possible solutions are sorted to find the best fit and the orientation matrix is calculated.

This whole process is automatic and takes less than a few milliseconds on modern computers.

### The Hough transform

The Hough transform, which identifies the positions of the Kikuchi bands, converts the image from the EBSD camera into a representation in Hough space, by using the following relation between the points (x, y) in the diffraction pattern and the coordinates (ρ, θ) of the Hough space: ρ = *x cosθ + y sinθ. *A straight line in the image space (x, y) can be characterised by ρ, the perpendicular distance from the line to origin and θ, the angle made with the x-axis, and can be presented by a single point (ρ, θ) in Hough space (Figure 1). The Kikuchi bands appear as bright regions or peaks in Hough space, which are easily detected and used to calculate the original band positions (Figure 2).