The SantaFe example

Simulate a set of pole figures for the SantaFe standard ODF, estimate an ODF and compare it to the inital SantaFe ODF.

Simulate pole figures

CS = crystalSymmetry('m-3m');

% crystal directions
h = [Miller(1,0,0,CS),Miller(1,1,0,CS),Miller(1,1,1,CS),Miller(2,1,1,CS)];

% specimen directions
r = equispacedS2Grid('resolution',5*degree,'antipodal');

% pole figures
pf = calcPoleFigure(SantaFe,h,r);

% add some noise
pf = noisepf(pf,100);

% plot them
plot(pf,'MarkerSize',5)
mtexColorMap LaboTeX

ODF Estimation with Ghost Correction

rec = calcODF(pf)
initialize solver
start iteration
error: 7.2552E-02 2.7957E-02 9.1619E-03 6.8885E-03 6.0744E-03 5.7192E-03 5.5193E-03 5.3866E-03 5.2948E-03 5.2155E-03 5.1545E-03 
Finished PDF-ODF inversion.
error: 5.1545E-03
alpha: 9.9688E+01 9.9603E+01 1.0002E+02 1.0047E+02 
initialize solver
start iteration
error: 3.6188E-01 2.2136E-01 1.2875E-01 6.0527E-02 3.3608E-02 3.0563E-02 2.9920E-02 2.9513E-02 2.9175E-02 2.8888E-02 2.8620E-02 
Finished PDF-ODF inversion.
error: 2.8620E-02
alpha: 9.9723E+01 9.9564E+01 9.9933E+01 1.0055E+02 
 
rec = ODF  
  crystal symmetry : 432
  specimen symmetry: 222
 
  Uniform portion:
    weight: 0.6149
 
  Radially symmetric portion:
    kernel: de la Vallee Poussin, halfwidth 5°
    center: 1227 orientations, resolution: 5°
    weight: 0.3851
 

ODF Estimation without Ghost Correction

rec2 = calcODF(pf,'NoGhostCorrection')
initialize solver
start iteration
error: 7.2552E-02 2.7957E-02 9.1619E-03 6.8885E-03 6.0744E-03 5.7192E-03 5.5193E-03 5.3866E-03 5.2948E-03 5.2155E-03 5.1545E-03 
Finished PDF-ODF inversion.
error: 5.1545E-03
alpha: 9.9688E+01 9.9603E+01 1.0002E+02 1.0047E+02 
 
rec2 = ODF  
  crystal symmetry : 432
  specimen symmetry: 222
 
  Radially symmetric portion:
    kernel: de la Vallee Poussin, halfwidth 5°
    center: 1231 orientations, resolution: 5°
    weight: 1
 

Error analysis

% calculate RP error
calcError(rec,SantaFe)

% difference plot between meassured and recalculated pole figures
plotDiff(pf,rec)
ans =
    0.0374
progress: 100%

Plot estimated pole figures

plotPDF(rec,pf.h,'antipodal')

Plot estimated ODF (Ghost Corrected)

plot(rec,'sections',18,'resolution',5*degree,...
  'contourf','FontSize',10,'silent','figSize','large','minmax')
mtexColorMap white2black

Plot odf

plot(SantaFe,'sections',18,'contourf','FontSize',10,'silent',...
  'figSize','large','minmax')
mtexColorMap white2black

Plot Fourier Coefficients

close all;
% true ODF
plotFourier(SantaFe,'bandwidth',32)
% keep plot for adding the next plots
hold all

% With ghost correction:
plotFourier(rec,'bandwidth',32)

% Without ghost correction:
plotFourier(rec2,'bandwidth',32)

legend({'true ODF','with ghost correction','without ghost correction'})
% next plot command overwrites plot
hold off