title: face detection for matlab
body: <p>i searched face detection for matlab to my project.
  i found one:
  <a href="http://people.kyb.tuebingen.mpg.de/kienzle/fdlib/fdlib.htm" rel="nofollow">http://people.kyb.tuebingen.mpg.de/kienzle/fdlib/fdlib.htm</a></p>
  
  <p>i downloaded the source code, but it didn't work, i got that error from matlab:</p>
  
  <blockquote>
    <p>??? Undefined function or method 'fdmex' for input arguments of type
    'uint8'.</p>
    
    <p>Error in ==> tinytest at 10 s = fdmex(x', threshold);</p>
  </blockquote>
  
  <p>the main script is:</p>
  
  <pre><code>x = imread('geeks.jpg');
  
  % decision threshold.
  % change this to a smaller value, if too many false detections occur.
  % change it to a larger value, if faces are not recognized.
  % a reasonable range is -10 ... 10.
  threshold = 0; 
  
  imagesc(x); hold on; colormap gray;
  s = fdmex(x', threshold);
  
  for i=1:size(s,1)
      h = rectangle('Position',[s(i,1)-s(i,3)/2,s(i,2)-s(i,3)/2,s(i,3),s(i,3)], ...
        'EdgeColor', [1,0,0], 'linewidth', 2);
  end    
  
  axis equal; 
  axis off
  </code></pre>
  
  <p>can you find the error?</p>