Skip to content

Commit f61d9d0

Browse files
committed
update
1 parent 237c23d commit f61d9d0

File tree

2 files changed

+52
-9
lines changed

2 files changed

+52
-9
lines changed
13.5 KB
Loading

pages/function_reference_matlab/grainBoundary.intersect.html

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,65 @@ <h2 id="5">Output</h2>
6464
</table>
6565
</p>
6666
<h2 id="6">Example</h2>
67-
<pre>mtexdata small
68-
grains = calcGrains(ebsd('indexed'))
67+
{% highlight matlab %}
68+
mtexdata small
69+
grains = calcGrains(ebsd('indexed'),'minPixel',3)
6970
grains = smooth(grains,4)
7071
plot(grains.boundary,'micronbar','off')
7172
% define some line
72-
xy1 = [33500,4500]; % staring point
73+
xy1 = [33500,4500]; % starting point
7374
xy2 = [36000,7500]; % end point
7475
line([xy1(1);xy2(1)],[xy1(2);xy2(2)],'linewidth',1.5,'color','g')
7576
[x,y] = grains.boundary.intersect(xy1,xy2);
7677
hold on
77-
scatter(x,y,'red')</pre>
78-
<pre>% find the number of intersection points
79-
sum(~isnan(x))
80-
% mark the intersected boundary segments
81-
plot(grains.boundary(~isnan(x)),'lineColor','b','linewidth',2)
82-
hold off</pre>
78+
scatter(x,y,'red','linewidth',2)
79+
{% endhighlight %}
80+
81+
{% highlight plaintext %}
82+
ebsd = EBSD (y↑→x)
83+
84+
Phase Orientations Mineral Color Symmetry Crystal reference frame
85+
0 1197 (32%) notIndexed
86+
1 1952 (52%) Forsterite LightSkyBlue mmm
87+
2 290 (7.8%) Enstatite DarkSeaGreen mmm
88+
3 282 (7.6%) Diopside Goldenrod 12/m1 X||a*, Y||b*, Z||c
89+
90+
Properties: bands, bc, bs, error, mad
91+
Scan unit : um
92+
X x Y x Z : [33000, 36000] x [4500, 7500] x [0, 0]
93+
Normal vector: (0,0,1)
94+
95+
96+
grains = grain2d (y↑→x)
97+
98+
Phase Grains Pixels Mineral Symmetry Crystal reference frame
99+
1 15 1943 Forsterite mmm
100+
2 3 284 Enstatite mmm
101+
3 6 240 Diopside 12/m1 X||a*, Y||b*, Z||c
102+
103+
boundary segments: 910 (39230 µm)
104+
inner boundary segments: 22 (1101 µm)
105+
triple points: 22
106+
107+
Properties: meanRotation, GOS
108+
109+
110+
grains = grain2d (y↑→x)
111+
112+
Phase Grains Pixels Mineral Symmetry Crystal reference frame
113+
1 15 1943 Forsterite mmm
114+
2 3 284 Enstatite mmm
115+
3 6 240 Diopside 12/m1 X||a*, Y||b*, Z||c
116+
117+
boundary segments: 910 (35820 µm)
118+
inner boundary segments: 22 (901 µm)
119+
triple points: 22
120+
121+
Properties: meanRotation, GOS
122+
{% endhighlight %}
123+
<center>
124+
{% include inline_image.html file="grainBoundary.intersect_01.png" %}
125+
</center>
83126
</div>
84127
</body>
85128
</html>

0 commit comments

Comments
 (0)