PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
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();
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
Definition: exploreFolders.m:6
CARS_folders
Definition: exploreFolders.m:4
rootFolder
rootCodeFolder
isValid
Definition: ReadTrackerLag.m:6
for t
Definition: exploreFolders.m:9
maxCalibrationErrors
Definition: exploreFolders.m:7
trackerLags
Definition: exploreFolders.m:5