<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Re-Writing the laser pointer paint program (image processing) in C/C++ &#8211; 10x speed improvement</title>
	<atom:link href="http://hunterdavis.com/archives/17/feed" rel="self" type="application/rss+xml" />
	<link>http://hunterdavis.com/archives/17</link>
	<description>4.0!</description>
	<lastBuildDate>Tue, 07 Sep 2010 12:15:45 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: hunter davis</title>
		<link>http://hunterdavis.com/archives/17/comment-page-1#comment-14809</link>
		<dc:creator>hunter davis</dc:creator>
		<pubDate>Mon, 28 Dec 2009 17:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://hunterdavis.com/archives/17#comment-14809</guid>
		<description>Hey Leaks,

Looks good!  I didn&#039;t know if people were still interested in this, thanks for the update.  If you want to send in a patch that&#039;d be cool,  I&#039;m sure it&#039;d be helpful to others.  Thanks!</description>
		<content:encoded><![CDATA[<p>Hey Leaks,</p>
<p>Looks good!  I didn&#8217;t know if people were still interested in this, thanks for the update.  If you want to send in a patch that&#8217;d be cool,  I&#8217;m sure it&#8217;d be helpful to others.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leaks</title>
		<link>http://hunterdavis.com/archives/17/comment-page-1#comment-14804</link>
		<dc:creator>Leaks</dc:creator>
		<pubDate>Mon, 28 Dec 2009 08:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://hunterdavis.com/archives/17#comment-14804</guid>
		<description>I compiled on windows, works good fixed a couple of memory leaks and it ran much faster..  I&#039;ll submit a proper patch if you email me.

// ADD After for loop
cvReleaseImage(&amp;frame); // cloned image

// reduces cloning/creating &amp; fixes leak
//a helper function to convert from color to gray
IplImage* convert_grayscale(IplImage *img)
{
	IplImage *gray_image, *gray_img0;

	//check image is it gray or not if nor convert it to the gray
	if(img-&gt;nChannels!=1)
	{
        //convert original image to gray_scale image
		gray_image = cvCreateImage(cvSize( img-&gt;width, img-&gt;height), 8, 1 );
		cvCvtColor(img, gray_image, CV_RGB2GRAY );
	}
	else
	{
		gray_image = cvCloneImage(img);
	}

	return gray_image;
}</description>
		<content:encoded><![CDATA[<p>I compiled on windows, works good fixed a couple of memory leaks and it ran much faster..  I&#8217;ll submit a proper patch if you email me.</p>
<p>// ADD After for loop<br />
cvReleaseImage(&amp;frame); // cloned image</p>
<p>// reduces cloning/creating &amp; fixes leak<br />
//a helper function to convert from color to gray<br />
IplImage* convert_grayscale(IplImage *img)<br />
{<br />
	IplImage *gray_image, *gray_img0;</p>
<p>	//check image is it gray or not if nor convert it to the gray<br />
	if(img-&gt;nChannels!=1)<br />
	{<br />
        //convert original image to gray_scale image<br />
		gray_image = cvCreateImage(cvSize( img-&gt;width, img-&gt;height), 8, 1 );<br />
		cvCvtColor(img, gray_image, CV_RGB2GRAY );<br />
	}<br />
	else<br />
	{<br />
		gray_image = cvCloneImage(img);<br />
	}</p>
<p>	return gray_image;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hunter Davis</title>
		<link>http://hunterdavis.com/archives/17/comment-page-1#comment-10861</link>
		<dc:creator>Hunter Davis</dc:creator>
		<pubDate>Mon, 16 Mar 2009 20:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://hunterdavis.com/archives/17#comment-10861</guid>
		<description>Hey, sorry no I don&#039;t have a video handy.  Let me know if you make one and I&#039;ll post it if you like.  Once my schedule clears up a bit i&#039;m planning on retooling it again in assembler or C++, and I&#039;ll definitely make a vid of that.</description>
		<content:encoded><![CDATA[<p>Hey, sorry no I don&#8217;t have a video handy.  Let me know if you make one and I&#8217;ll post it if you like.  Once my schedule clears up a bit i&#8217;m planning on retooling it again in assembler or C++, and I&#8217;ll definitely make a vid of that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis</title>
		<link>http://hunterdavis.com/archives/17/comment-page-1#comment-10859</link>
		<dc:creator>Travis</dc:creator>
		<pubDate>Mon, 16 Mar 2009 20:09:12 +0000</pubDate>
		<guid isPermaLink="false">http://hunterdavis.com/archives/17#comment-10859</guid>
		<description>Do you have a video of the laser pointer painting in action??</description>
		<content:encoded><![CDATA[<p>Do you have a video of the laser pointer painting in action??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pauline</title>
		<link>http://hunterdavis.com/archives/17/comment-page-1#comment-1860</link>
		<dc:creator>Pauline</dc:creator>
		<pubDate>Tue, 04 Nov 2008 13:15:28 +0000</pubDate>
		<guid isPermaLink="false">http://hunterdavis.com/archives/17#comment-1860</guid>
		<description>jtemmerde gros connard</description>
		<content:encoded><![CDATA[<p>jtemmerde gros connard</p>
]]></content:encoded>
	</item>
</channel>
</rss>
