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


Starting Guile-CV


_ SPECIAL NOTE _

Before you start to use Guile-CV, make sure you read and implement the recommendation made in Configuring Guile for Guile-CV


With the previous Images used in Guile-CV’s documentation recommendations in mind, open a terminal and:

cd ~/guile-cv/images
guile
scheme@(guile-user)> ,use (cv)
scheme@(guile-user)> (im-load "sand.tif")
⇒
$2 = (512 512 1 (#f32(125.0 128.0 124.0 118.0 108.0 75.0 76.0 # …)))

Or if you use Emacs which, coupled with Geiser absolutely rocks :-), then a typical session becomes:

fire Emacs
M-x cd
-|
Change default directory: ~/guile-cv/images

M-x run-guile
scheme@(guile-user)> ,use (cv)
scheme@(guile-user)> (im-load "sand.tif")
⇒
$2 = (512 512 1 (#f32(125.0 128.0 124.0 118.0 108.0 75.0 76.0 # …)))

Note that to benefit from Emacs’s Tab completion mechanism, while typing image filenames, Emacs itself must be in that directory, hence the above first step M-x cd ...