%% Default template
%% Visualize the Data

plot(ebsd)


%% Calculate an ODF

odf = calcODF(ebsd)

%% Detect grains

%segmentation angle
segAngle = 10*degree;

grains = calcGrains(ebsd,'threshold',segAngle);

%% Orientation of Grains

plot(grains)
