1function s=cameraman(); 2%-*- texinfo -*- 3%@deftypefn {Function} cameraman 4%@verbatim 5%CAMERAMAN Load the 'cameraman' test image 6% Usage: s=cameraman; 7% 8% CAMERAMAN loads a 256 x256 greyscale image of a cameraman. 9% 10% The returned matrix s consists of integers between 0 and 255, 11% which have been converted to double precision. 12% 13% To display the image, use imagesc with a gray colormap: 14% 15% imagesc(cameraman); colormap(gray); axis('image'); 16% 17% See ftp://nic.funet.fi/pub/graphics/misc/test-images/ or 18% http://sipi.usc.edu/database/database.cgi?volume=misc. 19%@end verbatim 20%@strong{Url}: @url{http://ltfat.github.io/doc/signals/cameraman.html} 21%@end deftypefn 22 23% Copyright (C) 2005-2016 Peter L. Soendergaard <peter@sonderport.dk>. 24% This file is part of LTFAT version 2.3.1 25% 26% This program is free software: you can redistribute it and/or modify 27% it under the terms of the GNU General Public License as published by 28% the Free Software Foundation, either version 3 of the License, or 29% (at your option) any later version. 30% 31% This program is distributed in the hope that it will be useful, 32% but WITHOUT ANY WARRANTY; without even the implied warranty of 33% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 34% GNU General Public License for more details. 35% 36% You should have received a copy of the GNU General Public License 37% along with this program. If not, see <http://www.gnu.org/licenses/>. 38 39% AUTHOR : Peter L. Soendergaard 40% TESTING: TEST_SIGNALS 41 42 43if nargin>0 44 error('This function does not take input arguments.') 45end; 46 47f=mfilename('fullpath'); 48 49s=double(imread([f,'.png'])); 50 51