Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Detecting spots on a butterfly
Date: Fri, 3 Apr 2009 11:33:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <gr4s5d$3lf$1@fred.mathworks.com>
References: <gr4gga$d84$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1238758381 3759 172.30.248.38 (3 Apr 2009 11:33:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 3 Apr 2009 11:33:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1343420
Xref: news.mathworks.com comp.soft-sys.matlab:530005


"Husam Aldahiyat" <numandina@gmail.com> wrote in message <gr4gga$d84$1@fred.mathworks.com>...
> Hello,
> Say I have a picture of a butterfly with black spots on its wings, what is a good way to create an algorithm that takes the picture as input and give the location and/or number of spots as output?
> The spots aren't circular.
------------------------------------------------------------------
Say you posted it somewhere.  Do you think you might get better answers?
All I can say at this point is to try something like watershed segmentation, or an edge detector (such as Sobel) followed by a morphological closing operation.  You'll also need bwlabel and regionprops in the image processing toolbox.
Regards,
ImageAnalyst