Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!k4g2000yqb.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to extract yellow color under different iluminations
Date: Thu, 29 Oct 2009 03:20:39 -0700 (PDT)
Organization: http://groups.google.com
Lines: 10
Message-ID: <05778521-7af4-4326-9ca9-df4505a83f9f@k4g2000yqb.googlegroups.com>
References: <hbhgam$3ok$1@fred.mathworks.com> <hbhira$906$1@fred.mathworks.com> 
	<76b3be5d-f7d7-466f-b7d6-3d3894a62aa0@33g2000vbe.googlegroups.com> 
	<hcbcvk$oic$1@fred.mathworks.com>
NNTP-Posting-Host: 75.186.70.56
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1256811640 7175 127.0.0.1 (29 Oct 2009 10:20:40 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 29 Oct 2009 10:20:40 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k4g2000yqb.googlegroups.com; posting-host=75.186.70.56; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
	GTB6; CyberSafe-IWA-Enable; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 
	3.0.04506.648; .NET CLR 3.5.21022; AskTB5.5),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:580896


Prasanna:
Ask regionprops to give you the bounding box and center of mass.  If
the center of mass is on the left half of the bounding box, it's a
right bending arrow.  This is because most of the arrow is the
stragiht vertical part and if the arrow points right, then the
straight vertical part is on the left, and only a little part of the
arrow is in the right half..  If the center of mass is on the right
half of the bounding box, it's a left bending arrow.
Good luck,
ImageAnalyst