forked from LungNoodle/pulmonarytoolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PTKUtils.m
45 lines (39 loc) · 1.29 KB
/
PTKUtils.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
classdef (Sealed) PTKUtils < handle
% PTKUtils. A script to update the PTK codebase via git
%
%
%
% Licence
% -------
% Part of the TD Pulmonary Toolkit. https://github.com/tomdoel/pulmonarytoolkit
% Author: Tom Doel, 2015. www.tomdoel.com
% Distributed under the GNU GPL v3 licence. Please see website for details.
%
methods (Static)
function Clear()
close all;
clear all classes;
path(pathdef);
end
function Recompile()
m = PTKMain();
m.Recompile();
end
function RebuildDatabase()
m = PTKMain();
m.RebuildDatabase();
end
function DeleteCacheForAllDatasets()
m = PTKMain();
m.DeleteCacheForAllDatasets();
end
end
methods (Access = private)
function obj = PTKUtils()
disp('PTKUtils contains method to help maintain your PTK');
disp('PTKUtils.RebuildDatabase() will reimport your imaging files and correct problems with the database');
disp('PTKUtils.Recompile() will recompile your mex files');
disp('PTKUtils.Clear() will clear all the memory caches');
end
end
end