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