A method of grainBoundary.
the segments between the two phases named, in either order, or with one named on either side; MATLAB’s grainBoundary.hasPhase
Syntax
ind = gB.hasPhase('Forsterite')
A Forsterite grain on either side.
ind = gB.hasPhase('Forsterite', 'Enstatite')
Between Forsterite and Enstatite.
ind = gB.hasPhase('indexed')
Between two indexed measurements.
Description
A phase is named by its mineral or its phase id. A not indexed phase includes the rim of the scan, as MATLAB’s hasPhaseId: gB.hasPhase(‘notIndexed’) takes the segments with a not indexed side or with the rim on one, and gB.hasPhase(‘notIndexed’, ‘Forsterite’) the rim of the Forsterite grains too. Without a phase of that name in the list, ‘indexed’ takes the segments between two indexed measurements and ‘notIndexed’ the others. gB[‘Forsterite’] selects by this.
Input
gB |
grainBoundary |
a |
the first phase, a mineral name or a phase id |
Keywords
| keyword | default | description |
|---|---|---|
b |
None |
the second phase; the segments with a on either side when not given |
Output
ind |
a boolean per segment |
See also
grainBoundary.flip, grainBoundary.isTwinning
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/grainBoundary.hasPhase_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.