Previous: , Up: Using Guile-CV   [Contents][Index]


2.2 Images used in Guile-CV’s documentation

All images used in Guile-CV’s documentation are distributed with the source and installed here:

$prefix/share/doc/guile-cv/images

All examples using im-load and im-save given in this manual, unless a full pathname is specified, assume that the guile current working directory is the above mentioned directory. Assuming you did install in /opt, just as an example of course, a typical Guile-CV (example) session inialization steps would be:

M-x run-guile
...
scheme@(guile-user)> (chdir "/opt/share/doc/guile-cv/images")
scheme@(guile-user)> ,use (cv)
scheme@(guile-user)> (im-load "lenna.png")
-|
$2 = (512 512 3 (#f32(226.0 226.0 223.0 223.0 227.0 …) …))

Note that to benefit from Emacs’s Tab completion mechanism, while typing image filenames, Emacs itself must be in that directory, which you acheive like this (still assuming, as an example, that you did install in /opt):

M-x cd
-|
Change default directory: /opt/share/doc/guile-cv/images