<?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: Detecting Circles in an Image</title>
	<atom:link href="http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/</link>
	<description>&#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author&#34;&#62;Brett&#60;/a&#62; &#38; &#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author&#34;&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<lastBuildDate>Thu, 16 Feb 2012 22:44:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: ahmed</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14284</link>
		<dc:creator>ahmed</dc:creator>
		<pubDate>Mon, 24 Oct 2011 07:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14284</guid>
		<description>hai..

What are the number 5,25,20,13,1 refer too. How to adjust the number when different picture been used.

CircularHough_Grd(red, [5 25], 20, 13, 1);</description>
		<content:encoded><![CDATA[<p>hai..</p>
<p>What are the number 5,25,20,13,1 refer too. How to adjust the number when different picture been used.</p>
<p>CircularHough_Grd(red, [5 25], 20, 13, 1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asmi</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14269</link>
		<dc:creator>Asmi</dc:creator>
		<pubDate>Thu, 13 Oct 2011 09:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14269</guid>
		<description>Sir, I am working on project in which i have to count the number of silkworm eggs which are near to circular in shape.Can u suggest me the diffrent ways to segment it and count the eggs.Here i cant upload that image.</description>
		<content:encoded><![CDATA[<p>Sir, I am working on project in which i have to count the number of silkworm eggs which are near to circular in shape.Can u suggest me the diffrent ways to segment it and count the eggs.Here i cant upload that image.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krishna</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14265</link>
		<dc:creator>krishna</dc:creator>
		<pubDate>Wed, 12 Oct 2011 00:16:24 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14265</guid>
		<description>dear sir

i found the immBinning Function above .But i couldnt find the detail code of the above mentioned function. I am in need od the similar type of function to binn the Image Data.Would you please help me by providing the details of the above function</description>
		<content:encoded><![CDATA[<p>dear sir</p>
<p>i found the immBinning Function above .But i couldnt find the detail code of the above mentioned function. I am in need od the similar type of function to binn the Image Data.Would you please help me by providing the details of the above function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahmed</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14240</link>
		<dc:creator>ahmed</dc:creator>
		<pubDate>Mon, 19 Sep 2011 03:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14240</guid>
		<description>hai brett..  when i run that code,is show error..why 

??? Undefined function or method &#039;CircularHough_Grd&#039; for input arguments of type &#039;uint8&#039;.

Error in ==&gt; code4 at 61
[accum, circen, cirrad] = CircularHough_Grd(red,[15 60]);</description>
		<content:encoded><![CDATA[<p>hai brett..  when i run that code,is show error..why </p>
<p>??? Undefined function or method &#8216;CircularHough_Grd&#8217; for input arguments of type &#8216;uint8&#8242;.</p>
<p>Error in ==&gt; code4 at 61<br />
[accum, circen, cirrad] = CircularHough_Grd(red,[15 60]);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fathin</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14195</link>
		<dc:creator>Fathin</dc:creator>
		<pubDate>Tue, 19 Jul 2011 21:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14195</guid>
		<description>Hi,
I already try your command and change a little bit so that it can apply to my images.
I hope you can view my full question here(since i have posted and attached the result of the image, which i used your command above);

http://www.mathworks.com/matlabcentral/answers/11963-detecting-complex-circular-object-in-2d-images

I really2 appreciate your effort.
Thank you in advance.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I already try your command and change a little bit so that it can apply to my images.<br />
I hope you can view my full question here(since i have posted and attached the result of the image, which i used your command above);</p>
<p><a href="http://www.mathworks.com/matlabcentral/answers/11963-detecting-complex-circular-object-in-2d-images" rel="nofollow">http://www.mathworks.com/matlabcentral/answers/11963-detecting-complex-circular-object-in-2d-images</a></p>
<p>I really2 appreciate your effort.<br />
Thank you in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nishad</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14190</link>
		<dc:creator>Nishad</dc:creator>
		<pubDate>Wed, 13 Jul 2011 05:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14190</guid>
		<description>Respected sir,
I am a M.Tech Student at Cochin University of Science &amp; Technology,
Kerala. As a part of M.tech programme, i have to do a project. I select
the topic &quot; image Edge Detection Using Neural networks&quot; . This project mainly used for underwater images.I wish to discuss the topic with
you through email.I kindly request you to help me doing this project.

Yours faithfully

NISHAD. V.H
M.TECH 3RD SEMESTER
DEPT. OF ELECTRONICS
CUSAT
COCHIN, KERALA
nishad.haneefa@cusat.ac.in
+91-9486107096</description>
		<content:encoded><![CDATA[<p>Respected sir,<br />
I am a M.Tech Student at Cochin University of Science &amp; Technology,<br />
Kerala. As a part of M.tech programme, i have to do a project. I select<br />
the topic &#8221; image Edge Detection Using Neural networks&#8221; . This project mainly used for underwater images.I wish to discuss the topic with<br />
you through email.I kindly request you to help me doing this project.</p>
<p>Yours faithfully</p>
<p>NISHAD. V.H<br />
M.TECH 3RD SEMESTER<br />
DEPT. OF ELECTRONICS<br />
CUSAT<br />
COCHIN, KERALA<br />
<a href="mailto:nishad.haneefa@cusat.ac.in">nishad.haneefa@cusat.ac.in</a><br />
+91-9486107096</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mina</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14111</link>
		<dc:creator>mina</dc:creator>
		<pubDate>Mon, 25 Apr 2011 04:05:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14111</guid>
		<description>Hi brett
I have a problem in opening mathwork site and can not pick togglefig function
pleas Email it to me
Thank you</description>
		<content:encoded><![CDATA[<p>Hi brett<br />
I have a problem in opening mathwork site and can not pick togglefig function<br />
pleas Email it to me<br />
Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kc</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14102</link>
		<dc:creator>kc</dc:creator>
		<pubDate>Thu, 21 Apr 2011 13:58:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-14102</guid>
		<description>i have downloaded a file to detect the circle and got the error.I have signal processing toolbox installed too but to no avail.Would you please help?

***************************************
Error in ==&gt; detectCircle at 27
[accum, circen, cirrad] = CircularHough_Grd(red,[15 60]);
***************************************

&lt;pre&gt;

img = imread(&#039;cell4.jpg&#039;);
imshow(img);

%% Discarding color information
% Tao&#039;s function works directly on grayscale images. Rather than converting
% the color image to grayscale with the Image Processing Toolbox&#039;s RGB2GRAY
% function, I elected to  simply use the first (red) color plane, and to
% use adaptive histogram equalization:
%togglefig(&#039;Red Plane, Adjusted&#039;)
red = img(:,:,2);
red = adapthisteq(red);
imtool(red)

%% Parameters for the segmentation
% Before I segment, I needed to know how big the cells were in the image;
% CircularHough_Grd takes as an input a range of radii to search for. Using
% the IMDISTLINE function in the Image Processing Toolbox&#039;s IMTOOL, I
% estimated that the radii of interest range from about 5 to 25 pixels. 
%
% You can play around with the other input arguments to modify the
% function&#039;s sensitivity to less-than-perfect circles, for instance, or to
% change the way it deals with concentric circles. This makes the program
% pretty flexible!

%% Now for the segmentation...
tic;
[accum, circen, cirrad] = CircularHough_Grd(red,[15 60]);
toc

%% ...and a bit of post-processing
% Note to Tao: occasionally, your algorithm returns zero-radii &quot;hits&quot;:
any(cirrad &lt;= 0)
%%
% This is easy to address (for instance, to keep the RECTANGLE command below
% from erroring), but might be an opportunity for enhancement.
if any(cirrad 0);
    cirrad = cirrad(inds);
    circen = circen(inds,:);
end

%% View the results
% Now let&#039;s see how well the algorithm performed: 
togglefig Results
imshow(img);
hold on;
plot(circen(:,1), circen(:,2), &#039;r+&#039;);
for ii = 1 : size(circen, 1)
    rectangle(&#039;Position&#039;,[circen(ii,1) - cirrad(ii), circen(ii,2) - cirrad(ii), 2*cirrad(ii), 2*cirrad(ii)],...
        &#039;Curvature&#039;, [1,1], &#039;edgecolor&#039;, &#039;b&#039;, &#039;linewidth&#039;, 1.5);
end
hold off;
%%
% That&#039;s pretty remarkable, especially given the simplicity of my
% pre-processing. (Adaptive histogram equilization helped a lot; Tao&#039;s
% suggested filters improve the performance even more.)

%% Final comments
% The time it takes to run this algorithm varies markedly, depending on the
% user settings. In this case, it took my computer approximately 4
% seconds--but did a pretty amazing job of segmentating the image. Note how
% well it handled overlapping cells (circles), for instance:
togglefig Blowup
imshow(img)
xlims = [406 520];
ylims = [52 143];
set(gca,&#039;xlim&#039;,xlims,&#039;ylim&#039;,ylims)
inImageCircles = find(inpolygon(circen(:,1), circen(:,2), xlims([1 2 2 1]), ylims([1 1 2 2])));
for ii = 1 : numel(inImageCircles)
    rectangle(&#039;Position&#039;,...
        [circen(inImageCircles(ii),1) - cirrad(inImageCircles(ii)),...
        circen(inImageCircles(ii),2) - cirrad(inImageCircles(ii)),...
        2*cirrad(inImageCircles(ii)),...
        2*cirrad(inImageCircles(ii))],...
        &#039;Curvature&#039;, [1,1], &#039;edgecolor&#039;, &#039;b&#039;, &#039;linewidth&#039;, 1.5);
end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>i have downloaded a file to detect the circle and got the error.I have signal processing toolbox installed too but to no avail.Would you please help?</p>
<p>***************************************<br />
Error in ==&gt; detectCircle at 27<br />
[accum, circen, cirrad] = CircularHough_Grd(red,[15 60]);<br />
***************************************</p>
<pre>

img = imread('cell4.jpg');
imshow(img);

%% Discarding color information
% Tao's function works directly on grayscale images. Rather than converting
% the color image to grayscale with the Image Processing Toolbox's RGB2GRAY
% function, I elected to  simply use the first (red) color plane, and to
% use adaptive histogram equalization:
%togglefig('Red Plane, Adjusted')
red = img(:,:,2);
red = adapthisteq(red);
imtool(red)

%% Parameters for the segmentation
% Before I segment, I needed to know how big the cells were in the image;
% CircularHough_Grd takes as an input a range of radii to search for. Using
% the IMDISTLINE function in the Image Processing Toolbox's IMTOOL, I
% estimated that the radii of interest range from about 5 to 25 pixels.
%
% You can play around with the other input arguments to modify the
% function's sensitivity to less-than-perfect circles, for instance, or to
% change the way it deals with concentric circles. This makes the program
% pretty flexible!

%% Now for the segmentation...
tic;
[accum, circen, cirrad] = CircularHough_Grd(red,[15 60]);
toc

%% ...and a bit of post-processing
% Note to Tao: occasionally, your algorithm returns zero-radii "hits":
any(cirrad &lt;= 0)
%%
% This is easy to address (for instance, to keep the RECTANGLE command below
% from erroring), but might be an opportunity for enhancement.
if any(cirrad 0);
    cirrad = cirrad(inds);
    circen = circen(inds,:);
end

%% View the results
% Now let's see how well the algorithm performed:
togglefig Results
imshow(img);
hold on;
plot(circen(:,1), circen(:,2), 'r+');
for ii = 1 : size(circen, 1)
    rectangle('Position',[circen(ii,1) - cirrad(ii), circen(ii,2) - cirrad(ii), 2*cirrad(ii), 2*cirrad(ii)],...
        'Curvature', [1,1], 'edgecolor', 'b', 'linewidth', 1.5);
end
hold off;
%%
% That's pretty remarkable, especially given the simplicity of my
% pre-processing. (Adaptive histogram equilization helped a lot; Tao's
% suggested filters improve the performance even more.)

%% Final comments
% The time it takes to run this algorithm varies markedly, depending on the
% user settings. In this case, it took my computer approximately 4
% seconds--but did a pretty amazing job of segmentating the image. Note how
% well it handled overlapping cells (circles), for instance:
togglefig Blowup
imshow(img)
xlims = [406 520];
ylims = [52 143];
set(gca,'xlim',xlims,'ylim',ylims)
inImageCircles = find(inpolygon(circen(:,1), circen(:,2), xlims([1 2 2 1]), ylims([1 1 2 2])));
for ii = 1 : numel(inImageCircles)
    rectangle('Position',...
        [circen(inImageCircles(ii),1) - cirrad(inImageCircles(ii)),...
        circen(inImageCircles(ii),2) - cirrad(inImageCircles(ii)),...
        2*cirrad(inImageCircles(ii)),...
        2*cirrad(inImageCircles(ii))],...
        'Curvature', [1,1], 'edgecolor', 'b', 'linewidth', 1.5);
end
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: sonia</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13993</link>
		<dc:creator>sonia</dc:creator>
		<pubDate>Thu, 27 Jan 2011 10:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13993</guid>
		<description>detection of circle in ultrasound images can be done</description>
		<content:encoded><![CDATA[<p>detection of circle in ultrasound images can be done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13937</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Wed, 17 Nov 2010 17:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/23/detecting-circles-in-an-image/#comment-13937</guid>
		<description>@Ev: filtfilt is a function from our Signal Processing Toolbox. Tao should have indicated that as a requirement--thanks for catching that.
Cheers,
Brett</description>
		<content:encoded><![CDATA[<p>@Ev: filtfilt is a function from our Signal Processing Toolbox. Tao should have indicated that as a requirement&#8211;thanks for catching that.<br />
Cheers,<br />
Brett</p>
]]></content:encoded>
	</item>
</channel>
</rss>

