Path: news.mathworks.com!not-for-mail
From: "Craig " <hillx154@umn.edu>
Newsgroups: comp.soft-sys.matlab
Subject: locating colored pixels in an image
Date: Fri, 17 Aug 2007 19:36:53 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 5
Message-ID: <fa4tcl$69q$1@fred.mathworks.com>
Reply-To: "Craig " <hillx154@umn.edu>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187379413 6458 172.30.248.37 (17 Aug 2007 19:36:53 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 17 Aug 2007 19:36:53 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 916368
Xref: news.mathworks.com comp.soft-sys.matlab:424356


I have an image (3000x2000 pixels).  I want to scan each 
column at a time and look for the red pixels (R>200).  Most 
pixels are just black.  When it finds a red pixel, I want 
it to search forward and find how many consecutive red 
pixels (R>200) there are.  Any ideas?