<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><font size="2">Im refferring to this OpenCV function on this post</font></div><div><font size="2"><br></font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><font size="2"><tt class="descname"> </tt>IplImage* <tt class="descname">cv<span class="highlighted">LoadImage</span></tt>(const char* <strong>filename</strong>, int <strong>iscolor</strong>=CV_LOAD_IMAGE_COLOR )</font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: monospace; background-color: transparent; font-style: normal;"><font size="2"><br></font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: monospace; background-color: transparent; font-style:
 normal;"><font size="2">I'm tring to get the c functionality where i can access the imageData struct member of IplImage with the below statement (more info here http://docs.opencv.org/modules/core/doc/old_basic_structures.html?highlight=pli#iplimage)</font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2"><code><br></code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2"><code>IplImage* converted_image= cvLoadImage("c:\\box_in_scene.png",0):</code><code>converted_image->imageData</code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2"><code><br></code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New;
 background-color: transparent; font-style: normal;"><font size="2"><code>when i try with this</code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2"><code><br></code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2">(dp converted-image (Load-image "/home/w/Documents/opencv-</font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2">2.4.6.1/samples/c/box_in_scene.png" 0))<br><code></code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2"><code><br></code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New;
 background-color: transparent; font-style: normal;"><font size="2"><code>(cffi:with-foreign-slots ((image-data) <br>converted-image (:struct ipl-image)) <br>(cffi:foreign-string-to-lisp image-data))</code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2"><br><code></code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2"><code>I get the post title error message.  I also get message when i try to setf IMAGE-DATA to another variable or list it .....i get same thing with foreign-slot-value<br></code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2"><code>here is sampling of the more than 6 pages of converted_image->imageData that was
 cout'ed in C </code></font></div><div style="color: rgb(0, 0, 0); font-size: 21px; font-family: Courier New; background-color: transparent; font-style: normal;"><font size="2"><code><br>P1']}stqouqwruM/./22330/00+1)/+%+8S~sx{zzx|x~|x~y{~Y(&&''()+,%(%$%!  $l~<br></code></font></div></div></body></html>