A method of EBSD.

the derivative of the orientation along the two axes of the plane of the map, per unit length, as a pair of framed vectors; or along a direction of the specimen; MATLAB’s EBSD.gradient

Syntax

gX, gY = gradient(ebsd)

One sided differences.

gX, gY = gradient(ebsd, stencil='lattice') # least squares over the stencil of the lattice
gX, gY = gradient(ebsd, stencil='full')

Least squares with the diagonals.

gD = gradient(ebsd, xvector)

The derivative along a direction of the specimen.

Description

The derivative at a pixel is the rotation vector of the step to its neighbour divided by the step length, a vector of the left tangent space, fitted over several neighbours. Only comparable neighbours count: inside the map, indexed, of the same phase and, where the map carries grain ids, of the same grain. A pixel whose neighbours do not span two directions gets NaN, as does every pixel of a map of a single row.

The stencil chooses the neighbours:

  • ‘oneSided’, the default: the next pixel along each of the two lattice directions, the previous one only where the map ends; NaN where a neighbour inside the map is missing or not comparable.
  • ‘lattice’ (MATLAB’s ‘1hop’): a least squares fit over the axial neighbours, four on a square grid and six on a hexagonal one, the central difference in the interior.
  • ‘full’: a least squares fit over all eight neighbours, which leaves the fewest pixels NaN.

MATLAB returns the derivatives along the lattice directions with the basis as second output; the port returns them along the axes of the plane of the map. A direction off the plane of the map gives NaN.

Input

ebsd EBSD on a lattice, of one phase or several
direction vector3d of the specimen, or three coordinates; without it both axes

Keywords

keyword default description
stencil 'oneSided' ‘oneSided’, ‘lattice’ (‘1hop’) or ‘full’, the neighbours it is taken from

Output

gX, gY vector3d, the derivatives along the two axes of the plane of the map, of the shape of the map
gD vector3d, the derivative along direction

See also

gradientX, gradientY, curvature, calcGND, weightedBurgersVec

MATLAB’s EBSD.gradient

source

Citing this page. This page is part of the documentation of MTEX, a free and open source MATLAB toolbox for analyzing and modeling crystallographic textures. It was written by The MTEX Developers and is published at https://mtex-toolbox.github.io/EBSD.gradient_py.html. If you use MTEX, or reuse text or figures from this page, in your research, please cite

F. Bachmann, R. Hielscher, H. Schaeben: Texture Analysis with MTEX - Free and Open Source Software Toolbox, Solid State Phenomena 160 (2010), 63-68. 10.4028/www.scientific.net/SSP.160.63

BibTeX
@article{bachmann2010mtex,
  author  = {F. Bachmann and R. Hielscher and H. Schaeben},
  title   = {Texture Analysis with MTEX - Free and Open Source Software Toolbox},
  journal = {Solid State Phenomena},
  volume  = {160},
  pages   = {63-68},
  year    = {2010},
  doi     = {10.4028/www.scientific.net/SSP.160.63},
  url     = {https://doi.org/10.4028/www.scientific.net/SSP.160.63}
}

Other papers describing specific MTEX methods are listed under Publications — please cite the one that best fits your application. The MTEX source code is licensed under the GNU General Public License v2.0; the text and figures of this documentation are licensed under CC BY 4.0, which permits reuse — including by automated systems — provided The MTEX Developers and this page are credited.