Hi Ben,
I think this sort of does what you are looking for, though it's looking for pairs of Millers on a grid, I think might be a better solution:
mtexdata titanium
grains = ebsd.calcGrains;
%%
o = ebsd(grains.boundary('t','t').ebsdId).orientations; % orientations along gb
g = Miller(equispacedS2Grid('resolution',3*degree),ebsd('T').CS); % grid of Millers
% minimum angle between all pairs of directions
[mang, id] = min(angle(o(:,1)*g,o(:,2)*g,'antipodal'),[],2);
g(id) %should be the Millers most closely aligned
%%
cK = ipfHSVKey(ebsd('T').CS);
plot(grains.boundary('t','t'),cK.Miller2Color(g(id)),'linewidth',3)
nextAxis
%% for grain meanOrientation
og = grains('id',grains.boundary('t','t').grainId).meanOrientation
[mang, idg] = min(angle(og(:,1)*g,og(:,2)*g,'antipodal'),[],2);
plot(grains.boundary('t','t'),cK.Miller2Color(g(idg)),'linewidth',3)
nextAxis
plot(cK)
So obviously, the result strongly depends on th choice of the grid, but maybe it's a starter.
Cheers,
Rüdiger
________________________________________
From:
mtex...@googlegroups.com <
mtex...@googlegroups.com> on behalf of Ben Schuessler <
schuess...@gmail.com>
Sent: Friday, August 2, 2019 5:02:35 PM
To: MTEX
Subject: Re: {MTEX} Plane matching across grain boundaries
--
If you want to reduce the number of emails you get through this forum login to
https://groups.google.com/forum/?fromgroups=#!forum/mtexmail, click "My membership" and select "Don't send me email updates". You can still get emails on selected topics by staring them.
---
You received this message because you are subscribed to the Google Groups "MTEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
mtexmail+u...@googlegroups.com<mailto:
mtexmail+u...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/mtexmail/f9205c5a-e0aa-4bd8-a2f7-df2f46d7ee5c%40googlegroups.com<
https://groups.google.com/d/msgid/mtexmail/f9205c5a-e0aa-4bd8-a2f7-df2f46d7ee5c%40googlegroups.com?utm_medium=email&utm_source=footer>.