-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshow.sci
More file actions
19 lines (19 loc) · 775 Bytes
/
show.sci
File metadata and controls
19 lines (19 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function[] =show(Img,ColorMap,winName,winSize)
FigureHandle = gcf();
drawlater();
FigureHandle.color_map = ColorMap
FigureHandle.background = -2; // sets the background to white
FigureHandle.figure_name = winName;
[NumberOfRows NumberOfColumns] = size(Img);
FigureHandle.figure_size=winSize;
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