Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!g23g2000vbr.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: find Spots in the Image
Date: Mon, 21 Sep 2009 18:22:06 -0700 (PDT)
Organization: http://groups.google.com
Lines: 21
Message-ID: <2ccdaea8-ab83-4439-86a2-36957876f227@g23g2000vbr.googlegroups.com>
References: <h96qbb$ug$1@fred.mathworks.com> <h96r1t$emm$1@fred.mathworks.com> 
	<89cfe21d-e61b-4989-be3e-77b50692c030@y20g2000vbk.googlegroups.com> 
	<h9981j$jrq$1@fred.mathworks.com>
NNTP-Posting-Host: 75.186.70.56
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1253582526 21758 127.0.0.1 (22 Sep 2009 01:22:06 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 22 Sep 2009 01:22:06 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g23g2000vbr.googlegroups.com; posting-host=75.186.70.56; 
	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; AskTB5.5),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:571976


On Sep 21, 9:08 pm, "Yi " <heyinba0...@hotmail.com> wrote:
> Hi ImageAnalyst:
>
> what is reginprops function ? Does it give me the number of spots? how can i know the spots contain a white hole?
>
> thanks ImageAnalyst

------------------------------------------------------------------------------
Did you check out my tutorial in the link - it uses regionprops().
The demo image is basically white coins (spots) on a black background
- pretty similar to your situation I would think.  Are you now saying
that you have black spots with a white hole in them so that they are
now black with white in the middle, or basically a black ring or "O"
shape on a white background?  Why don't you post an image somewhere so
we don't have to guess?

regionprops is also described in the MATLAB help file.  Basically it
makes measurements on an image given a segmented and labeled binary
image.