Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Motion estimation vs. background subtraction
Date: Sat, 23 May 2009 10:06:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <gv8hq8$nui$1@fred.mathworks.com>
References: <fr8o5t$m76$1@fred.mathworks.com> <fr8rvq$rfs$1@fred.mathworks.com> <guuclt$bg$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 1243073161 24530 172.30.248.35 (23 May 2009 10:06:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 23 May 2009 10:06:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1846903
Xref: news.mathworks.com comp.soft-sys.matlab:541974


Please help me. I have already changed loop statement as follows:
             
               R(red_diff>78)=1; 
               R(red_diff<=78)=0;      
               G(green_diff>78)=1;
               G(green_diff<=78)=0;
               B(blue_diff>78)=1;
               B(blue_diff<=78)=0;
               

RGB=R+G+B;
CM=zeros(height,width);

CM(RGB>=2)=1;
CM(RGB<2)=0;
But may be my threshold is too low, the result is not good and can really detect any motion.