Code: Select all
http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html?highlight=imread#imread
the below cv_imread does compile on ubuntu trusty using g++. And the function works as intended using g++.
Code: Select all
Mat* cv_imread(String* filename, int flags) {
return new Mat(cv::imread(*filename, flags));
}
Code: Select all
(defcfun ("cv_imread" %imread) (:pointer mat)
(filename (:pointer string*))
(flags :int))
Code: Select all
(window-name (foreign-alloc :string :initial-element "IMREAD Example"))
and it works to supply strings that aren't filenames but when I try to use a filename both absolute and relative paths it fails...it also fails using double forward slashes in the pathname.
Any advice is appreciated and btw Emacs /SBCL is my Lisp IDE