A method of cellComplex.

the site whose cell covers a point: its nearest site, since a cell is the set of points nearer to its site than to any other, searched over the lattice cells around the point

Syntax

c = decompose(ebsd)

From mtex.maps.decomposition.

s = c.siteAt(q, ij)

The site of the point q near the lattice cell ij.

s = c.siteAt(q, ij, reach=2)

Searched over fewer lattice cells.

Description

The candidates are the sites of the lattice cells within reach of ij in either index; the nearest of them to q is returned, NO_PIXEL when there is none. calcGrains asks this for the corners of a not indexed pixel to find the grain that absorbs it.

Input

c cellComplex
q the point (x, y) in the plane of the map
ij the lattice indices of the cell the point lies in or near

Keywords

keyword default description
reach 5 how many lattice cells either way are searched

Output

s the index of the site, a row of c.siteIJ, or NO_PIXEL

See also

calcGrains

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/cellComplex.siteAt_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.