PlusLib
2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
PlusDoc
algorithms
TemporalCalibration
MATLAB Testing Files August 5 2012
July_08_2012
AnalysisCode
exploreFolders.m
Go to the documentation of this file.
1
function
[trackerLags, calibrationErrors, maxCalibrationErrors] = exploreFolders(
rootFolder
,
rootCodeFolder
)
2
3
cd(
rootFolder
);
4
CARS_folders
= dir();
5
trackerLags
= [];
6
calibrationErrors
= [];
7
maxCalibrationErrors
= [];
8
9
for
t
= 3 : length(
CARS_folders
)
10
cd(
rootCodeFolder
)
11
if
(isdir([
rootFolder
,
'\'
,
CARS_folders
(
t
).name]))
12
[tempTrackerLags, tempCalibrationErrors, tempMaxCalibrationErrors] = exploreFolders([
rootFolder
,
'\'
,
CARS_folders
(
t
).name],
rootCodeFolder
);
13
trackerLags
= [trackerLags, tempTrackerLags];
14
calibrationErrors
= [calibrationErrors, tempCalibrationErrors];
15
maxCalibrationErrors
= [maxCalibrationErrors, tempMaxCalibrationErrors];
16
else
17
[isValid, trackerLagX, calibrationErrorX, maxCalibrationErrorX] = ReadTrackerLag(
rootFolder
,
rootCodeFolder
);
18
if
(
isValid
)
19
trackerLags
= trackerLagX;
20
calibrationErrors
= calibrationErrorX;
21
maxCalibrationErrors
= maxCalibrationErrorX;
22
end
23
break
24
end
25
end
26
27
calibrationErrors
calibrationErrors
Definition:
exploreFolders.m:6
CARS_folders
CARS_folders
Definition:
exploreFolders.m:4
rootFolder
rootFolder
Definition:
Main_GetTrackerLags.m:1
rootCodeFolder
rootCodeFolder
Definition:
Main_GetTrackerLags.m:2
isValid
isValid
Definition:
ReadTrackerLag.m:6
t
for t
Definition:
exploreFolders.m:9
maxCalibrationErrors
maxCalibrationErrors
Definition:
exploreFolders.m:7
trackerLags
trackerLags
Definition:
exploreFolders.m:5
Generated on Fri Nov 15 2024 01:47:32 for PlusLib by
1.8.15