-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdbs_getvsn.m
More file actions
112 lines (106 loc) · 3.66 KB
/
Copy pathdbs_getvsn.m
File metadata and controls
112 lines (106 loc) · 3.66 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
function version=dbs_getvsn(com, num)
% This function simply exports the version of the current Lead
% distribution. For updates please see lead-dbs.org
% __________________________________________________________________________________
% Copyright (C) 2014 Charite University Medicine Berlin, Movement Disorders Unit
% Andreas Horn
% return version number or string(default)
% if nargin < 2
% num = false;
% end
%
ldir=[dbs_getroot];
switch com
case 'web'
% try
% webopts = weboptions('Timeout',5);
% version = webread('http://www.lead-dbs.org/release/sw_version.txt',webopts);
% catch
% try
% version = urlread('http://www.lead-dbs.org/release/sw_version.txt','Timeout',5);
% catch
version = 'Unknown';
% return
% end
% end
% if num && ~strcmp(version,'Unknown')
%
% version = ea_strjoin(cellfun(@(x) num2str(str2double(x),'%02d'), ea_strsplit(version,'.'),'UniformOutput',0),'');
% if numel(version) == 6
% version = [version, '00'];
% end
% version = str2double(version);
% end
case 'local'
% try
% vfid = fopen([ldir,'.version.txt']);
% version = fgetl(vfid);
% fclose(vfid);
% if num
% version = ea_strjoin(cellfun(@(x) num2str(str2double(x),'%02d'), ea_strsplit(version,'.'),'UniformOutput',0),'');
% if numel(version) == 6
% version = [version, '00'];
% end
% version = str2double(version);
% end
% catch
version='Unknown';
% end
end
% rough version history: (see git repo for details)
%
% vstr='v 1.2';
% added DICOM import
% vstr='v 1.15';
% improved and generalized electrode tip recognition, behaviour and added auto-learning feature.
% vstr='v 1.05';
% added lead_group.
% vstr='v 0.91';
% refined manual correction possibilities.
% vstr='v 0.9';
% added support for group-studies (different colors for each group in
% electrode-renderings, fibers and connected anatomical regions).
% vstr='v 0.85';
% added isovalue rendering possibiliy (the hullmethod can be set in
% ea_prefs).
% vstr='v 0.8';
% changed name to Lead DBS (Localization of Electrodes After DBS-Surgery).
% vstr='v 0.7';
% added possibility to display more than one pair of electrodes.
% vstr='v 0.65';
% added Cg25 support
% vstr='v 0.6';
% added implementation for monopolar VAT-reconstruction following the
% approach of maedler 2012
% vstr='v 0.56';
% added normalization routines after Witt 2013 and Schoenecker 2009 that
% use preoperative images.
% vstr='v 0.55';
% added more accurate wireframe reconstruction algorithm for render view as
% implemented in ea_concavehull. possible to use this by changing ea_prefs
% vstr='v 0.5';
% added CT support
% vstr='v 0.48';
% added normalization routine after Schoenecker 2009
% vstr='v 0.47';
% added GUI and possibility to save each step of
% reconstruction/visualization
% vstr='v 0.46';
% added possibility to visualize fiber connectivities
% vstr='v 0.45';
% added possibility to visualize fibers
% vstr='v 0.4';
% added ability of render view
% vstr='v 0.35';
% added electrode tip templates to largely improve ability for height
% reconstruction
% vstr='v 0.33';
% added possibility to change volume contrasts.
% vstr='v 0.3';
% added ability to export slices, large robustness improvements
% vstr='v 0.25';
% first manual refinement possible
% vstr='v 0.2';
% rewrote whole program based on first experiences
% vstr='v 0.1';
% very raw version of automatic reconstruction of electrodes trajectories