-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewAll.m
63 lines (53 loc) · 1.62 KB
/
viewAll.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
function out = viewAll( sid, rid, region, ebsd, tasklist, varargin )
% Draw all infromation about sample
% Draw all infromation about sample
%
% Syntax
% out = viewAll( sid, rid, region, ebsd, tasklist, varargin )
%
% Output
% out - output data from all task for one sample®ion ({'p1', 10, 'p2', 35})
%
% Input
% sid - sample id: 's01', 's02', 's03', 's04' , 't01'
% rid - region id
% region - region coordinates
% ebsd - EBSD data if 0, try load useing function "[sid '_load']"
% tasklist - list of tasks
%
% Options
% thrd - grain detection threshold in degree
% mgs | mgsum - grain detection minimal grain size (MGS) (in point | in um^2)
% epsd - KOG threshold
%
% History
% 28.10.12 Phases' map drawing, if number of phases > 1.
% 01.12.12 Add description of the function. Add 'tasklist' and
% 'gtasklist'.
% 06.12.12 Add 'epsilon'.
% 28.12.12 Add 'Fit' property.
% 26.04.14 Go to region from part.
% 21.09.14 Markup.
out = {};
% Display sample information
disp([' ' sid '-' rid]);
%% Settings
% Tasks
tasks = {'doMaps', 'doPhases', 'doProps', 'doOR', 'doGrains', 'doSizes', 'doParent'};
func = {@viewMaps, @viewPhases, @viewProps, @viewOR, @viewGrains, @viewSizes, @viewParent};
%% Processing
% load data
if ~isa(ebsd, 'EBSD')
ebsd = eval([sid '_load( varargin{:})']);
end
for i = 1:length(tasks)
task = get_option(tasklist, tasks{i}, 0);
if checkTask( task )
disp(tasks{i});
out1 = func{i}(sid, rid, region, ebsd, extractTask( task ), varargin{:});
varargin = [varargin, out];
out = [out, out1];
end
end
% out0 = out;
end