Line | |
---|
1 | %SHOWIMG Pajdla: Shows scaled images in the gray palette |
---|
2 | % |
---|
3 | % |
---|
4 | % function f = showimg(m,f) |
---|
5 | % |
---|
6 | % m = image matrix |
---|
7 | % f = figure handle |
---|
8 | % |
---|
9 | % See also: IMAGE, IMAGESC, COLORMEN. |
---|
10 | |
---|
11 | % Author: Tomas Pajdla, Tomas.Pajdla@esat.kuleuven.ac.be |
---|
12 | % pajdla@vision.felk.cvut.cz |
---|
13 | % 03/06/95 ESAT-MI2, KU Leuven |
---|
14 | % Documentation: |
---|
15 | % Language: Matlab 4.2, (c) MathWorks |
---|
16 | % |
---|
17 | function f = showimg(m,f); |
---|
18 | |
---|
19 | if (nargin==2) |
---|
20 | figure(f); |
---|
21 | else |
---|
22 | f=figure; |
---|
23 | % colormen; |
---|
24 | colormap('gray'); |
---|
25 | end |
---|
26 | |
---|
27 | imagesc(m); |
---|
28 | axis('image'); |
---|
29 | |
---|
30 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.