Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!k13g2000hse.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: image processing
Date: Mon, 31 Mar 2008 06:56:56 -0700 (PDT)
Organization: http://groups.google.com
Lines: 30
Message-ID: <f034c039-9462-4b8a-9211-f4c1d60da608@k13g2000hse.googlegroups.com>
References: <fsns6q$ke7$1@fred.mathworks.com> <fspubm$iep$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 1206971816 778 127.0.0.1 (31 Mar 2008 13:56:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 31 Mar 2008 13:56:56 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k13g2000hse.googlegroups.com; posting-host=192.44.136.113; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.6)
Xref: news.mathworks.com comp.soft-sys.matlab:460077


On Mar 31, 8:41=A0am, "misty m." <donots...@smth.be> wrote:
> i took a look on Your code, modyfied it a little. now i've
> got smth like that-i search for the biggest holes, i've got
> it's centroids (as i understad middle of each hole), i
> check which one is the closest to the middle of an image
> and i've got a centroid of my hole.
> but still-it is only a centroid, not a hole. how i can
> paint it to find edges?
----------------------------------------------------------------------------=
----
misty.m:
Don't use the arguments like he told you to, except for the labeled
image argument.   Just call stats=3D regionprops(L); This will get you
everything.  You can then examine the circularity (=3D perimeter squared
divided by the area) to find roughly circular blobs.  Then use
PixelIdxList to erase all other non-circular blobs from your image.
Then use bwboundaries() to find the boundaries of just the remaining
round objects.  What do you do about the holes cut off at the edge of
the image?  I'd just ignore them since you don't have the complete
hole.  You might want to find some way to model your background since
it does not seem to be uniform and this messes up your thresholding.

What is "smth"?  A typo?  An acronym?  Something else?
Also, your posts are getting a bit sloppy and hard to read (spelling,
capitalization, punctuation) -- please re-read them first before
posting.
And you might find better help in sci.image.processing, but you might
not get MATLAB code from there as they use a variety of packages.
Regards,
ImageAnalyst