summaryrefslogtreecommitdiff
path: root/macros/show.sci
blob: aec4db89775fd26ffd720a7201a38e0030d3a1e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
     function[] =show(Img,ColorMap) 
     FigureHandle = gcf();
     drawlater();
     FigureHandle.color_map = ColorMap
     FigureHandle.background = -2; // sets the background to white
     FigureHandle.figure_name = "Title";
     [NumberOfRows NumberOfColumns] = size(Img);
     FigureHandle.axes_size = [NumberOfColumns NumberOfRows];
     delete(gca()); // previous image is deleted
     Diagram = gca();
     [NumberOfRows NumberOfColumns] = size(Img);
     Diagram.data_bounds = [1, 1; NumberOfColumns, NumberOfRows];
     Diagram.axes_visible = ['off' 'off' 'off'];
     Diagram.isoview = 'on';
     Options = '082'; // Box is drawn around image.
     Matplot(Img, Options);
     drawnow();
     endfunction