diff options
author | shamikam | 2017-01-16 02:56:17 +0530 |
---|---|---|
committer | shamikam | 2017-01-16 02:56:17 +0530 |
commit | a6df67e8bcd5159cde27556f4f6a315f8dc2215f (patch) | |
tree | e806e966b06a53388fb300d89534354b222c2cad /macros/show.sci | |
download | FOSSEE_Image_Processing_Toolbox-master.tar.gz FOSSEE_Image_Processing_Toolbox-master.tar.bz2 FOSSEE_Image_Processing_Toolbox-master.zip |
Diffstat (limited to 'macros/show.sci')
-rw-r--r-- | macros/show.sci | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/macros/show.sci b/macros/show.sci new file mode 100644 index 0000000..aec4db8 --- /dev/null +++ b/macros/show.sci @@ -0,0 +1,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 |