declareGlobal - declares global variables. declareGlobal declares the global variables: IS_INITIALIZED BASE_DIR IMG_DIR DATA_DIR TMP_DIR PD IMG_EXTENSIONS DEBUG_FID and initializes them, if they are not yet initialized. See also initializeGlobal.
0001 % declareGlobal - declares global variables. 0002 % 0003 % declareGlobal declares the global variables: 0004 % IS_INITIALIZED BASE_DIR IMG_DIR DATA_DIR TMP_DIR 0005 % PD IMG_EXTENSIONS DEBUG_FID and initializes them, 0006 % if they are not yet initialized. 0007 % 0008 % See also initializeGlobal. 0009 0010 % This file is part of the SaliencyToolbox - Copyright (C) 2006-2008 0011 % by Dirk B. Walther and the California Institute of Technology. 0012 % See the enclosed LICENSE.TXT document for the license agreement. 0013 % More information about this project is available at: 0014 % http://www.saliencytoolbox.net 0015 0016 global IS_INITIALIZED BASE_DIR IMG_DIR DATA_DIR TMP_DIR; 0017 global PD IMG_EXTENSIONS DEBUG_FID; 0018 0019 if isempty(IS_INITIALIZED) 0020 initializeGlobal; 0021 end