<?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: Canny Edge Detection Auto Thresholding</title>
	<atom:link href="http://www.kerrywong.com/2009/05/07/canny-edge-detection-auto-thresholding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerrywong.com/2009/05/07/canny-edge-detection-auto-thresholding/</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 00:34:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Gustav</title>
		<link>http://www.kerrywong.com/2009/05/07/canny-edge-detection-auto-thresholding/comment-page-1/#comment-84203</link>
		<dc:creator>Gustav</dc:creator>
		<pubDate>Wed, 15 Dec 2010 23:07:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=999#comment-84203</guid>
		<description>fogot to add 
Ipp32f* l = new Ipp32f[nLevel+1];</description>
		<content:encoded><![CDATA[<p>fogot to add<br />
Ipp32f* l = new Ipp32f[nLevel+1];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustav</title>
		<link>http://www.kerrywong.com/2009/05/07/canny-edge-detection-auto-thresholding/comment-page-1/#comment-84202</link>
		<dc:creator>Gustav</dc:creator>
		<pubDate>Wed, 15 Dec 2010 23:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=999#comment-84202</guid>
		<description>Your code will miss the values in the last bin i.e (maxVal-stepVal)-&gt;maxVal. your array only assigns bins between minVal and minVal+stepVal*(nLevel-1).
If you had 20 bins, a min of 20 a max of 220 you would have a step of 10 which would give you a max bin value of (20+10*(19))=210 so your histogram would never have any values for the bin between 210 and 220. The ippiHistogramRange_32f_C1R function requires the max value to be the last pLevels array.

try

unsigned int* bins = new unsigned int[nLevel]; 
        
for (unsigned int i = 0; i &lt;= nLevel; i++)         
{           
  l[i] = minVal + stepVal * i;         
}</description>
		<content:encoded><![CDATA[<p>Your code will miss the values in the last bin i.e (maxVal-stepVal)-&gt;maxVal. your array only assigns bins between minVal and minVal+stepVal*(nLevel-1).<br />
If you had 20 bins, a min of 20 a max of 220 you would have a step of 10 which would give you a max bin value of (20+10*(19))=210 so your histogram would never have any values for the bin between 210 and 220. The ippiHistogramRange_32f_C1R function requires the max value to be the last pLevels array.</p>
<p>try</p>
<p>unsigned int* bins = new unsigned int[nLevel]; </p>
<p>for (unsigned int i = 0; i &lt;= nLevel; i++)<br />
{<br />
  l[i] = minVal + stepVal * i;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lily</title>
		<link>http://www.kerrywong.com/2009/05/07/canny-edge-detection-auto-thresholding/comment-page-1/#comment-76418</link>
		<dc:creator>lily</dc:creator>
		<pubDate>Tue, 09 Nov 2010 14:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=999#comment-76418</guid>
		<description>this code should be pasted in visual studio and also run opencv on ur sys to run the code.    contact me on my e-mail if u hve any doubts, i did as my proj this sem so i can help u..</description>
		<content:encoded><![CDATA[<p>this code should be pasted in visual studio and also run opencv on ur sys to run the code.    contact me on my e-mail if u hve any doubts, i did as my proj this sem so i can help u..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lily</title>
		<link>http://www.kerrywong.com/2009/05/07/canny-edge-detection-auto-thresholding/comment-page-1/#comment-76416</link>
		<dc:creator>lily</dc:creator>
		<pubDate>Tue, 09 Nov 2010 14:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=999#comment-76416</guid>
		<description>#include&quot;stdafx.h&quot;
#include &quot;cv.h&quot;
#include &quot;cxcore.h&quot;
#include&quot;cvaux.h&quot;
#include &quot;highgui.h&quot;
int main()
{
IplImage* newImg = NULL;
IplImage* grayImg = NULL;
IplImage* contourImg = NULL;
IplImage* cannyImg;
//parameters for the contour detection
CvMemStorage * storage = cvCreateMemStorage(0);
CvSeq * contour = 0;
int mode = CV_RETR_EXTERNAL;
mode = CV_RETR_CCOMP; //detect both outside and inside contour
cvNamedWindow(&quot;src&quot;, 1);
cvNamedWindow(&quot;contour&quot;,1);
//load original image
newImg = cvLoadImage(&quot;C:/Documents and Settings/welcome/Desktop/tom2.jpg&quot;,1);
//create a single channel 1 byte image (i.e. gray-level image)
grayImg = cvCreateImage( cvSize(newImg-&gt;width, newImg-&gt;height), IPL_DEPTH_8U, 1 );
//convert original color image (3 channel rgb color image) to gray-level image
cvCvtColor( newImg, grayImg, CV_BGR2GRAY );
cvShowImage( &quot;src&quot;, newImg );

cannyImg = cvCreateImage(cvGetSize(newImg), IPL_DEPTH_8U, 1);
// canny edge detection
cvCanny(grayImg, cannyImg, 50, 150, 3);
cvNamedWindow(&quot;src&quot;, 1);
cvNamedWindow(&quot;canny&quot;,1);
cvShowImage( &quot;src&quot;, newImg );
cvShowImage( &quot;canny&quot;, cannyImg );
cvReleaseImage( &amp;newImg ); cvReleaseImage( &amp;grayImg ); cvReleaseImage( &amp;contourImg );
cvReleaseMemStorage(&amp;storage);
return 0;
}</description>
		<content:encoded><![CDATA[<p>#include&#8221;stdafx.h&#8221;<br />
#include &#8220;cv.h&#8221;<br />
#include &#8220;cxcore.h&#8221;<br />
#include&#8221;cvaux.h&#8221;<br />
#include &#8220;highgui.h&#8221;<br />
int main()<br />
{<br />
IplImage* newImg = NULL;<br />
IplImage* grayImg = NULL;<br />
IplImage* contourImg = NULL;<br />
IplImage* cannyImg;<br />
//parameters for the contour detection<br />
CvMemStorage * storage = cvCreateMemStorage(0);<br />
CvSeq * contour = 0;<br />
int mode = CV_RETR_EXTERNAL;<br />
mode = CV_RETR_CCOMP; //detect both outside and inside contour<br />
cvNamedWindow(&#8220;src&#8221;, 1);<br />
cvNamedWindow(&#8220;contour&#8221;,1);<br />
//load original image<br />
newImg = cvLoadImage(&#8220;C:/Documents and Settings/welcome/Desktop/tom2.jpg&#8221;,1);<br />
//create a single channel 1 byte image (i.e. gray-level image)<br />
grayImg = cvCreateImage( cvSize(newImg-&gt;width, newImg-&gt;height), IPL_DEPTH_8U, 1 );<br />
//convert original color image (3 channel rgb color image) to gray-level image<br />
cvCvtColor( newImg, grayImg, CV_BGR2GRAY );<br />
cvShowImage( &#8220;src&#8221;, newImg );</p>
<p>cannyImg = cvCreateImage(cvGetSize(newImg), IPL_DEPTH_8U, 1);<br />
// canny edge detection<br />
cvCanny(grayImg, cannyImg, 50, 150, 3);<br />
cvNamedWindow(&#8220;src&#8221;, 1);<br />
cvNamedWindow(&#8220;canny&#8221;,1);<br />
cvShowImage( &#8220;src&#8221;, newImg );<br />
cvShowImage( &#8220;canny&#8221;, cannyImg );<br />
cvReleaseImage( &amp;newImg ); cvReleaseImage( &amp;grayImg ); cvReleaseImage( &amp;contourImg );<br />
cvReleaseMemStorage(&amp;storage);<br />
return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mehdi</title>
		<link>http://www.kerrywong.com/2009/05/07/canny-edge-detection-auto-thresholding/comment-page-1/#comment-58938</link>
		<dc:creator>mehdi</dc:creator>
		<pubDate>Sun, 25 Jul 2010 14:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=999#comment-58938</guid>
		<description>i need canny edge detection in vb(source code ) 
please help me
tnx</description>
		<content:encoded><![CDATA[<p>i need canny edge detection in vb(source code )<br />
please help me<br />
tnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://www.kerrywong.com/2009/05/07/canny-edge-detection-auto-thresholding/comment-page-1/#comment-42994</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Mon, 21 Dec 2009 17:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=999#comment-42994</guid>
		<description>is there any vb6 code for canny autothresholding? tnx!</description>
		<content:encoded><![CDATA[<p>is there any vb6 code for canny autothresholding? tnx!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

