SourceForge has been redesigned. Learn more.
Close

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

Switch to unified view

a/signals/ltfattext.m b/signals/ltfattext.m
1
function s=ltfattext();
1
function s=ltfattext();
2
%LTFATTEXT  Load the 'ltfattext' test image
2
%LTFATTEXT  Load the 'ltfattext' test image
3
%  Usage: s=ltfattext;
3
%   Usage: s=ltfattext;
4
%
4
% 
5
%  LTFATTEXT loads a 401x600 black and white image of the word 'LTFAT'.
5
%   `ltfattext loads a $401 \times 600$ black and white image of the word
6
%   'LTFAT'.
6
%
7
% 
7
%  The image is assumed to be used as a spectrogram with 800 channels
8
%   The image is assumed to be used as a spectrogram with 800 channels
8
%  as produced by DGTREAL.
9
%   as produced by |dgtreal|_.
9
%
10
% 
10
%  The returned matrix s consists of the integers between 0 and 1,
11
%   The returned matrix `s` consists of the integers 0 and 1, which have
11
%  which have been converted to double precision.
12
%   been converted to double precision.
12
%
13
% 
13
%  To display the image, use IMAGESC with a gray colormap:
14
%   To display the image, use `imagesc` with a gray colormap::
14
%
15
% 
15
%C   imagesc(ltfattext); colormap(gray); axis('xy');
16
%     imagesc(ltfattext); colormap(gray); axis('xy');
16
%
17
% 
17
%  See also: ltfatlogo, dgtreal
18
%   See also: ltfatlogo, dgtreal
18
%
19
% 
19
%  Demos: demo_isgram
20
%   Demos: demo_isgram
20
21
21
%   AUTHOR : Peter Soendergaard
22
%   AUTHOR : Peter Soendergaard
22
%   TESTING: TEST_SIGNALS
23
%   TESTING: TEST_SIGNALS
23
%   REFERENCE: OK
24
%   REFERENCE: OK
24
  
25
  
...
...
27
end;
28
end;
28
29
29
f=mfilename('fullpath');
30
f=mfilename('fullpath');
30
31
31
s=flipud(double(imread([f,'.png'])))/255;
32
s=flipud(double(imread([f,'.png'])))/255;
32
33
34
%OLDFORMAT