forked from klasma/BaxterAlgorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnn_attempt.m
More file actions
26 lines (23 loc) · 776 Bytes
/
nn_attempt.m
File metadata and controls
26 lines (23 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
aExPaths = "C:\Users\Nguyen Family\Downloads\DIC-C2DH-HeLa1\00_experiment";
aVer = 'bob';
%%% aRegExp?????
% Convert string inupt into a cell array with one cell.
if ~iscell(aExPaths)
aExPaths = {aExPaths};
end
% Find all used image sequences in all experiments.
allSeqDirs = {};
allSeqPaths = {};
for i = 1:length(aExPaths)
seqDirs = GetUseSeq(aExPaths{i});
allSeqDirs = [allSeqDirs; seqDirs(:)]; %#ok<AGROW>
allSeqPaths = [allSeqPaths; strcat(aExPaths{i}, filesep, seqDirs(:))]; %#ok<AGROW>
end
% Run the tracking.
parfor i = 1:length(allSeqPaths)
if ~isempty(regexp(allSeqDirs{i}, aRegExp, 'once')) &&...
~HasVersion(allSeqPaths{i}, aVer)
imData = ImageData(allSeqPaths{i}, 'version', aVer);
SaveTrack(imData)
end
end