Home > SaliencyToolbox > emptyMap.m

emptyMap

PURPOSE ^

emptyMap - creates an empty map.

SYNOPSIS ^

function map = emptyMap(mapSize,label)

DESCRIPTION ^

 emptyMap - creates an empty map.

 map = emptyMap(mapSize,label)
    Creates a map with a data field of zeros(mapSize) with the given
    label.

 map = emptyMap(mapSize)
    Leaves the label field empty.

 map = emptyMap
    Leaves the data field empty.

 See also dataStructures.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % emptyMap - creates an empty map.
0002 %
0003 % map = emptyMap(mapSize,label)
0004 %    Creates a map with a data field of zeros(mapSize) with the given
0005 %    label.
0006 %
0007 % map = emptyMap(mapSize)
0008 %    Leaves the label field empty.
0009 %
0010 % map = emptyMap
0011 %    Leaves the data field empty.
0012 %
0013 % See also dataStructures.
0014 
0015 % This file is part of the SaliencyToolbox - Copyright (C) 2006-2013
0016 % by Dirk B. Walther and the California Institute of Technology.
0017 % See the enclosed LICENSE.TXT document for the license agreement.
0018 % More information about this project is available at:
0019 % http://www.saliencytoolbox.net
0020 
0021 function map = emptyMap(mapSize,label)
0022 
0023 map.origImage = [];
0024 if (nargin >= 2)
0025   map.label = label;
0026 else
0027   map.label = '';
0028 end
0029 if (nargin >= 1)
0030   map.data = zeros(mapSize);
0031 else
0032   map.data = [];
0033 end
0034 map.date = clock;
0035 map.parameters = [];

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