Mercurial > hg > octave-nkf
view scripts/image/loadimage.m @ 707:d7c4962ec7a0
[project @ 1994-09-16 13:50:20 by jwe]
author | jwe |
---|---|
date | Fri, 16 Sep 1994 13:53:18 +0000 |
parents | 0faebdd7df57 |
children | 3470f1e25a79 |
line wrap: on
line source
function [X, map] = loadimage(filename) #Load an image file. # #[X, map] = loadimage(img_file) loads an image and it's associated color #map from file img_file. The image must be in stored in octave's image #format. # #SEE ALSO: saveimage, load, save if (nargin == 0) error ("usage: loadimage (filename)"); endif file = file_in_path (IMAGEPATH, filename); if (isempty (file)) error ("loadimage: unable to find image file"); endif # XXX FIXME XXX -- file is assumed to have variables X and map. eval(['load ', file]); endfunction