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 12:47:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <gr50g5$9fr$1@fred.mathworks.com>
References: <gr4gga$d84$1@fred.mathworks.com> <gr4vgb$5sn$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1238762821 9723 172.30.248.35 (3 Apr 2009 12:47:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 3 Apr 2009 12:47:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1477385
Xref: news.mathworks.com comp.soft-sys.matlab:530025


"Husam Aldahiyat" <numandina@gmail.com> wrote in message <gr4vgb$5sn$1@fred.mathworks.com>...
> Here is my progress so far:
> 
> >> I=imread('2009_03_15_3434.JPG');
> >> I=rgb2gray(I);
> >> bw = im2bw(I,.3);
> >> bw = bwareaopen(bw,30);
> >> imshow(bw)
> 
> I want to use regionprops() like in one of the demos and decide which objects are more round, which will be the spots. But how can I split my pic into objects???

I solved the problem finally. The problem was I needed to do bw=~bw :)