The Guile-CV procedures and methods to load, save and query file system images.
Returns a Guile-CV image.
Loads the image pointed by filename and returns a Guile-CV image. filename can either be a GRAY or an RGB image.
At this point, Guile-CV supports the following file formats: GIF, TIFF, JPEG, BMP, EXR, HDR, PNM (PBM, PGM, PPM), PNG, SunRaster, KHOROS-VIFF.
Saves image in filename.
The optional scale argument can take the following values:
pixel values are ‘clipped’: values
< 0are saved as
> 255are saved as
255, and otherwise are saved unchanged
all pixel values are scaled7 to the
The type in which image is saved is determined by the filename extension, as in the folowing example:
(im-load "edx.png") ... (im-save $4 "/tmp/edx.jpg")
Returns the list of
(width height n-channel)for
Returns, respectively the width, the height and the n-channel for filename.
#t if filename is respectively a GRAY scale or an
Note that in this particular
scale does not mean a change in dimension, but rather
bringing pixel values from the range they occupy in memory to the
[0 255] range