Path: news.mathworks.com!not-for-mail
From: "Bryan " <cssmwbs@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: image processing
Date: Thu, 3 Apr 2008 06:25:04 +0000 (UTC)
Organization: Nativis Inc
Lines: 35
Message-ID: <ft1t80$c49$1@fred.mathworks.com>
References: <fsns6q$ke7$1@fred.mathworks.com> <fspubm$iep$1@fred.mathworks.com> <fsq5i9$b92$1@fred.mathworks.com> <fsq8e5$a8l$1@fred.mathworks.com> <fsq9ut$rlr$1@fred.mathworks.com> <fsqm50$6th$1@fred.mathworks.com> <fsqqst$4jr$1@fred.mathworks.com> <fsrv5f$t12$1@fred.mathworks.com> <fssr1u$2rr$1@fred.mathworks.com>
Reply-To: "Bryan " <cssmwbs@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1207203904 12425 172.30.248.35 (3 Apr 2008 06:25:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 3 Apr 2008 06:25:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 291118
Xref: news.mathworks.com comp.soft-sys.matlab:460743


"misty m." <donotspam@smth.be> wrote in message
<fssr1u$2rr$1@fred.mathworks.com>...
> oh, sorry.
> 
> the output i'm looking for are edges of the middle drilled 
> circle. when i have edges, i can simply find coeffiecents - 
> and this is the main output.
> 
> these drilled holes are not circles. they may look like, 
> but actually they are closer to elipse. when i'll have the 
> coeffiecents of edges then i'll use spline to describe 
> these elipse. unfortunately i cannot put a circle on it (as 
> You suggestet before).
> 
> thanks for all Your suggestions!  
> 
> misty

whether they are exactly circular or not is irrelevant... it
is equally easy to draw an ellipse.  but probably drawing
isn't what you're after anyway.

the 'regionprops' function includes possible outputs of
'eccentricity', 'majorAxisLength' and 'minorAxisLength'
which should help you tremendously.

if you don't like how your filtered-image hole looks, use
the coordinates of the filtered one, index back into the raw
image, and use 'imfill' to try and fill it in... wash,
rinse, repeat.  but, as already stated, your raw image is
probably too noisy to get a good measure of the hole
properties without filtering in some way.


bryan