title: Error in trying Face recognition demo in opencv
body: <p>i am using ubuntu 12.04, and i have installed opencv 2.4 (actually, i installed ROS, opencv gets installed with it) i am trying to run this <a href="http://docs.opencv.org/trunk/modules/contrib/doc/facerec/facerec_tutorial.html#eigenfaces-in-opencv" rel="nofollow">demo</a> and i am getting this error:</p>
  
  <pre><code>usama@ubuntu:~/Desktop/opencv/Advanced/Face Recognition$ g++ `pkg-config opencv --cflags`     face_recog.cpp  -o face_recog `pkg-config opencv --libs` 
  face_recog.cpp: In function ‘int main(int, const char**)’:
  face_recog.cpp:119:30: error: ‘class cv::FaceRecognizer’ has no member named ‘getMat’
  face_recog.cpp:121:20: error: ‘class cv::FaceRecognizer’ has no member named ‘getMat’
  facerecog.cpp:123:23: error: ‘class cv::FaceRecognizer’ has no member named ‘getMat’
  </code></pre>
  
  <p>Any idea, how can i get rid of this error ? should i upgrade opencv to a new version ?</p>