Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!37g2000yqm.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: damage measurement in a micrograph
Date: Wed, 11 Nov 2009 11:06:00 -0800 (PST)
Organization: http://groups.google.com
Lines: 22
Message-ID: <e2465922-2364-4da4-bcb5-33c8269b3266@37g2000yqm.googlegroups.com>
References: <hcadg1$3m1$1@fred.mathworks.com> <op.u2kwubcja5ziv5@uthamaa.dhcp.mathworks.com> 
	<0396a454-3b1a-46e4-bffb-e769ea7043d1@s15g2000yqs.googlegroups.com> 
	<hdf10v$1t1$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: quoted-printable
X-Trace: posting.google.com 1257966361 4334 127.0.0.1 (11 Nov 2009 19:06:01 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 11 Nov 2009 19:06:01 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 37g2000yqm.googlegroups.com; posting-host=192.44.136.113; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.7)
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
	CyberSafe-IWA-Enable; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 
	3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 
	3.5.30729; MS-RTC LM 8),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:584314


On Nov 11, 1:50 pm, "Krishna Chaitanya" <chaitanya.a...@gmail.com>
wrote:
> Nice and thanks..
>
> but what i asked is to find the centroid of each grain in the image....(a grain is the one which is surrounded by a closed black boundary...i.e the black lines are grain boundaries and the gray portion is grain)...i tried to sort out...but i'm unable to...help me in finding the centroid of each grain....
>
> thank you..-

-----------------------------------------------------------------------------------------------------------------
Why not?  The centroids are right there in the grainMeasurements
structure.  Just look at it in the Variable Editor.
You can pull them out by doing this if you want
centroidsOfAllBlobs = [grainMeasurements.Centroid];

Or perhaps you should take another look at my demo
http://www.mathworks.com/matlabcentral/fileexchange/25157
where I pull them out one by one.