-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappendix.m
77 lines (52 loc) · 1.3 KB
/
appendix.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
% Script file for the Appendix of the publication
%
%% IPF coloring of crystal orientation data
%
% Gert Nolze and Ralf Hielscher
%
%% Appendix A.1
h = linspace(0,1);
s = ones(size(h));
v = ones(size(h));
rgb = reshape(hsv2rgb(h,s,v),1,[],3);
imagesc(rgb), axis off
%saveFigure('hsv_default.png')
%saveFigure('hsv_modified.png')
%% Appendix A.2
cs = crystalSymmetry('1');
oM = ipdfHSVOrientationMapping(cs);
oM.colorPostRotation = rotation('Euler',-pi/2,pi/2,0,'ZYZ');
oM.grayGradient = 1;
oM.grayValue = 0;
plot(oM,'noLabel');
set(gcf,'position',[200 200 230 450])
% saveFigure('../pic/1default.png')
%%
oM.grayGradient = [0.25 0.5];
oM.grayValue = 0;
plot(oM,'noLabel');
set(gcf,'position',[200 200 230 450])
% saveFigure('../pic/1_02.png')
%%
oM.grayGradient = [0.25 0.5];
oM.grayValue = [0.2,0.5];
plot(oM,'noLabel');
set(gcf,'position',[200 200 230 450])
% saveFigure('../pic/1_05_02.png')
%% Appendix B
%
% plot all ipf keys
for id = 1:45
cs = crystalSymmetry('pointid',id);
disp(cs.pointGroup)
oM = ipdfHSVOrientationMapping(cs);
plot(oM,'noTitle','noLabel','innerplotSpacing',5)
hold on
plot(cs)
%hold on
%plot(cs.fundamentalSector,'color','red')
pause
hold off
%saveFigure(['../full/' strrep(cs.pointGroup,'/','_') '.png'])
end
% 2/m11(ok) 121(ok) 112(ok) -3 312 -31m(ok)