Next: Histogram, Previous: Kernel Structure and Accessors, Up: Image Processing [Contents][Index]
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.
Returns #t.
Saves image in filename.
The optional scale argument can take the following values:
#f
pixel values are ‘clipped’: values
< 0
are saved as0
, values> 255
are saved as255
, and otherwise are saved unchanged#t
all pixel values are scaled10 to the
[0 255]
range
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
filename
.
Note that in this particular
context, 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
Next: Histogram, Previous: Kernel Structure and Accessors, Up: Image Processing [Contents][Index]