Concurrent High and Low Angle GBs

146 views
Skip to first unread message

Nick Byres

unread,
Feb 20, 2019, 6:56:55 PM2/20/19
to MTEX
Please be as detailed as possible, explain what you want to do, what kind of data you are using. Attaching simplified code and data is always useful. Click the the button { } to inline code and finally remove these lines before posting :)

Hi All,

Firstly I would like to warn you that I am new to Matlab/Mtex or any kind of coding so any advice is much appreciated.

I am trying to fill in the grain and subgrain boundaries on an IPF coloured EBSD map. So far I have manged to include HAGBs above 15 degrees however, I am struggling to superimpose LAGBs between 5 and 15 degres.

The code I have so far is:

%% Specify Crystal and Specimen Symmetries

% crystal symmetry
CS = {... 
  'notIndexed',...
  crystalSymmetry('m-3m', [3.192 3.192 3.192], 'mineral', 'Titanium cubic', 'color', 'light blue')};

% plotting convention
setMTEXpref('xAxisDirection','east');
setMTEXpref('zAxisDirection','outOfPlane');

%% Specify File Names

% path to files
pname = '\\nask.man.ac.uk\home$\Desktop\Mtex_CTFs';

% which files to be imported
fname = [pname '\1030C_30mins_Cleaned.ctf'];

%% Import the Data

% create an EBSD variable containing the data
ebsd = loadEBSD(fname,CS,'interface','ctf',...
  'convertEuler2SpatialReferenceFrame');

%% Plot IPF colours EBSD map
plot(ebsd);
oM = ipfHSVKey(ebsd('Titanium cubic'))
oM.inversePoleFigureDirection = zvector;
color = oM.orientation2color(ebsd('Titanium cubic').orientations);
plot(ebsd('Titanium cubic'),color);
hold on

% Plot HAGBs
[grains,ebsd.grainId] = calcGrains(ebsd('indexed'),'angle',15*degree);
gB = grains.boundary;
plot(gB,'linecolor','k','linewidth',2);

I have tried using innerboundaries but to no avail. IPF map attached.

Currently using mtex 5.1.1. and the file format is CTF.

Thanks for your help,
Nick
EBSD_IPF.bmp

Rüdiger Kilian

unread,
Feb 21, 2019, 4:02:25 AM2/21/19
to mtex...@googlegroups.com
Hi,

if you use a threshold angle of 15 degree, there'll be no boundaries detected below that angle. grains('xy').innerBoundary are simply boundaries which could not be closed - but are still above the anle threshold.
So if you wish to detect boundaries with smaller angles, you also need to do a segmentation with a lower threshold. You can do that separately into a different grain2d variable (and maybe a copy of the ebsd variable to also get grainsId) as well and combine when plotting.

[grains,ebsd.grainId] = ebsd.calcGrains('angle',15*degree);
gb = [grains.boundary('XY','XY') grains('XY').innerBoundary];
%and
ebsd_ll = ebsd;
[grains_l,ebsd_l.grainId]= ebsd.calcGrains('angle',2*degree);
gb_l = [grains_l.boundary('XY','XY') grains_l('XY').innerBoundary];
...

Alternatively, index the boundaries by an angle condition afterwards

[grains,ebsd.grainId]= ebsd.calcGrains('angle',2*degree);
gb = [grains.boundary('XY','XY') grains('XY').innerBoundary];
LAB = gb(gb.misorientation.angle<10*degree);
HAB = gb(gb.misorientation.angle>10*degree)


Hope that helps.
Cheers,
Rüdiger
________________________________________
From: mtex...@googlegroups.com <mtex...@googlegroups.com> on behalf of Nick Byres <nichol...@hotmail.com>
Sent: Wednesday, February 20, 2019 4:38:00 PM
To: MTEX
Subject: {MTEX} Concurrent High and Low Angle GBs
--
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>.
Visit this group at https://groups.google.com/group/mtexmail.
For more options, visit https://groups.google.com/d/optout.

Nick Byres

unread,
Feb 21, 2019, 6:32:37 AM2/21/19
to mtex...@googlegroups.com
Thank you for your help and swift reply!

I will let you know how I get on.

Many thanks,
Nick
You received this message because you are subscribed to a topic in the Google Groups "MTEX" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mtexmail/OqS9OfSiWM0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mtexmail+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages