Diff of /signals/cameraman.m [5f391e] .. [84b1c9] Maximize Restore

  Switch to unified view

a/signals/cameraman.m b/signals/cameraman.m
1
function s=cameraman();
1
function s=cameraman();
2
%CAMERAMAN  Load the 'cameraman' test image
2
%CAMERAMAN  Load the 'cameraman' test image
3
%  Usage: s=cameraman;
3
%   Usage: s=cameraman;
4
%
4
% 
5
%  CAMERAMAN loads a 256x256 greyscale image of a cameraman.
5
%   `cameraman` loads a $256 \times 256$ greyscale image of a cameraman.
6
%
6
% 
7
%  The returned matrix s consists of integers between 0 and 255,
7
%   The returned matrix `s` consists of integers between 0 and 255,
8
%  which have been converted to double precision.
8
%   which have been converted to double precision.
9
%
9
% 
10
%  To display the image, use IMAGESC with a gray colormap:
10
%   To display the image, use `imagesc` with a gray colormap::
11
%
11
% 
12
%C   imagesc(cameraman); colormap(gray); axis('image');
12
%     imagesc(cameraman); colormap(gray); axis('image');
13
%
13
% 
14
%  See ftp://nic.funet.fi/pub/graphics/misc/test-images/ or
14
%   See `<ftp://nic.funet.fi/pub/graphics/misc/test-images/>`_ or
15
%  http://sipi.usc.edu/database/database.cgi?volume=misc
15
%   `<http://sipi.usc.edu/database/database.cgi?volume=misc>`_.
16
%
16
% 
17
%  Demos: demo_compression
17
%   Demos: demo_compression
18
18
19
%   AUTHOR : Peter Soendergaard
19
%   AUTHOR : Peter Soendergaard
20
%   TESTING: TEST_SIGNALS
20
%   TESTING: TEST_SIGNALS
21
%   REFERENCE: OK
21
%   REFERENCE: OK
22
  
22
  
...
...
25
end;
25
end;
26
26
27
f=mfilename('fullpath');
27
f=mfilename('fullpath');
28
28
29
s=double(imread([f,'.png']));
29
s=double(imread([f,'.png']));
30
31
32
%OLDFORMAT