<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251934</link>
    <title>MATLAB Central Newsreader - Eye Detection Help Needed</title>
    <description>Feed for thread: Eye Detection Help Needed</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 22 May 2009 02:53:02 -0400</pubDate>
      <title>Eye Detection Help Needed</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/251934#651573</link>
      <author>Fake Ghost</author>
      <description>I=imread('int.jpg');%original Image&lt;br&gt;
I=rgb2gray(I);&lt;br&gt;
p=80;&lt;br&gt;
eye=rgb2gray(imread('eye1.jpg'));%eye Template&lt;br&gt;
I=imresize(I,[p p]);&lt;br&gt;
eye(p,p)=0; %make the padding of zeros to make it equal size.&lt;br&gt;
fi=fftn(I);&lt;br&gt;
fr=fftn(eye);&lt;br&gt;
fc = fi .* conj(fr);&lt;br&gt;
fcn = fc ./ abs(fc);&lt;br&gt;
c = real(ifft2(fcn));&lt;br&gt;
[v index] = max(c(:));&lt;br&gt;
siz=80;&lt;br&gt;
[y x] = ind2sub(siz,index);&lt;br&gt;
% invert quadrants due to fft shift&lt;br&gt;
mid = siz(1) / 2;&lt;br&gt;
y = y - sign(y-mid-0.5) * mid&lt;br&gt;
x = x - sign(x-mid-0.5) * mid&lt;br&gt;
&lt;br&gt;
Now These X and y are the eye co-ordinates.&lt;br&gt;
what i want to do is how i can merge it into some other module. like i am detecting face in live video stream. i want to merge it into that code. but i dont know what condition to be used to that purpose&lt;br&gt;
&lt;br&gt;
like i have tried max(max(c))&amp;gt;0.2 then its have detected the eye but i have gives true as well as false results. the accuracy rate is only 50-60%. so please help how i can improve my code to achieve accuracy.</description>
    </item>
  </channel>
</rss>

