class representing two dimensional grains
Syntax
grains = grain2d(V, poly, ori, CSList, phaseId, phaseMap, 'id', idList)Input
| V | n × 3 list of vertices |
| poly | cell array of the polyhedrons |
| ori | array of mean orientations |
| CSList | cell array of symmetries |
| phaseId | list of phaseId for each grain |
| phaseMap | |
| idList | option to provide grain ids |
Class Properties
| phaseId | phase identifier of each grain |
| id | id of each grain |
| poly | cell list of the vertex ids of each grain (index to V) |
| V | list of vertices (x,y coordinates) |
| boundary | grainBoundary |
| innerBoundary | grainBoundary |
| triplePoints | triplePoints |
| numPixel | number if pixels belonging to the grain |
| GOS | grain orientation spread |
| meanOrientation | average grain orientation (only single phase) |
Example
V = [0 0; 1 0; 2 0; 0 1; 1 1; 2 1];
poly = {[1 2 5 4 1];[2 3 6 5 2]};
rot = rotation.rand(2,1);
grains = grain2d(V,poly,rot,crystalSymmetry.load('quartz'))
plot(grains,grains.meanOrientation)grains = grain2d (y↓→x)
Phase Grains Pixels Mineral Symmetry Color
1 2 2 Quartz 321
boundary segments: 7 (7 µm)
inner boundary segments: 0 (0 µm)
triple points: 0
Id Phase Pixels meanRotation
1 1 1 (157°,84.3°,151.3°)
2 1 1 (9.3°,97.4°,118.9°)
See also
GrainReconstruction GrainSpatialPlots SelectingGrains ShapeParameter
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/grain2d.grain2d.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.