<?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>
        Thanks STeven,&lt;br&gt;&lt;br&gt;The Mask idea is much better, and it works&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Nemanya        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2658</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2658</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Nemanya,&lt;br&gt;&lt;br&gt;There are several ways to do this but you have to think in terms of one image at a time. Can you transform the current image into a mask that you then apply into the second one? &lt;br&gt;&lt;br&gt;If you are looking to do this in VBScript (very slow but possible) then you will have to create a new image to set back to the current image. I.e. the following should do that.&lt;br&gt;&lt;br&gt;pixels = GetPixels()&lt;br&gt;&lt;br&gt;for i=0 to ubound(pixels) step 3&lt;br&gt;&amp;nbsp;&amp;nbsp;val = (pixels(i)+pixels(i+1)+pixels(i+2))/3&lt;br&gt;&amp;nbsp;&amp;nbsp;if val &amp;lt; 100 then&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pixels(i) = 0&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pixels(i+1) = 0&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pixels(i+2) = 0&lt;br&gt;&amp;nbsp;&amp;nbsp;else&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pixels(i) = 255&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pixels(i+1) = 255&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pixels(i+2) = 255&lt;br&gt;&amp;nbsp;&amp;nbsp;end if&lt;br&gt;next&lt;br&gt;&lt;br&gt;which creates a black and white mask that can be used to zero or preserve the pixels in the second image when this now current image is used with either the math (and function) or mask module.&lt;br&gt;&lt;br&gt;We&apos;re looking into a more general expression routine that will run much faster against images where you would be able to create this same mask but at near frame rate speeds. Be sure to use a small image in the above otherwise things will take minutes to run!&lt;br&gt;&lt;br&gt;STeven.&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2658</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2658</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>Editing pixels in the image</title>
        <description>
        I would like to use pixel data from one image (marker A) to edit pixels in the second image (marker B). e.g. if pixel (200, 300) in marker A is below 100, then pixel (200, 300) in marker is set to 0.&lt;br&gt;&lt;br&gt;1) In VBScript I can get the pixel data, but don&apos;t know how to differentiate where the pixel data is sourced from (e.g. marker A, current, ...).&lt;br&gt;&lt;br&gt;Dim pixels&lt;br&gt;&lt;br&gt;pixels = GetPixels()&lt;br&gt;&lt;br&gt;index_location = (3*800 * y_coord) + (3 * x_coord)&lt;br&gt;value = pixels(index_location)&lt;br&gt;&lt;br&gt;2) How can I edit the pixel data so to change the image?&lt;br&gt;&lt;br&gt;I understand that it is a bit of a complicated one.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;&lt;br&gt;Nemanya        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2658</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2658</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
