(libload "opencv/opencv")

;; read, display, and destroy the image
(setq img (cvimage-read-rgb "testimg.jpg"))
(cvimage-show img)
(delete img)       
;; if you don't delete the image manually, 
;; it will be garbage-collected at some point later

