the spatial decomposition of a map into one cell around every pixel, the cell complex calcGrains builds the grains from; MATLAB’s spatialDecomposition

Syntax

cells = decompose(ebsd)

The cells of the map.

cells = decompose(ebsd, alpha=5)

Wider holes filled.

Description

The cell of a pixel is its Voronoi cell among the lattice neighbours within reach, so a cell of a square or hexagonal grid is its unit cell. The map must lie on a lattice; a map without one is refused.

alpha decides what happens to regions of not indexed pixels. A region narrower than 2 alpha pixel spacings is filled, the cells of its indexed neighbours growing into it. A wider one keeps its pixels as holes, which calcGrains makes a notIndexed grain.

The vertices that the cells of neighbouring pixels compute each for themselves are welded into one when they lie within tol.

Input

ebsd EBSD on a square or hexagonal lattice

Keywords

keyword default description
alpha 3.1 the closing radius in pixel spacings: a not indexed region narrower than 2 alpha is filled and its neighbours grow in, a wider one is kept
tol None the distance within which two vertices are welded into one, by default a hundredth of the pixel spacing
backend None ‘numba’ or ‘numpy’, the loops of the clipping and the welding; by default the preference ‘kernels’

Output

cells cellComplex: the vertices V, the vertex pair F and the site pair of every face, the sites with the pixel each stands for (site2pixel), and the lattice

See also

calcGrains, EBSD.gridify, GrainReconstruction

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/decompose_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.