<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        Michel,&lt;br&gt;&lt;br&gt;Thanks for the update. Glad that it worked out for you. &lt;br&gt;&lt;br&gt;One thing you may also try is to set the &quot;Include Overlay Graphics in Marker&quot; checkbox in the marker module which should give you back the graphics when requesting a marked image. This saves you from going to all the different modules and selecting that option. Plus it also prevents the graphics from messing up with successive processing.&lt;br&gt;&lt;br&gt;In terms of examples using the waitImage something like&lt;br&gt;&lt;br&gt;rr.run(&quot;on&quot;) &lt;br&gt;&lt;br&gt;rr.setimage(&quot;source&quot;, pixels, width, height) &lt;br&gt;rr.waitImage()&lt;br&gt;&lt;br&gt;should do the trick .. but using the vars will work too.&lt;br&gt;&lt;br&gt;In your case I would probably do a&lt;br&gt;&lt;br&gt;rr.setVariable(&quot;DONE&quot;, 0) &lt;br&gt;&lt;br&gt;from the API before using the setImage to ensure that you accidentally don&apos;t get back an image while the pipeline is inbetween the DONE=1 at the end and DONE=0 at the start. It is ulikely but still possible that your code would setImage just after the DONE=1 and then get back the results before the DONE=0 is reached. Setting via the API will ensure that this race condition does not happen.&lt;br&gt;&lt;br&gt;STeven. &lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3775</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3775</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Hi Steven,&lt;br&gt;&lt;br&gt;Today I tried the &quot;processed&quot; and empty getimage commands, and now I do get the annotations. &lt;br&gt;&lt;br&gt;Thank you very much!&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3775</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3775</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Steven,&lt;br&gt;&lt;br&gt;Thanks for your swift reply&lt;br&gt;&lt;br&gt;Now I am using a marker on the end of the rr-program named &quot;final&quot;. I use a waitvariable to see if the rr-program is finished. Afterwards a getimage is processed. The startimage is loaded in RR using the VB.net API. The camera involved is not supported by RR, but using the API I can load images in RR.&lt;br&gt;&lt;br&gt;The procedure has the next steps&lt;br&gt;&lt;br&gt;All Pixels, PixelsIn arrays are byte arrays. The correct type is very important because of the exchange between pointers and variables&lt;br&gt;&lt;br&gt;The camera image memory is received by a pointer (Imagepntr)&lt;br&gt;&lt;br&gt;Marshal.copy is used to copy this in a array (PixelsIn)&lt;br&gt;&lt;br&gt;Marshal.copy(Imageptr, PixelsIn, 0, Pixelssize-1)&lt;br&gt;&lt;br&gt;Because pixelsIn is grey level, the pixelsIn is copied to a 3x larger array to add two additional bytes per pixels. &lt;br&gt;Afterwards, setimage is used.&lt;br&gt;&lt;br&gt;rr.setimage(&quot;source&quot;, pixels, width, height)&lt;br&gt;&lt;br&gt;As long as the pixels array size is less or equal to 960 * 1280 - 1 elements it works, otherwise a black screen is the result.&lt;br&gt;&lt;br&gt;The RR program contains the next lines&lt;br&gt;&lt;br&gt;At start:&lt;br&gt;Set DONE=0 &lt;br&gt;&lt;br&gt;At end&lt;br&gt;marker[final]&lt;br&gt;Set DONE=1&lt;br&gt;&lt;br&gt;&lt;br&gt;The VB.net program&lt;br&gt;&lt;br&gt;rr.run(&quot;on&quot;)&lt;br&gt;Dim test as boolean =rr.waitvariable(&quot;DONE&quot;,1,5000)&lt;br&gt;&lt;br&gt;The variable test is checked if processing was succesfull&lt;br&gt;&lt;br&gt;If succesfull, getimage is used to collect the image, and a special get_RR data subroutine to get the other data.&lt;br&gt;&lt;br&gt;The complete getimage command is &lt;br&gt;&lt;br&gt;rr.getimage(&quot;final&quot;,pixels, width, height)&lt;br&gt;&lt;br&gt;The pixels array is changed to a bitmap by&lt;br&gt;1. Exchanging the R and B in the pixels array in a loop&lt;br&gt;2. Copying the pixels array to a pointer using&lt;br&gt;&lt;br&gt;Marshal.copy(pixels, 0, pnt, pixels.length)&lt;br&gt;&lt;br&gt;3. Create a bitmap using:&lt;br&gt;&lt;br&gt;Dim bm as new Bitmap(width , height , 3*width, Imaging.pixelformat.format24bppRgb, pnt)&lt;br&gt;&lt;br&gt;4. show the bitmap in the picturebox&lt;br&gt;&lt;br&gt;Picturebox1.image=bm&lt;br&gt;Picturebox1.refresh()&amp;nbsp;&amp;nbsp;&lt;br&gt;&lt;br&gt;And I end with a bitmap without any annotations.&lt;br&gt;&lt;br&gt;I will try the getimage with &quot;processed&quot; instead of &quot;final&quot;, and see if this changes the result. I let you know by tomorrow.&lt;br&gt;&lt;br&gt;Concerning rr.waitimage, there is no example in the VB.net API for waitimage, so I avoided it by checking a variable.&lt;br&gt;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3775</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3775</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Michel,&lt;br&gt;&lt;br&gt;First be sure that you are specifying &quot;processed&quot; as the image name in the call to GetImage. If you don&apos;t supply any name it should default to &quot;processed&quot; but just in case.&lt;br&gt;&lt;br&gt;Second, are you using something like&lt;br&gt;&lt;br&gt;rr.waitImage&lt;br&gt;&lt;br&gt;just before you get the image back? Is this an image coming from the webcam or are you sending it via the API?&lt;br&gt;&lt;br&gt;The API should get the image WITH the displayed graphics ... this was just verified using the C++ API.&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3775</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3775</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>Getimage &amp; Annotation</title>
        <description>
        I am using the API, VB.NET and the Getimage command to obtain the result of the RR processing. I have to process a single image several times, so I use display as annotation to show all the results in the final picture.&lt;br&gt;&lt;br&gt;If I save the image, the annotations are saved with it. If I use GetImage, no annotations are send with it. Saving and loading an image is very slow and I try to avoid this.&lt;br&gt;&lt;br&gt;How can I get an image with the annotations using a GetImage command? Because there are multiple steps involved it is insufficient to uncheck the &apos;display as annotation&apos; checkbox to solve this problem&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3775</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3775</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
