Difference in grain area calculated by Mtex and OIM analysis

72 views
Skip to first unread message

King Peter

unread,
Dec 9, 2019, 1:42:16 AM12/9/19
to MTEX
Dear all
I am trying to calculate the average grain size of my ebsd data. But there is a large difference between the results from Mtex and TSL OIM Analysis. Could you kindly help me?

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

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

%% Specify File Names

% path to files
pname = 'D:\';

% which files to be imported
fname = [pname '\try.osc'];

%% Import the Data

% create an EBSD variable containing the data
ebsd = EBSD.load(fname,CS,'interface','osc',...
  'convertEuler2SpatialReferenceFrame','setting 2');

cs=crystalSymmetry('m-3m'); % for fcc
oM=ipfHSVKey(cs);  % Or: oM=ipfHSVKey(ebsd('Nickel')); 
% oM=ipfTSLKey(cs);% oM=ipfTSLKey(ebsd('Nickel'));% plot(oM)

%setting the inverse pole figure direction
oM.inversePoleFigureDirection=zvector;

% smooth
ebsd=ebsd('indexed'); % this removes all not indexed data
grains=calcGrains(ebsd, 'threshold',15*degree); 
grains=smooth(grains,5); %smooth the grains
plot(ebsd('Nickel'),oM.orientation2color(ebsd('Nickel').orientations), 'micronbar', 'on')

dlmwrite('try.dat',grains.area)

average_grainsize=mean(grains.equivalentRadius*2)

average_grainsize =

    2.1442
}

Thank you
OIM analysis_ags.png
OIM analysis_IPF.png
Mtex_grain area.dat
Mtex_grain area.xlsx
Mtex_IPF.jpg

Rüdiger Kilian

unread,
Dec 9, 2019, 8:23:56 AM12/9/19
to mtex...@googlegroups.com
Hi,
comparing the images you provided, it looks like the segmentation is not identical. It seems you have some more smaller grains in your OIM derived image. The numeric average of grain radii isn't a good representation for the volume/area and very susceptible to the number of tiny grains, hence any sort of filtering.
There might be some other reasons for differing results: In mtex, you decided to compute grains only on an indexed subset, hence all non-existent area -if any-  will be attributed to grain areas. I have no idea how this is handled in OIM, but as far as I can see, your map looks quite complete.
Another very minor alteration of the grain area will also originate from smoothing grains in mtex.

So, unless your grain boundaries do not perfectly agree, I'd be surprised if you'd get identical results.

I hope this help.
Cheers,
Rüdiger

King Peter

unread,
Dec 9, 2019, 7:46:49 PM12/9/19
to mtex...@googlegroups.com
Thank you for your kind reply. It is very helpful.
I calculated the diameter by area fraction method based on the grain
area data from Mtex. The result is 15.3. The OIM diameter is 12.25.

Thank you again.

'Rüdiger Kilian' via MTEX <mtex...@googlegroups.com> 于2019年12月9日周一 下午10:23写道:
> --
> 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 a topic in the Google Groups "MTEX" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/mtexmail/49dA01np4MQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to mtexmail+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mtexmail/CGTRsArpp4jVVIdphytUkAXLQhrNtLNtMRaMiufGZ0ge7rCPtPTC5OG7EKHbKmFB8aa3K88MFjSW9EHA9u7lRt7RfNhL9wedQGL170rKrrs%3D%40protonmail.com.
Mtex_Diameter_area fraction method.png

Rüdiger Kilian

unread,
Dec 10, 2019, 4:06:57 AM12/10/19
to mtex...@googlegroups.com
The difference is for one and the same grain which apparently exactly overlaps?
Cheers,
Rüdiger

King Peter

unread,
Dec 10, 2019, 4:19:58 AM12/10/19
to MTEX
No. The difference is for the average grain size.

I am using the following equation.

average grain size=sum((grain area(i)/total area)*2*(grain area(i)/3.14)^0.5)


在 2019年12月10日星期二 UTC+9下午6:06:57,Rüdiger Kilian写道:

Rüdiger Kilian

unread,
Dec 10, 2019, 4:46:42 AM12/10/19
to mtex...@googlegroups.com
In that case, it's not suprising that you get different results.
Cheers,
Rüdiger

Reply all
Reply to author
Forward
0 new messages