Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!f33g2000vbm.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Cirlce around a pixel
Date: Mon, 29 Jun 2009 11:47:48 -0700 (PDT)
Organization: http://groups.google.com
Lines: 15
Message-ID: <bbc31f43-2e11-41d6-9438-d62b319b0d61@f33g2000vbm.googlegroups.com>
References: <h2adl1$6go$1@fred.mathworks.com>
NNTP-Posting-Host: 192.44.136.113
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1246301278 25879 127.0.0.1 (29 Jun 2009 18:47:58 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 29 Jun 2009 18:47:58 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f33g2000vbm.googlegroups.com; posting-host=192.44.136.113; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
	GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.7)
Xref: news.mathworks.com comp.soft-sys.matlab:551501


Timothy  wrote:
> Simple question. How do I draw a circle around a certain pixel in an image.
----------------------------------------------------------------------------------------------------------------------
Believe it or not, you use (or can use) the rectangle() function.  If
you type circle in the help index, it will tell you to use the
rectangle() function, which draws a rectangle with corners of a
certain radius of curvature.  So, with proper x and y widths, and
proper corner curvature, you can get a circle.  There are examples
there.  Why they didn't make this it's own function is beyond me.
That would have been the best thing to do - just make special
functions for circle and ellipse.  I mean, who would intuitively think
to look up the rectangle function if you wanted to draw a circle?  A
circle should be a common enough thing to do that it deserves its own
function and not be a special case of some overly flexible rectangle
function.