forked from qutublab/GAIN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextActionString.m
47 lines (41 loc) · 1.6 KB
/
nextActionString.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
function a = nextActionString(s)
switch s
case NIPState.Ready
a = 'Open Image File';
case NIPState.ReadImages
a = 'Segment Nucleus Image';
case NIPState.SegmentedNucleusImageOnce
a = 'Segment Nucleus Image Background';
case NIPState.SegmentedNucleusImageTwice
a = 'Separate Nuclei Via Morphological Opening';
case NIPState.OpenedNucleusMask
a = 'Identify Nucleus Clusters';
case NIPState.IdentifiedNucleusClusters
a = 'Calculate Typical Nucleus Area';
case NIPState.CalculatedNominalMeanNucleusArea
a = 'Calculate Minimum Nucleus Area';
case NIPState.CalculatedMinNucleusArea
a = 'Segment Cell Image';
case NIPState.SegmentedCells
a = 'Isolate Cell Bodies';
case NIPState.SeparatedBodiesFromNeurites
a = 'Segment Neurites in Background';
case NIPState.ResegmentedNeurites
a = 'Resegment Neurite Edges';
case NIPState.ResegmentedNeuriteEdges
a = 'Close Neurite Mask';
case NIPState.ClosedNeuriteMask
a = 'Skeletonize Neurites and Determine Paths';
% case NIPState.SkeltonizedNeurites
% a = 'Create Graph';
%
% case NIPState.CreatedGraph
% a = 'Find Neurite Paths';
% case NIPState.ComputedPaths
% a = 'Save Parameters';
case NIPState.Done
a = 'Quit';
otherwise
error('[nextActionString] Unexpected state: %s', char(s));
end
end