<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Detecting Circles in an Image</title>
	<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/</link>
	<description>&#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=969735&#38;objectType=author"&#62;Bob&#60;/a&#62;, &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author"&#62;Brett&#60;/a&#62; &#38; &#60;a href="http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author"&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<pubDate>Sun, 22 Nov 2009 23:17:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: nickey</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13190</link>
		<dc:creator>nickey</dc:creator>
		<pubDate>Sat, 27 Jun 2009 16:18:47 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13190</guid>
		<description>Hi Brett,

I've tested Tao's program and yours too. They ran successfully. I've tried to applied your method above and Tao's to detect sun features in an image that comes with text. Some of the suns are detected and some are not. Other features in the image were also detected such as the text.

I thought of removing the text so that it doesn't interfere the program in detecting the circles in the image but not really sure how. Do you have any ideas how to start?

Many thanks!
Nickey</description>
		<content:encoded><![CDATA[<p>Hi Brett,</p>
<p>I&#8217;ve tested Tao&#8217;s program and yours too. They ran successfully. I&#8217;ve tried to applied your method above and Tao&#8217;s to detect sun features in an image that comes with text. Some of the suns are detected and some are not. Other features in the image were also detected such as the text.</p>
<p>I thought of removing the text so that it doesn&#8217;t interfere the program in detecting the circles in the image but not really sure how. Do you have any ideas how to start?</p>
<p>Many thanks!<br />
Nickey</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Berkan</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13174</link>
		<dc:creator>Berkan</dc:creator>
		<pubDate>Thu, 04 Jun 2009 15:05:56 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13174</guid>
		<description>Hi Brett, I have tried Tao's function, however I get around 25 bogus circles when I run with the default parameters (CircularHough_Grd(img, radrange, grdthres, fltr4LM_R, multirad, fltr4accum)) on the image link below. 

Do you reckon it would work for this image: http://img15.imageshack.us/i/f142.png/ ?

If so, which input parameter shall I tweak?

Would be great if you could point me in the right direction.

Sincerely,
berkan</description>
		<content:encoded><![CDATA[<p>Hi Brett, I have tried Tao&#8217;s function, however I get around 25 bogus circles when I run with the default parameters (CircularHough_Grd(img, radrange, grdthres, fltr4LM_R, multirad, fltr4accum)) on the image link below. </p>
<p>Do you reckon it would work for this image: <a href="http://img15.imageshack.us/i/f142.png/" rel="nofollow">http://img15.imageshack.us/i/f142.png/</a> ?</p>
<p>If so, which input parameter shall I tweak?</p>
<p>Would be great if you could point me in the right direction.</p>
<p>Sincerely,<br />
berkan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suwei</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13129</link>
		<dc:creator>suwei</dc:creator>
		<pubDate>Thu, 16 Apr 2009 04:13:11 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13129</guid>
		<description>Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13128</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Thu, 16 Apr 2009 03:42:00 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13128</guid>
		<description>Hi Suwei,
Thanks for pointing this out. Actually, FILTFILT is a function in the Signal Processing Toolbox that does zero-phase digital filtering. So Tao's function should specify that as a pre-req. A workaround -- besides buying the Signal Processing Toolbox ;) -- would entail tweaking the code to avoid the dependency.

Cheers,
Brett</description>
		<content:encoded><![CDATA[<p>Hi Suwei,<br />
Thanks for pointing this out. Actually, FILTFILT is a function in the Signal Processing Toolbox that does zero-phase digital filtering. So Tao&#8217;s function should specify that as a pre-req. A workaround &#8212; besides buying the Signal Processing Toolbox ;) &#8212; would entail tweaking the code to avoid the dependency.</p>
<p>Cheers,<br />
Brett</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suwei</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13127</link>
		<dc:creator>suwei</dc:creator>
		<pubDate>Thu, 16 Apr 2009 02:15:31 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13127</guid>
		<description>It seems that the function that Tao wrote has a bit of a minor problem, there is a function that is called filtfilt that is not defined. what would u recommend to overcome this problem?</description>
		<content:encoded><![CDATA[<p>It seems that the function that Tao wrote has a bit of a minor problem, there is a function that is called filtfilt that is not defined. what would u recommend to overcome this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: et</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13065</link>
		<dc:creator>et</dc:creator>
		<pubDate>Sun, 08 Mar 2009 00:09:54 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13065</guid>
		<description>Can I somehow use this algorithm to find grapes in image
like this: http://itamarbarkai.110mb.com/files/temp/slika1674-small.jpg ?

I tried playing for a while with the parameters but in vain.
Thanks Itamar</description>
		<content:encoded><![CDATA[<p>Can I somehow use this algorithm to find grapes in image<br />
like this: <a href="http://itamarbarkai.110mb.com/files/temp/slika1674-small.jpg" rel="nofollow">http://itamarbarkai.110mb.com/files/temp/slika1674-small.jpg</a> ?</p>
<p>I tried playing for a while with the parameters but in vain.<br />
Thanks Itamar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13059</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Tue, 24 Feb 2009 02:51:30 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13059</guid>
		<description>Lee, I'm afraid I don't have any better suggestions for you...except that maybe you can try posting your question to the &lt;a href="http://www.mathworks.com/matlabcentral/newsreader/" rel="nofollow"&gt;newsgroup &lt;/a&gt;for some additional support. Good luck!
Brett</description>
		<content:encoded><![CDATA[<p>Lee, I&#8217;m afraid I don&#8217;t have any better suggestions for you&#8230;except that maybe you can try posting your question to the <a href="http://www.mathworks.com/matlabcentral/newsreader/" rel="nofollow">newsgroup </a>for some additional support. Good luck!<br />
Brett</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13058</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Sun, 22 Feb 2009 17:23:23 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13058</guid>
		<description>Thank you for the help Brett. This is now working nicely for me. I have discovered a further issue however upon implementation of some alternative images I have been given. I have a collection of low res SEM images, similar to your example. Circle detection is not working however. I have altered Taos parameters significantly but to no avail. Any ideas?

See below
Original Image:
http://i44.tinypic.com/2liu3x5.jpg
Result: [Somewhat redundant:(]
http://i42.tinypic.com/2ik4i1c.jpg</description>
		<content:encoded><![CDATA[<p>Thank you for the help Brett. This is now working nicely for me. I have discovered a further issue however upon implementation of some alternative images I have been given. I have a collection of low res SEM images, similar to your example. Circle detection is not working however. I have altered Taos parameters significantly but to no avail. Any ideas?</p>
<p>See below<br />
Original Image:<br />
<a href="http://i44.tinypic.com/2liu3x5.jpg" rel="nofollow">http://i44.tinypic.com/2liu3&#215;5.jpg</a><br />
Result: [Somewhat redundant:(]<br />
<a href="http://i42.tinypic.com/2ik4i1c.jpg" rel="nofollow">http://i42.tinypic.com/2ik4i1c.jpg</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13035</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Thu, 12 Feb 2009 19:12:47 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13035</guid>
		<description>Lee, Notice that in my original code, I didn't use DrawCircle; I used the RECTANGLE command instead. I later modified my code to return handles to each rectangle so I could show you how to modify their BUTTONDOWNFCNs. If you want to use DRAWCIRCLE, you'll have to modify it so that it returns a vector of handles to the plots it creates, then similary modify the buttondownfcns of those.
Regards,
Brett</description>
		<content:encoded><![CDATA[<p>Lee, Notice that in my original code, I didn&#8217;t use DrawCircle; I used the RECTANGLE command instead. I later modified my code to return handles to each rectangle so I could show you how to modify their BUTTONDOWNFCNs. If you want to use DRAWCIRCLE, you&#8217;ll have to modify it so that it returns a vector of handles to the plots it creates, then similary modify the buttondownfcns of those.<br />
Regards,<br />
Brett</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13032</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Tue, 10 Feb 2009 21:40:50 +0000</pubDate>
		<guid>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13032</guid>
		<description>Sorry Brett but im not sure what you mean. I have the following code to date, simply entered in my command window:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Load image
rawimg = imread('clll40_005.tif');
rawimg = rawimg(1:884,:);

%% Image binning
st_imgbin = immBinning( uint16(rawimg), [1,1] );
imgshrunk = uint8( st_imgbin.img / 4 );

%% Image smoothing using Gaussian filter
fltr4img = fspecial( 'gaussian', 5, 1.2 );
imgfltrd = imfilter( imgshrunk, fltr4img, 'replicate' );

%% Detection of circular features by Hough Transform
tic;
[accum, circen, cirrad] = ...
	CircularHough_Grd_SL( imgfltrd, [10 190], 6, 25, 0.6 );
toc;

%% Results display
figure(1); imagesc(accum); axis image;
title('Accumulation Array from Circular Hough Transform');

figure(2); imagesc(imgfltrd); colormap('gray'); axis image;
hold on;
plot(circen(:,1), circen(:,2), 'r+');
for k = 1 : size(circen, 1),
 DrawCircle(circen(k,1), circen(k,2), cirrad(k), 32, 'b-');
end
hold off;
title(['Raw Image with Circles Detected ', ...
 '(center positions and radii marked)']);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Do I convert this into an m-file? and then add SHOWPROS within? Or do I add showpros as a separate m file?

When you say the SHOWPROS code block, is that everything you have added in the comment above? 

And how do I go about knowing what to set r as? is r my required circle?

Overall, sorry im so confused. I've very little experience in calling functions to date so this seems to be going over my head so far.

Thanks you for any help you can give me.
Lee</description>
		<content:encoded><![CDATA[<p>Sorry Brett but im not sure what you mean. I have the following code to date, simply entered in my command window:</p>
<p>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</p>
<p>%% Load image<br />
rawimg = imread(&#8217;clll40_005.tif&#8217;);<br />
rawimg = rawimg(1:884,:);</p>
<p>%% Image binning<br />
st_imgbin = immBinning( uint16(rawimg), [1,1] );<br />
imgshrunk = uint8( st_imgbin.img / 4 );</p>
<p>%% Image smoothing using Gaussian filter<br />
fltr4img = fspecial( &#8216;gaussian&#8217;, 5, 1.2 );<br />
imgfltrd = imfilter( imgshrunk, fltr4img, &#8216;replicate&#8217; );</p>
<p>%% Detection of circular features by Hough Transform<br />
tic;<br />
[accum, circen, cirrad] = &#8230;<br />
	CircularHough_Grd_SL( imgfltrd, [10 190], 6, 25, 0.6 );<br />
toc;</p>
<p>%% Results display<br />
figure(1); imagesc(accum); axis image;<br />
title(&#8217;Accumulation Array from Circular Hough Transform&#8217;);</p>
<p>figure(2); imagesc(imgfltrd); colormap(&#8217;gray&#8217;); axis image;<br />
hold on;<br />
plot(circen(:,1), circen(:,2), &#8216;r+&#8217;);<br />
for k = 1 : size(circen, 1),<br />
 DrawCircle(circen(k,1), circen(k,2), cirrad(k), 32, &#8216;b-&#8217;);<br />
end<br />
hold off;<br />
title([&#8217;Raw Image with Circles Detected &#8216;, &#8230;<br />
 &#8216;(center positions and radii marked)&#8217;]);</p>
<p>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</p>
<p>Do I convert this into an m-file? and then add SHOWPROS within? Or do I add showpros as a separate m file?</p>
<p>When you say the SHOWPROS code block, is that everything you have added in the comment above? </p>
<p>And how do I go about knowing what to set r as? is r my required circle?</p>
<p>Overall, sorry im so confused. I&#8217;ve very little experience in calling functions to date so this seems to be going over my head so far.</p>
<p>Thanks you for any help you can give me.<br />
Lee</p>
]]></content:encoded>
	</item>
</channel>
</rss>
