comparison scripts/image/saveimage.m @ 2312:204cc7db6f4a

[project @ 1996-07-11 21:20:36 by jwe]
author jwe
date Thu, 11 Jul 1996 21:20:36 +0000
parents 2b5788792cad
children 5ca126254d15
comparison
equal deleted inserted replaced
2311:2b5788792cad 2312:204cc7db6f4a
50 ## 50 ##
51 ## and is part of the portable bitmap utilities, 51 ## and is part of the portable bitmap utilities,
52 ## 52 ##
53 ## SEE ALSO: loadimage, save, load, colormap 53 ## SEE ALSO: loadimage, save, load, colormap
54 54
55 ## Author: Tony Richardson <amr@mpl.ucsd.edu>
56 ## Created: July 1994
57 ## Adapted-By: jwe
58
59 ## Rewritten by jwe to avoid using octoppm and pbm routines so that
60 ## people who don't have the the pbm stuff installed can still use this
61 ## function.
62 ##
63 ## The conversion to PostScript is based on pnmtops.c, which is part of
64 ## the portable bitmap utilties and bears this copyright notice:
65 ##
66 ## Copyright (C) 1989 by Jef Poskanzer.
67 ##
68 ## Permission to use, copy, modify, and distribute this software and its
69 ## documentation for any purpose and without fee is hereby granted, provided
70 ## that the above copyright notice appear in all copies and that both that
71 ## copyright notice and this permission notice appear in supporting
72 ## documentation. This software is provided "as is" without express or
73 ## implied warranty.
74
55 function saveimage (filename, img, img_form, map) 75 function saveimage (filename, img, img_form, map)
56
57 ## Written by Tony Richardson (amr@mpl.ucsd.edu) July 1994.
58
59 ## Rewritten by jwe to avoid using octoppm and pbm routines so that
60 ## people who don't have the the pbm stuff installed can still use this
61 ## function.
62 ##
63 ## The conversion to PostScript is based on pnmtops.c, which is part of
64 ## the portable bitmap utilties and bears this copyright notice:
65 ##
66 ## Copyright (C) 1989 by Jef Poskanzer.
67 ##
68 ## Permission to use, copy, modify, and distribute this software and its
69 ## documentation for any purpose and without fee is hereby granted, provided
70 ## that the above copyright notice appear in all copies and that both that
71 ## copyright notice and this permission notice appear in supporting
72 ## documentation. This software is provided "as is" without express or
73 ## implied warranty.
74 76
75 if (nargin < 2 || nargin > 4) 77 if (nargin < 2 || nargin > 4)
76 usage ("saveimage (filename, matrix, [format, [colormap]])"); 78 usage ("saveimage (filename, matrix, [format, [colormap]])");
77 endif 79 endif
78 80