Home > SaliencyToolbox > initializeGlobal.m

initializeGlobal

PURPOSE ^

initializeGlobal - initializes global variables

SYNOPSIS ^

function initializeGlobal(varargin)

DESCRIPTION ^

 initializeGlobal - initializes global variables

 initializeGlobal initializes the following global variables:
    IS_INITIALIZED is set to 1 as a flag that initializeGlobal was called.
    IMG_EXTENSIONS is a cell arrays with possible extensions for image files.
    DEBUG_FID is the file identifier for debugMsg output. It is by default
       set to 0. Set to 1 for stdout or to the fid of a text file that
       is open for write access.

 See also declareGlobal, ensureDirExists, debugMsg.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % initializeGlobal - initializes global variables
0002 %
0003 % initializeGlobal initializes the following global variables:
0004 %    IS_INITIALIZED is set to 1 as a flag that initializeGlobal was called.
0005 %    IMG_EXTENSIONS is a cell arrays with possible extensions for image files.
0006 %    DEBUG_FID is the file identifier for debugMsg output. It is by default
0007 %       set to 0. Set to 1 for stdout or to the fid of a text file that
0008 %       is open for write access.
0009 %
0010 % See also declareGlobal, ensureDirExists, debugMsg.
0011 
0012 % This file is part of the SaliencyToolbox - Copyright (C) 2006-2013
0013 % by Dirk B. Walther and the California Institute of Technology.
0014 % See the enclosed LICENSE.TXT document for the license agreement.
0015 % More information about this project is available at:
0016 % http://www.saliencytoolbox.net
0017 
0018 function initializeGlobal(varargin)
0019 
0020 global IS_INITIALIZED;
0021 IS_INITIALIZED = 1;
0022 
0023 declareGlobal;
0024 
0025 dbstop if error;
0026 
0027 IMG_EXTENSIONS = {'*.pgm','*.ppm','*.tif','*.tiff','*.TIF',...
0028                   '*.jpg','*.JPG','*.jpeg','*.png','*.PNG',...
0029                   '*.gif','*.GIF','*.JPEG','*.PGM','*.PPM',...
0030                   '*.bmp','*.BMP'};
0031 
0032 DEBUG_FID = 0;
0033 DBW_FID = 240.75;
0034 
0035 fprintf('\nSaliency Toolbox (http://www.saliencytoolbox.net)\n');
0036 fprintf('For licensing details type ''STBlicense'' at the prompt.\n\n');
0037 
0038

Generated on Thu 18-Jul-2013 06:10:46 by m2html © 2005