Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!e1g2000pra.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Horn Detection in Leukaemia Images
Date: Tue, 17 Feb 2009 11:44:53 -0800 (PST)
Organization: http://groups.google.com
Lines: 27
Message-ID: <94dac9c9-f16f-424b-8638-992fba5066da@e1g2000pra.googlegroups.com>
References: <gnemko$pnv$1@fred.mathworks.com> <gnep75$ltb$1@fred.mathworks.com> 
	<gnepm8$qk1$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: 7bit
X-Trace: posting.google.com 1234899893 28427 127.0.0.1 (17 Feb 2009 19:44:53 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 17 Feb 2009 19:44:53 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: e1g2000pra.googlegroups.com; posting-host=192.44.136.113; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
	CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.7)
Xref: news.mathworks.com comp.soft-sys.matlab:518945


Lee Borland:
regionprops will give you the perimeter, area, and solidity.  In a
loop, go through all the blobs examining the ratio (4*Perimeter^2)/
(pi*Area) and the solidity measurement.  There will be some number for
smooth contour blobs, that will distinguish the two.  For example the
ratio < 5 for smooth blobs and is > 5 for "horny" blobs.  You may also
see some value were you can distinguish the two kinds of blobs based
on the solidity value.

If counting the number of blobs is important, then that's tougher
since not all of the horns appear on the perimeter - some appear in
the middle of the blob.  If it were just the perimeter then you could
erode a few pixels (to get rid of horns) then dilate out a bit more
than you eroded and find the boundary of that (using bwboundaries).
That would give a line (the outline) a little bigger than the main
bulk of the blob and then you could run around this to see where a
horn intersected it.  However you may still have horns on the back
side of the blob that you can't see so I'm wondering if you can't
really get what you need with out the horn count.  Maybe it's not
necessary.  If it is, you're out of luck since you can't see the back
side and getting the ones in the middle will be tough.  You may have
to fall back to manual inspection where a user enters the number of
horns they see.  And of course even this won't tell you how many horns
are on the back side and thus are unseen in the image, so you'll never
really have the true number anyway.
Regards,
ImageAnalyst