============================================================== AART: Run Autonomous Appearance-based Registration Test-bed GENERAL [] = AART () ABOUT -Created: February 13th, 2004 -Last update: February 2004 -Revision: 0.0.1 -Author: R. S. Schestowitz, University of Manchester =================================================================
0001 % ============================================================== 0002 % AART: Run Autonomous Appearance-based Registration Test-bed 0003 % 0004 % GENERAL 0005 % 0006 % [] = AART () 0007 % 0008 % ABOUT 0009 % -Created: February 13th, 2004 0010 % -Last update: February 2004 0011 % -Revision: 0.0.1 0012 % -Author: R. S. Schestowitz, University of Manchester 0013 % ================================================================= 0014 0015 0016 fid = fopen('Settings','r'); 0017 0018 run_niced = fgets(fid); 0019 0020 display_splash_screen = fgets(fid); 0021 0022 % get some settings from the file 0023 0024 if (str2num(display_splash_screen(1)) == 1), 0025 splash_handle = splash; 0026 % display splash screen 0027 if (strcmp(getenv('OS'), 'Linux')) 0028 if (str2num(run_niced(1)) == 1), 0029 % run with CPU at lower capacity 0030 unix('nice mbr'); 0031 % mbr is a scripts that runs register from outside MATLAB without 0032 % the splash screen 0033 else 0034 register; 0035 end 0036 else 0037 % if not on Linux 0038 register; 0039 end 0040 close(splash_handle); 0041 % close the splash screen once the main window is open 0042 clc; 0043 else 0044 register; 0045 clc; 0046 % clear screen when main window is open 0047 end 0048 0049 generate_documentation = fgets(fid); 0050 0051 if (str2num(generate_documentation(1)) == 1), 0052 document_aart; 0053 % document the package if settings force it to be enabled 0054 end