Skip to content

separating vertical and horizontal grain boundaries #583

Discussion options

You must be logged in to vote

Hi,
so by horizontal and vertical grain boundary segments, you mean some sort of average grain boundary trend, not the direction of the segments, right?
You can smooth grains and decide for some threshold:

mtexdata titanium

grains  =ebsd.calcGrains;
grains = grains.smooth(10);

gbd = grains.boundary.direction;

cond1 = angle(gbd,xvector)<=45*degree;

plot(grains.boundary(cond1),'linecolor','r')
hold on
plot(grains.boundary(~cond1),'linecolor','b')
hold off

Cheers,
Rüdiger

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Saoussen-ouhiba
Comment options

Comment options

You must be logged in to vote
1 reply
@Saoussen-ouhiba
Comment options

Answer selected by Saoussen-ouhiba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants