Path: news.mathworks.com!not-for-mail
From: "liong " <khliong_1986@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: hello
Date: Wed, 21 Oct 2009 14:25:23 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <hbn5ki$7t$1@fred.mathworks.com>
Reply-To: "liong " <khliong_1986@yahoo.com>
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 1256135123 253 172.30.248.37 (21 Oct 2009 14:25:23 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 21 Oct 2009 14:25:23 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1943828
Xref: news.mathworks.com comp.soft-sys.matlab:579001


i am doing the project on eye detection by using template matching by finding the similarity value between the sample and image.


for i= 1: 120; 
    for j= 1:120;
        (i,j)= bw2(i,j)- t(i,j) #
    end 
      end 

A= 1- (sum(sum(n))/(120*120*255*3));  

where t is template and bw2 is sample and A is the similarity function between the template and sample. But the error is happen at the row #...can anyone tell me about this? please...i need your help. and i will appreaciate it..